Skip to main content

GnuPG CVE-2026-24881

CRITICAL
Stack-based Buffer Overflow (CWE-121)
2026-01-27 cve@mitre.org
9.8
CVSS 3.1 · NVD
Share

Severity by source

NVD PRIMARY
9.8 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
vuln.today AI
8.8 HIGH

Network-delivered crafted message needs no authentication, but a victim must attempt decryption (UI:R); overflow in the key-handling agent yields full C/I/A impact.

3.1 AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
SUSE
8.1 HIGH
AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Red Hat
8.1 HIGH
qualitative

Primary rating from NVD.

CVSS VectorNVD

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

11
Analysis Updated
Jun 30, 2026 - 04:04 vuln.today
v5 (cvss_changed)
Analysis Updated
Jun 30, 2026 - 04:03 vuln.today
v4 (cvss_changed)
Analysis Updated
Jun 30, 2026 - 04:02 vuln.today
v3 (cvss_changed)
Analysis Updated
Jun 30, 2026 - 04:01 vuln.today
v2 (cvss_changed)
Re-analysis Queued
Jun 30, 2026 - 03:23 vuln.today
cvss_changed
Severity Changed
Jun 30, 2026 - 03:23 NVD
HIGH CRITICAL
CVSS changed
Jun 30, 2026 - 03:23 NVD
8.1 (HIGH) 9.8 (CRITICAL)
Patch released
Apr 09, 2026 - 20:30 nvd
Patch available
Analysis Generated
Mar 12, 2026 - 21:55 vuln.today
PoC Detected
Feb 12, 2026 - 18:15 vuln.today
Public exploit code
CVE Published
Jan 27, 2026 - 19:16 nvd
HIGH 8.1

DescriptionNVD

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.

AnalysisAI

Remote code execution and denial of service in GnuPG before 2.5.17 stem from a stack-based buffer overflow in gpg-agent when it processes a crafted CMS (S/MIME) EnvelopedData message containing an oversized wrapped session key during PKDECRYPT --kem=CMS handling. Any user or service decrypting attacker-supplied S/MIME mail with a vulnerable build can be crashed, and the memory corruption may be escalated to arbitrary code execution in the gpg-agent process that custodies private keys. Publicly available exploit code exists, but the issue is not in CISA KEV and EPSS is low (0.20%, 41st percentile), indicating no confirmed widespread exploitation yet.

Technical ContextAI

GnuPG is the reference OpenPGP/CMS implementation used for mail encryption, package signing, and key management across Linux distributions and the Windows Gpg4win distribution. The flaw lives in gpg-agent, the daemon that holds private keys and performs cryptographic operations on their behalf; specifically in the newer KEM (Key Encapsulation Mechanism) decryption path exposed via the PKDECRYPT --kem=CMS Assuan command. When parsing a CMS EnvelopedData structure (the S/MIME container that wraps a per-message symmetric session key encrypted to the recipient's certificate), an attacker-controlled length field for the wrapped session key is not properly bounded before the key material is copied into a fixed-size stack buffer. This is a classic CWE-121 stack-based buffer overflow, where the overflow can smash the return address and adjacent stack data, enabling control-flow hijack beyond a simple crash.

RemediationAI

Vendor-released patch: GnuPG 2.5.17 - upgrade all GnuPG and Gpg4win installations to 2.5.17 or later, and on Linux apply the corresponding distribution security update once published (track Red Hat's advisory and VEX at https://access.redhat.com/security/cve/CVE-2026-24881 and https://bugzilla.redhat.com/show_bug.cgi?id=2433480). Until patched, the most effective compensating control is to avoid invoking the affected path: do not process untrusted S/MIME (CMS EnvelopedData) messages with the vulnerable gpg-agent, and disable or quarantine automated S/MIME decryption in mail gateways and pipelines that pass attacker-reachable content to gpg-agent - the trade-off is loss of automatic S/MIME inbound decryption until upgraded. Where feasible, restrict and isolate gpg-agent (run under a constrained service account, limit who can submit PKDECRYPT requests over the Assuan socket) to contain a crash or code-execution attempt; the side effect is added operational friction for legitimate key operations. Verify the running version with gpg-agent --version after upgrading rather than relying on package metadata alone.

More in Gnupg

View all
CVE-2018-1000858 HIGH POC
8.8 Dec 20

GnuPG version 2.1.12 - 2.2.11 contains a Cross ite Request Forgery (CSRF) vulnerability in dirmngr that can result in At

CVE-2026-24882 HIGH POC
7.8 Jan 27

Stack-based buffer overflow in GnuPG's tpm2daemon (versions before 2.5.17) allows a local attacker to corrupt the daemon

CVE-2020-25125 HIGH POC
7.8 Sep 03

GnuPG 2.2.21 and 2.2.22 (and Gpg4win 3.1.12) has an array overflow, leading to a crash or possibly unspecified other imp

CVE-2019-13050 HIGH POC
7.5 Jun 29

Interaction between the sks-keyserver code through 1.2.0 of the SKS keyserver network, and GnuPG through 2.2.16, makes i

CVE-2022-34903 MEDIUM POC
6.5 Jul 01

GnuPG through 2.3.6, in unusual situations where an attacker possesses any secret-key information from a victim's keyrin

CVE-2012-6085 MEDIUM POC
5.8 Jan 24

The read_block function in g10/import.c in GnuPG 1.4.x before 1.4.13 and 2.0.x through 2.0.19, when importing a key, all

CVE-2014-9087 HIGH
7.5 Dec 01

Integer underflow in the ksba_oid_to_str function in Libksba before 1.3.2, as used in GnuPG, allows remote attackers to

CVE-2018-12020 HIGH
7.5 Jun 08

mainproc.c in GnuPG before 2.2.8 mishandles the original filename during decryption and verification actions, which allo

CVE-2018-9234 HIGH
7.5 Apr 04

GnuPG 2.2.4 and 2.2.5 does not enforce a configuration in which key certification requires an offline master Certify key

CVE-2025-30258 LOW POC
2.7 Mar 19

In GnuPG before 2.5.5, if a user chooses to import a certificate with certain crafted subkey data that lacks a valid bac

CVE-2014-4617 MEDIUM
5.0 Jun 25

The do_uncompress function in g10/compress.c in GnuPG 1.x before 1.4.17 and 2.x before 2.0.24 allows context-dependent a

CVE-2013-4351 MEDIUM
5.8 Oct 10

GnuPG 1.4.x, 2.0.x, and 2.1.x treats a key flags subpacket with all bits cleared (no usage permitted) as if it has all b

Vendor StatusVendor

SUSE

Severity: High
Product Status
openSUSE Tumbleweed Fixed
SLES15-SP5-CHOST-BYOS-SAP-CCloud Fixed
SLES15-SP6-CHOST-BYOS Fixed
SLES15-SP6-CHOST-BYOS-Aliyun Fixed
SLES15-SP6-CHOST-BYOS-Azure Fixed

Share

CVE-2026-24881 vulnerability details – vuln.today

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy