GnuPG has fixed a critical double-free flaw in GPGME, the library that many mail clients and other applications use to work with OpenPGP. The vulnerability, tracked as CVE-2026-129975, can be triggered by a malicious OpenPGP key. GnuPG issued its advisory on November 20, and the fix is in GPGME 2.3.1.
How a Stale Pointer in GPGME Gets Freed Twice
The flaw sits in two functions, read_status() and read_colon_line(). Both use buffers that start at 1,024 bytes and grow as needed, but the new pointer is saved only at the end of the function. If an error occurs early, the code leaves a stale pointer behind, and that pointer is freed twice.
A Very Long User ID in a Malicious OpenPGP Key
A malicious OpenPGP key with a very long user ID can trigger the bug. Signed data sent to an application is one path to it. GnuPG says data theft is possible and that remote code execution cannot be ruled out.
There are no reports of exploitation and no confirmed public proof of concept. The advisory leaves the size of the risk open: it confirms that data theft is possible, and for code execution it says only that the possibility cannot be excluded, so users should treat the update as urgent despite the lack of observed attacks.
The two functions share the same pattern, which makes the bug a matter of memory handling after an early error, and the trigger is the length of a user ID inside a key.
Software Built on GPGME Is Affected
The flaw affects all software that uses GPGME before 2.3.0. That covers mail clients, XMPP clients, Samba, Gpg4win, GnuPG Desktop and Flatpak.
Disclosure Moved Up When Ruby2Shell Forced a GitLab Update to Ship Early
The advisory’s timing came from an outside event rather than the GnuPG project’s own schedule.
Johan Carlsson found the flaw, and GitLab reported it. Disclosure had been planned for November 25, but GnuPG moved it up because the Ruby2Shell bug forced GitLab to update early. The version numbering is unusual: GPGME 2.3.0 was never publicly released, so 2.3.1 is the first fixed release.
No Workaround, So Updates and Rebuilds Are Required
GnuPG says there is no workaround. It offers a patch that likely applies to very old versions. The recommended action is to update to GPGME 2.3.1, and Windows users should look for the Gpg4win release that carries the updated DLL.
GnuPG’s patch for very old versions matters for organizations that cannot upgrade quickly, since GPGME is embedded in long-lived software. It is described as likely to apply, not guaranteed to, so those users should test it.
Statically Linked GPGME Builds Must Be Rebuilt
Statically linked builds do not pick up a library update when the system library changes, so they must be rebuilt against the fixed version. An application that bundles GPGME inside its own binary stays vulnerable until its maintainer ships a new build.
Why the Reach of GPGME Raises the Stakes
GPGME underlies a wide range of mail and messaging clients, so the flaw reaches users who never interact with the library directly. A key that arrives by mail or in signed data can be the entry point, which means an ordinary workflow, such as opening a message with a signature, may be enough to start the chain on an unpatched client.
GnuPG’s own assessment is cautious: it says data theft is possible and does not rule out remote code execution. The absence of a public proof of concept and of any reported attacks gives administrators time, but the combination of a critical flaw, a trigger that arrives as data, and no workaround leaves updating as the only reliable step. The early disclosure date also shortens the interval that distributors and application vendors had planned for preparing their own releases.
