CVE-2026-24881 Details
Description
In GnuPG before 2.5.17, a crafted CMS (S/MIME) EnvelopedData message carrying an oversized wrapped session key can cause a stack-based buffer overflow in gpg-agent during PKDECRYPT--kem=CMS handling. This can easily be leveraged for denial of service; however, there is also memory corruption that could lead to remote code execution.
A stack-based buffer overflow vulnerability has been identified in GnuPG versions prior to 2.5.17. The issue arises in gpg-agent when it processes crafted CMS (S/MIME) EnvelopedData messages that contain oversized wrapped session keys. This vulnerability occurs during the PKDECRYPT command with KEM=CMS, where the gpg-agent crashes. However, the memory corruption caused by this overflow could potentially be exploited for remote code execution.
Users are advised to update GnuPG to version 2.5.17. For Gpg4win users, the latest version is 5.0.1. If an immediate update is not possible, removing the gpgsm or gpgsm.exe binary can prevent the vulnerability from being triggered.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jan 27, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://access.redhat.com/security/cve/CVE-2026-24881 | redhat-SADP | |
| https://bugzilla.redhat.com/show_bug.cgi?id=2433480 | redhat-SADP | |
| https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-24881.json | redhat-SADP | |
| https://dev.gnupg.org/T8044 | [email protected] | ExploitProduct |
| https://www.openwall.com/lists/oss-security/2026/01/27/8 | [email protected] | Mailing ListThird Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-121 | Stack-based Buffer Overflow | redhat-SADP |
| CWE-121 | Stack-based Buffer Overflow | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| gnupg gnupg | >= 2.5.13, < 2.5.17 |
CPE
Remediation
| |
| gpg4win gpg4win | >= 5.0.0, < 5.0.1 |
CPE
Remediation
| |
Change History
6 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 15, 2026 | CVE Modified | redhat-SADP |
| Jun 30, 2026 | CVE Modified | redhat-SADP |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Feb 12, 2026 | Initial Analysis | [email protected] |
| Jan 27, 2026 | New CVE Received | [email protected] |