8.1high
In GnuPG before 2.5.17, a crafted CMS (S/MIME) EnvelopedData message carrying an oversized wrapped session key can cause a stack-based buff…
- Severity
- 8.1high CVSS:3.1 by mitre
- Exploit likelihood
- 1.80% (higher than 79% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- mitre
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
| Product or package | Versions | Reported by |
|---|---|---|
| GnuPG GnuPG | from 2.5.13 before 2.5.17 | CVE List, NVD |
| gnupg2 | Not specified | CVE List |
| gpg4win gpg4win | from 5.0.0 before 5.0.1 | NVD |
All scores
| mitre | 8.1high CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| redhat-SADP | 8.1high CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
What each source says
CVE List
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.
NVD (es)
En GnuPG anterior a 2.5.17, un mensaje CMS (S/MIME) EnvelopedData manipulado que transporta una clave de sesión envuelta de tamaño excesivo puede causar un desbordamiento de búfer basado en pila en gpg-agent durante el manejo de PKDECRYPT--kem=CMS. Esto puede ser fácilmente aprovechado para una denegación de servicio; sin embargo, también hay corrupción de memoria que podría conducir a la ejecución remota de código.
References
| https://www.openwall.com/lists/oss-security/2026/01/27/8 | mailing-list, third-party-advisory | |
| https://dev.gnupg.org/T8044 | exploit, product | |
| https://access.redhat.com/security/cve/CVE-2026-24881 | vdb-entry | |
| https://bugzilla.redhat.com/show_bug.cgi?id=2433480 | issue-tracking | |
| https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-24881.json | ||
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-24881 changed 2026-07-15 | CVE Terms of Use |
| NVD | CVE-2026-24881 changed 2026-07-15 | Public domain |