CVE-2026-24881
GnuPG: GnuPG: Remote code execution and denial of service via crafted CMS EnvelopedData message
Severity by source
Trivy's own label is CRITICAL. Rated critical by NVD, Julia. Rated lower by Red Hat (high).
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.
Affected packages and fixed versions
| Source | Package | Fixed in |
|---|---|---|
| julia::Julia Ecosystem Security Advisories | GnuPG_jll | 2.5.17+0 |
| Red Hat | gnupg2, gnupg2-smime | no fix listed |
| seal Red Hat 7 | gnupg2, seal-gnupg2 | 2.0.22-5.el7_5+sp999 |
| seal Red Hat 9 | gnupg2, seal-gnupg2 | 2.3.3-4.el9+sp999 |
Show all 7 entries from 4 sources
| Source | Package | Fixed in |
|---|---|---|
| julia::Julia Ecosystem Security Advisories | GnuPG_jll | 2.5.17+0 |
| Red Hat | gnupg2 | no fix listed |
| Red Hat | gnupg2-smime | no fix listed |
| seal Red Hat 7 | gnupg2 | 2.0.22-5.el7_5+sp999 |
| seal Red Hat 7 | seal-gnupg2 | 2.0.22-5.el7_5+sp999 |
| seal Red Hat 9 | gnupg2 | 2.3.3-4.el9+sp999 |
| seal Red Hat 9 | seal-gnupg2 | 2.3.3-4.el9+sp999 |
References
- https://access.redhat.com/security/cve/CVE-2026-24881
- https://bugzilla.redhat.com/show_bug.cgi?id=2433480
- https://dev.gnupg.org/T8044
- https://github.com/advisories/GHSA-5w36-x85h-pphm
- https://nvd.nist.gov/vuln/detail/CVE-2026-24881
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-24881.json
- https://www.cve.org/CVERecord?id=CVE-2026-24881
- https://www.openwall.com/lists/oss-security/2026/01/27/8