Skip to content
AIBRAINWORX / THE INDEPENDENT AI LABRESEARCH · HARDWARE · OPEN INTELLIGENCE
A.I. Cyber Security / Enterprise & Legal

GnuPG Warns Critical GPGME Double-Free Bug Could Leak Application Data via Malformed OpenPGP Keys

GnuPG disclosed CVE-2026-129975, a critical double-free flaw in GPGME triggered by oversized OpenPGP user IDs that could expose application data or enable remote code execution across mail clients, Samba, and Gpg4win.

Listen to this articleBrowser Voice
Ready
Official company logo or product image for gnupg-warns-critical-gpgme-double-free-bug-cve-2026-129975
Official image or organization logo from thehackernews.com; identification only, no endorsement.
Event / context: 2026-11-20. Source check: October 28, 2026.

Core Advisory and Scope Across OpenPGP Ecosystems

The GnuPG project has published an urgent security advisory detailing CVE-2026-129975, a critical memory corruption vulnerability inside GPGME, the foundational library used by third-party software to interact with GnuPG. According to The Hacker News, the bug can be triggered by a maliciously crafted OpenPGP key containing an unusually long user ID. Because GPGME acts as the programmatic bridge between applications and core GnuPG operations, the advisory warns that exploiting the flaw could let attackers steal sensitive data from affected programs. Maintainers also state that remote code execution cannot be ruled out, although no active exploitation in the wild has been reported at the time of disclosure. The vulnerability affects every release of GPGME prior to version 2.3.0, regardless of whether applications load it as a system shared library, a Windows DLL, or a statically linked binary. GnuPG lists most mail clients, numerous XMPP clients, Samba, and its own Gpg4win, GnuPG Desktop, and GnuPG VS-Desktop packages among the impacted software ecosystems.

Engineering Root Cause in Status and Key-Listing Parsers

From an engineering standpoint, CVE-2026-129975 stems from a classic double-free defect in which the same memory allocation is released twice, destabilizing heap management. As documented in the project's issue tracker, the bug resides inside two specific parsing routines: read_status() and read_colon_line(). These functions process status lines and colon-separated key listings returned by GnuPG. When incoming output grows unusually long, such as when parsing an oversized OpenPGP user ID, the routines reallocate the data into a larger memory buffer. However, the code updates the stored pointer to the new buffer address only if the routine finishes cleanly without errors. If an error interrupts execution before completion, the pointer continues referencing memory that has already been freed, prompting cleanup logic to free that memory block a second time. Security researcher Johan Carlsson uncovered the flaw, and GitLab reported it to the GnuPG project. Coordinated disclosure had been scheduled for November 25, 2026, but the timeline was accelerated after the newly disclosed Ruby2Shell flaw forced GitLab to deploy updates ahead of schedule.

Operational Impact on Build Pipelines and Remediation Workflows

Because GPGME is distributed across diverse packaging models, patching CVE-2026-129975 requires coordinated action from both system administrators and software maintainers. GnuPG released GPGME 2.3.1 as the primary fixed version, clarifying that version 2.3.0 was never made publicly available. Organizations running dynamically linked software should upgrade the system shared library or Windows DLL to GPGME 2.3.1 using official project downloads or vendor packages. On Windows workstations, the fix ships inside Gpg4win 5.1.2, whose release notes categorize the defect as severe and urge users to update immediately. For environments constrained to older codebases, GnuPG published a targeted patch in its advisory alongside a fixed legacy release, version 1.24.4. Crucially, updating a host's shared library does nothing for applications that bundle or statically link GPGME inside their own installers; those applications remain vulnerable until upstream maintainers ship rebuilt binaries. Meanwhile, developers relying on the C++ and Qt wrapper libraries GPGMEPP and GPGMEQT do not need to apply updates, simplifying triage for desktop frameworks built solely on those bindings.

Attack Vector Ambiguities and Legacy Support Caveats

Despite clear version targets, security teams face notable operational blind spots while assessing exposure. The GnuPG advisory cites signed data sent to an application as an example pathway to reach the vulnerable parsing routines, yet it does not specify which downstream mail clients, messaging tools, or server daemons pass untrusted cryptographic payloads to GPGME automatically without requiring a manual key import. Without a comprehensive list of automatic parsing behaviors, defenders must treat exposed clients and file-sharing services cautiously until patches are verified across every layer. In addition, the project offers no interim workaround or configuration mitigation for software that cannot be upgraded immediately. Teams electing to deploy legacy version 1.24.4 also confront ongoing maintenance risk: GnuPG's legacy release notes warn that the project cannot guarantee every future security patch will be backported to that branch. For enterprise security and developer operations teams, inventorying statically linked cryptographic dependencies and planning migrations off legacy GPGME branches remain essential steps alongside immediate patching.

Automated Vertex AI (gemini-4-hydrogen) primary-source report; reviewed 2026-11-23.

Follow your curiosity.

Pass the signal.