AI NewsInfrastructureAnnouncement

GnuPG asks every app using GPGME to update over a double-free bug

GnuPG published CVE-2026-129975 on 20 November 2026. An OpenPGP key with a crafted user id triggers a double-free in GPGME and may allow remote code execution.

AI News

Editorial2 min read

LinkedInX
Illustration of a padlock on an envelope

Why it mattersApps that link GPGME include Gpg4win, GnuPG Desktop, most mail clients, XMPP clients and Samba. Each one needs to rebuild against GPGME 2.3.1.

Werner Koch of the GnuPG project published a security advisory on 20 November 2026. GnuPG wrote the whole thing in plain terms: an OpenPGP key with a crafted very long user id triggers a double-free in GPGME. The flaw is tracked as CVE-2026-129975. Johan Carlsson at GitLab found it and reported it on 12 November. The fix is in GPGME 2.3.1, released on 19 November 2026.

The advisory is short but names the stakes clearly. The bug "can be used to exfiltrate data from applications by sending for example signed data". The project also wrote that "exploiting this bug to mount a Remote Code Execution attack (RCE) can't be ruled out". GnuPG is asking for an immediate update.

What is wrong in the code

GPGME is the library most applications use to speak to GnuPG. Two internal functions handle a status line and a key listing. Each one starts with a 1024-byte buffer and reallocates when the data is longer. The advisory describes the mistake. The new buffer pointer is passed around inside the function. It is only written back to the context object at the end. Early returns leave a stale pointer behind. When the context is later released, the old pointer is freed a second time.

The trigger is an OpenPGP key whose user id string is long enough to force the reallocation path. An attacker can send such a key as part of signed data. A key import works too. Any input a vulnerable application accepts from a stranger counts.

Who is affected

The advisory says every GPGME version before 2.3.0 is affected. GnuPG notes that 2.3.0 was never released publicly. So in practice the affected set is every GPGME on any user's machine before the 19 November fix. The flaw is present whether an application links GPGME as a shared library, a DLL, or statically. The advisory names examples: Gpg4win, GnuPG Desktop, most mail clients, XMPP clients and Samba.

Statically linked applications must be rebuilt against GPGME 2.3.1 by their own vendors. A shared-library update does not help those users. A patch file for older releases is available for distributions that cannot immediately package 2.3.1.

What to do

For most users the right action is to update the GPGME package installed on the system. A mail client or desktop app that bundles its own GPGME needs a new release from its vendor. Check the vendor's advisory page before assuming the system package is enough. Developers who build any application that reads OpenPGP keys from untrusted input have more work. They should audit which GPGME copy their build pulls in. Then bump it to 2.3.1 today.

GitLab reported the bug through responsible disclosure. The fix has been in the field for one day at the time of this item. Attackers now have the advisory and the diff. The window between the fix and the first exploit attempts is short.

Source

SourceGnuPG

This item was written by an AI system from the linked source. Reveneau is responsible for what it publishes.

Share
LinkedInX
Start a project