Stack-based buffer overflow in GnuPG
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Partial Red Hat: 1 without a fix
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and Red Hat. Impact type from CWE-121 and the CVSS impact.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| GnuPG | GnuPG | 2.5.13 to before 2.5.17 | 2.5.17 | Patch available | CNA |
- GnuPG VendorGnuPG Affected 2.5.13 to before 2.5.17 Fixed in 2.5.17 Patch available CNA
Remediation
- Fix · CNA GnuPG (GnuPG) Fixed in 2.5.17
Fixed in the same release
Records fixed by the same vendor advisory or release, as the CNA lists them.
- Release ·
GnuPG 2.5.17
3 records Highest priority Priority MEDIUM 1 MEDIUM, 2 LOW
Other records, highest priority first
- TI-2026-20068 Stack-based buffer overflow in GnuPGPriority LOW 39
- TI-2026-20069 NULL pointer dereference in GnuPGPriority LOW 25
Vendor assessments
Red Hat
Red Hat rating: Important. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Enterprise Linux 6 | Affected | No fix planned: Will not fix |
Not affected: 4 products
- Red Hat Enterprise Linux 10
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 9
Timeline
- 2026-10-02 Threatist record created from CVE-2026-24881
- 2026-10-03 Alias added: GHSA-5w36-x85h-pphm
References
More Gnupg vulnerabilities
- TI-2022-03243 Integer overflow in libksba CVSS 3.1CRITICAL 9.8
- TI-2025-42429 Out-of-bounds write in GnuPG CVSS 3.1HIGH 7.8
- TI-2025-42428 Improper signature verification in GnuPG CVSS 3.1MEDIUM 5.9
- TI-2008-01464 GnuPG (gpg) 1.4.8 and 2.0.8 allows remote attackers to cause a denial of service (crash)… CVSS 2.0HIGH 9.3
- TI-2018-08614 mainproc.c in GnuPG before 2.2.8 mishandles the original filename during decryption and… CVSS 3.1HIGH 7.5
- TI-2010-02445 Use-after-free vulnerability in kbx/keybox-blob.c in GPGSM in GnuPG 2.x through 2.0.16… CVSS 3.1HIGH 8.1
Sources
- CVE-2026-24881 · CVE Program
- CVE-2026-24881 · NVD
- FIRST EPSS
- GHSA-5w36-x85h-pphm · GitHub Advisory Database · CC BY 4.0
- CVE-2026-24881 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences