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 products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| GnuPG | GnuPG | 2.5.13 – < 2.5.17 | 2.5.17 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | gpg2 | 2.5.17-1.1 | openSUSE-SU-2026:10112-1 |
Advisories 2
- WID-SEC-2026-0231 GnuPG und Gpg4win: Mehrere Schwachstellen BSI CERT-Bund (WID) · Mar 23, 2026
- openSUSE-SU-2026:10112-1 dirmngr-2.5.17-1.1 on GA media SUSE / openSUSE Security Updates · Mar 23, 2026