The GnuPG project has issued urgent warnings regarding a critical memory corruption vulnerability affecting GPGME, the standard programming library relied upon by a wide array of software to interact with GnuPG. Tracked as CVE-2026-129975, the serious security flaw stems from how the library handles maliciously crafted OpenPGP keys featuring unusually long user identifiers. If successfully triggered, the vulnerability can potentially allow malicious actors to compromise sensitive data within affected applications, while remote code execution cannot be entirely ruled out by security analysts.
The security issue specifically targets GPGME versions prior to 2.3.0, impacting any software package that incorporates the vulnerable code. This encompasses applications where the library is utilized as a shared library, integrated as a Windows DLL, or statically linked directly into the compiled program. Because GPGME serves as a foundational component for cryptographic operations across numerous communication tools, the scope of potentially affected software is broad.
According to the GnuPG project, the vulnerable software footprint includes most email client applications, a significant number of XMPP instant messaging clients, the Samba networking suite, as well as the project’s own proprietary distribution packages such as Gpg4win, GnuPG Desktop, and GnuPG VS-Desktop. Developers and system administrators who maintain software relying on GPGME are being strongly urged to evaluate their dependencies and apply available patches as quickly as possible.
While the GnuPG project has confirmed that there are currently no known reports of active attacks in the wild exploiting CVE-2026-129975, the severity of the underlying mechanism has prompted swift defensive action. The technical path toward triggering the bug typically involves supplying signed data to an application that processes the input through the library. However, the exact degree of exposure depends heavily on individual application architectures, particularly regarding whether specific programs automatically pass such untrusted material to the underlying library without requiring a manual key import step from the user.
The root cause of the security flaw is a classic and dangerous memory management defect known as a double free vulnerability, which occurs when a program attempts to release the exact same block of memory twice. In the context of GPGME, this flaw resides within two distinct internal routines, designated as read_status() and read_colon_line(). These specific functions are responsible for continuously reading status lines and key listings returned by the underlying GnuPG engine during cryptographic operations.

When these routines encounter exceptionally long input data during parsing, they are designed to dynamically reallocate and move the incoming data into a larger internal memory buffer. However, under the faulty logic, the routines only record the newly assigned memory address if the reallocation and parsing process finishes completely without encountering any errors. If an error happens to occur midway through this process, the program is left holding a dangling pointer that references memory which has already been freed. During subsequent cleanup phases, the application’s error-handling routines attempt to free the memory a second time, triggering the double-free condition that leads to unstable program behavior and potential memory corruption. Detailed technical notes regarding this mechanism have been documented by the project on its internal tracker entry.
The vulnerability was initially discovered by security researcher Johan Carlsson and subsequently reported to the GnuPG project through GitLab. Initial disclosure plans had scheduled the public release of the vulnerability details for November 25. However, that timeline had to be adjusted and moved up after an unrelated and critical security incident—specifically the emergence of the Ruby2Shell bug—forced the platform to update its disclosure schedule earlier than anticipated.
What to Update
In response to the discovery of CVE-2026-129975, the GnuPG project has moved swiftly to deliver a remediation, releasing GPGME version 2.3.1. It is worth noting for deployment tracking purposes that an intermediate version 2.3.0 was prepared but never publicly released or distributed. System administrators and software maintainers must determine the correct installation path based on how the library is deployed within their specific environments, taking into account whether the component exists as a shared system library, a Windows dynamic-link library, or a statically compiled dependency within custom applications.
At present, the project’s advisory does not provide any temporary interim workarounds or mitigation strategies for software environments that are unable to immediately apply the official software updates. Consequently, upgrading to the patched release remains the only definitive method to eliminate the risk posed by maliciously crafted OpenPGP keys. Organizations utilizing affected mail clients, chat applications, and secure desktop packages should monitor their software vendors for updated releases containing the remediated GPGME library.
