Quick answers
- Is CVE-2026-24881 exploited in the wild?
- No. Junglewise Threat Intelligence has no report of CVE-2026-24881 being exploited in the wild.
- How severe is CVE-2026-24881?
- High severity, with a CVSS score of 8.1, published 27 January 2026.
- Which products and versions are affected?
- GnuPG 2.5.13 to 2.5.16; Gpg4win 5.0.0.
- Is there a fix for CVE-2026-24881?
- A patch was published on 2026-01-27: GnuPG 2.5.17 released Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
- How is CVE-2026-24881 attacked?
- It is attacked over the network, in a software library.
- Am I affected by CVE-2026-24881?
- Check whether you run GnuPG or Gpg4win at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
Technical details
A stack-based buffer overflow exists in gpg-agent's agent_kem_decrypt() function when processing PKDECRYPT --kem=CMS requests. The vulnerability is caused by trusting an attacker-supplied length for a wrapped session key, which is then used to perform an AES Key Wrap unwrap into a fixed 256-byte stack buffer. Because libgcrypt's AES-KW implementation performs a memmove of the ciphertext into the output buffer before verifying integrity, the overflow occurs even if the message is otherwise invalid. This affects GnuPG versions 2.5.13 through 2.5.16 and was fixed in version 2.5.17. An attacker can trigger this remotely by sending a malicious S/MIME message to a user.
Affected products
- GnuPG GnuPG 2.5.13 to 2.5.16
- Gpg4win Gpg4win 5.0.0
Timeline
- 2026-01-18: disclosed: Reported to GnuPG by OpenAI Security Research
- 2026-01-27: patched: GnuPG 2.5.17 released
- 2026-01-27: advisory