Written by Uptycs Threat Research | Nov 25, 2026, 12:13:24 PM
Severity: High (CVSS 3.1 8.1) · Exploitation: No known exploitation · Fix available: Partial
Summary
A double-free vulnerability exists in GPGME, the standard library that applications use to interact with GnuPG. When processing a crafted OpenPGP key with an unusually long user ID, an early return following memory reallocation can leave internal buffer pointers referencing already-freed memory; when the context is later cleaned up, the same memory is freed a second time. A remote attacker who can supply a malicious OpenPGP key could exploit this condition to corrupt process memory, potentially achieving arbitrary code execution or causing a denial-of-service crash. The flaw was reported by Johan Carlsson (joaxcar) and disclosed on November 20, 2026; GPGME 2.3.1 is available as the upstream fix, though fixed versions for several Red Hat products have not yet been published.
Technical details
The root cause is a CWE-415 (double free) in the read_status() function and a related key-listing path. Both functions begin with a fixed-size buffer and reallocate it when incoming data exceeds the original allocation. During reallocation the new pointer is used immediately, but the pointer stored in the context object is only updated upon successful completion. If an early return occurs — for example when processing an unusually long user ID field — the context retains a stale pointer to freed memory. When the context is subsequently destroyed, the allocator frees that region a second time. The CVSS 3.1 vector (AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H) indicates the attack is network-reachable, requires no authentication or user interaction, but carries high attack complexity — meaning exploitation depends on specific timing or memory-layout conditions. Intervening allocations may prevent standard allocator checks from detecting the corruption, complicating detection.
Affected products
- GPGME all versions before 2.3.1 — fixed in 2.3.1
- Red Hat Hardened Images (gpgme-main) — fixed in 2.3.1-1.hum1
- Red Hat Enterprise Linux 6 (gpgme) — no fixed version published
- Red Hat Enterprise Linux 7 (gpgme) — no fixed version published
- Red Hat Enterprise Linux 8 (gpgme) — no fixed version published
- Red Hat Enterprise Linux 9 (gpgme) — no fixed version published
- Red Hat Enterprise Linux 10 (gpgme) — no fixed version published
- Red Hat OpenShift Container Platform 4 (openshift/ose-rhel-coreos-8, openshift/ose-rhel-coreos-9) — no fixed version published
- Red Hat OpenShift Container Platform 5 (openshift/ose-rhel-coreos-9) — no fixed version published
Impact
- Arbitrary code execution: Successful memory corruption could allow an attacker to redirect control flow within the affected process; remote code execution cannot be ruled out according to GnuPG's advisory.
- Denial of service: An invalid free reliably crashes the host process, disrupting any service that relies on GPGME for signature verification, encryption, or key handling.
- Data exposure: Because GPGME brokers access to cryptographic material and signed output, memory corruption in this library may expose sensitive application data processed during the affected operation.
- Wide blast radius: Any application that embeds or dynamically links GPGME — including mail clients, package managers, and signing pipelines — inherits this vulnerability, making the affected surface broader than a single product.
Exploitation status
There is no evidence of in-the-wild exploitation at the time of publication, and this CVE does not appear on the CISA Known Exploited Vulnerabilities catalog. No public proof-of-concept exploit code has been identified. Despite the absence of active exploitation, the high CVSS score, network-reachable attack vector, and wide deployment of GPGME across mail and signing software make prompt patching a priority.
Recommended actions
- Upgrade GPGME to version 2.3.1 on all systems where the library is installed; for Red Hat Hardened Images, update the
gpgme-mainpackage to 2.3.1-1.hum1 or later. - Monitor Red Hat advisories for RHEL 6–10 and OpenShift Container Platform 4–5; apply vendor patches for those products as soon as they become available via the Red Hat Customer Portal (RHSA-2026:102781 and subsequent errata).
- Audit applications that link GPGME — including mail clients, package-signing tools, and any pipeline that verifies or generates OpenPGP signatures — and confirm which library version is actually loaded at runtime, not just installed.
- Restrict processing of untrusted OpenPGP keys at network or application boundaries where possible, as the trigger is a crafted key with an unusually long user ID field.
- Review process crash logs and core dumps in services that use GPGME for signs of repeated abnormal termination, which could indicate exploitation attempts even where full code execution was not achieved.
- Verify the fix is in effect by confirming the loaded GPGME shared library version matches 2.3.1 or later after patching; on RPM-based systems this can be confirmed with
rpm -q gpgme.
How Uptycs helps
Uptycs vulnerability management continuously inventories hosts, containers, and cloud workloads for affected GPGME versions, enabling security teams to identify and prioritize patching across their entire environment without manual asset enumeration. Uptycs Threat Research continues to monitor this vulnerability and will update this bulletin if exploitation activity or new vendor patches change the risk picture.
References
- Red Hat Security Advisory RHSA-2026:102781
- Red Hat CVE Record – CVE-2026-129975
- GNU Info Announcement – GPGME 2.3.1 Release
- oss-security: GnuPG Security Advisory for GPGME
- The Hacker News: GnuPG Warns Critical GPGME Flaw Could Expose App Data via Malicious OpenPGP Keys
Update history
- 2026-11-25 (v2): Fixed versions updated.