CVE-2026-24881CWE-121

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…

High · published January 27, 2026

CVSS v3.1
8.1
EPSS
2%
Percentile
78.8
In the wild
Unconfirmed
What it is

⚡ A cleverly crafted S/MIME message can trip GnuPG into a stack-based buffer overflow, turning your secure communications into chaos! 🔥 Think of it like a packed suitcase bursting at the seams — the contents (data) can't handle that extra oversized item (the session key), causing the whole bag (gpg-agent) to fall apart. If it goes unchecked, it could lead to unwanted surprises! An attacker could leverage this vulnerability to crash gpg-agent, resulting in denial of service. Even more alarming, the memory corruption could allow them to execute arbitrary code remotely, giving them control over your system!

Put simply

Think of it like a packed suitcase bursting at the seams — the contents (data) can't handle that extra oversized item (the session key), causing the whole bag (gpg-agent) to fall apart. If it goes unchecked, it could lead to unwanted surprises! This vulnerability in GnuPG, specifically before version 2.5.17, allows a malformed CMS EnvelopedData message to exploit a stack-based buffer overflow during PKDECRYPT operation, leading to potential remote code execution.

What to do

An attacker could leverage this vulnerability to crash gpg-agent, resulting in denial of service. Even more alarming, the memory corruption could allow them to execute arbitrary code remotely, giving them control over your system! Update GnuPG to version 2.5.17 or later immediately to patch this vulnerability. Additionally, perform a thorough audit of any received S/MIME messages for anomalies, as an extra precaution. 🛡️ You've got this! Stay proactive and secure your systems. 💪✨

The record
Technical detail
CVSS v3.1
8.1 · HIGH
Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.01840 · 78.8th percentile
Weakness
CWE-121 · Stack-based Buffer Overflow
Published
2026-01-27T18:36Z
EPSS history
Timeline
  • 27 JAN 18:36Z
    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…
    cvelistv5