GnuPG has released GPGME 2.3.1 to repair a critical memory-safety flaw. GPGME, short for GnuPG Made Easy, lets applications use GnuPG’s encryption and signature functions. Update the library used by the application, including private bundled copies. Statically linked applications need rebuilding.

The flaw is CVE-2026-129975, also tracked as T8557. A crafted OpenPGP key with a very long user identity can trigger a double free, where software releases the same memory twice. Werner Koch’s November 20 advisory says this can expose application data, for example when processing signed data.

Evidence status: maintainer-confirmed vulnerability and reported data-exfiltration capability. The advisory says remote code execution cannot be ruled out. It does not establish an in-the-wild campaign or a demonstrated code-execution chain.

Exposure follows the application and its library

The vulnerable code reads status messages and key listings from GnuPG. When it enlarges a buffer, an early return can leave the application context pointing at memory already released. Later cleanup may release that memory again.

An attacker needs affected software to process the crafted key information. This is different from claiming that every machine with GnuPG installed can be reached remotely. The advisory names mail and messaging clients, Samba, Flatpak and GnuPG desktop products as examples of GPGME users. Each application’s actual library and handling of untrusted input determine its exposure.

Koch describes versions before 2.3.0 as affected and recommends 2.3.1. He also states that 2.3.0 was never publicly available. For publicly released upstream versions, 2.3.1 is the repair target; supported distribution backports can retain older version numbers.

Use the repair for the copy that actually runs

The primary sources identify three concrete update paths:

Deployment Verified repair
Upstream GPGME 2.3.1, or the maintainer’s security patch for an older branch.
Gpg4win on Windows 5.1.2, whose component list includes GPGME 2.3.1.
Debian 13 Trixie Source package gpgme1.0 version 1.24.2-3+deb13u1, marked fixed in the Debian Security Tracker.

Debian’s backport is important: checking only whether the version starts with 2.3.1 would wrongly reject that repaired package. Conversely, updating a system package leaves an application’s separately bundled library unchanged.

The advisory explicitly asks maintainers of statically linked binaries to rebuild against the repaired library. Windows applications using their own DLL also need the repaired copy. Restart affected applications after replacing their loaded libraries, and verify the application’s distribution or vendor update notes.

Koch says GPGMEPP and GPGMEQT do not need updating for this defect. Updating those bindings alone does not establish that the underlying GPGME library has been repaired.

Disclosure moved forward

GitLab notified GnuPG on November 12 after Johan Carlsson discovered the flaw. The initial disclosure plan was November 25. Koch says GitLab’s earlier update for the separate Ruby2Shell issue brought this announcement forward to November 20.

The announcement’s release-notes heading uses November 19 for GPGME 2.3.1. The advisory and Gpg4win’s availability notice are dated November 20. Those are different milestones, not evidence that the Hacker News submission time was the source publication date.

Michael Larabel’s Phoronix report corroborates the announcement and its dependency reach. It does not add independent victim evidence.

Caveat: The maintainer confirms the memory defect, but the reviewed sources leave real-world exploitation and reliable remote code execution unestablished.