All reports
High

GnuPG: GnuPG: Remote code execution and denial of service via crafted CMS EnvelopedData message

Affected versions

Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2026-24881

Probability of exploitation in the next 30 days: 1.81%

FIRST EPSS · 2026-11-18

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.

A flaw was found in GnuPG. A remote attacker could exploit this vulnerability by sending a specially crafted Cryptographic Message Syntax (CMS) EnvelopedData message. This message, containing an oversized wrapped session key, can cause a stack-based buffer overflow in the gpg-agent component. Successful exploitation may lead to a denial of service and potentially remote code execution.