CVE-2026-24881

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.

SeverityHigh
CVSS8.1
Exploit probability—
ProductGnupg
PublishedJan 27, 2026
First seenJan 27, 2026
Weakness typeCWE-121CWE-121

How to fix

Update
  • gnupg gnupg2.5.17 or later
  • gpg4win gpg4win5.0.1 or later

Affected products

ProductAffected versionsFixed in
gnupg gnupg2.5.13 ≤ v < 2.5.172.5.17
gpg4win gpg4win5.0.0 ≤ v < 5.0.15.0.1

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.