Most people never install GPGME on purpose. It still runs on a lot of machines. The library is the layer that lets other programs use GnuPG's encryption and signing, and it sits inside mail clients, chat apps, file servers and Windows encryption suites. On November 20 the GnuPG project published a security advisory for a critical memory-safety bug in that library. It is tracked as CVE-2026-129975 and fixed in GPGME 2.3.1.
According to the advisory, written by GnuPG maintainer Werner Koch, an attacker can trigger the flaw with an OpenPGP key that carries a crafted, very long user ID. The advisory says the double free can be used to exfiltrate data from applications, for example by sending signed data, and that remote code execution cannot be ruled out. The project reported no attacks exploiting it, according to The Hacker News.
What went wrong
The bug is a double free. In C, a program borrows memory, uses it, and gives it back by "freeing" it. If the same memory is freed twice, the program's memory bookkeeping gets corrupted. Attackers who can shape that corruption can sometimes read memory they shouldn't see or take control of the program's execution. That is why this bug class usually rates high or critical.
The advisory traces the root cause to two internal GPGME functions that read status lines and key listings from the gpg engine. Each starts with a 1,024-byte buffer and reallocates it to a larger one when more space is needed. The flaw is in when the new location is recorded. The functions only assign the pointer to the enlarged buffer back to the context object at the end. If they return early because of a read error or another event, the context keeps the stale pointer to freed memory. When the context is eventually released, that memory is freed a second time. The advisory adds that other allocations in between can keep the memory allocator's usual double-free checks from firing.
That is why a very long user ID matters. A user ID is the name-and-email label attached to an OpenPGP key. Per the advisory, a crafted, very long user ID is what triggers the bug. The CVE record's title describes the vulnerable function as being reached "via crafted signature," which fits the advisory's point that the attack can arrive through signed data.
Severity: how bad is it?
GnuPG calls the bug critical. Red Hat, which assigned the CVE, gives it a CVSS 3.1 base score of 8.1 (High) and its own severity rating of "Important," according to the CVE.org record. The vector shows it is reachable over the network (AV:N) and needs no privileges (PR:N) and no user interaction (UI:N). Attack complexity is rated high (AC:H), which means an attacker needs certain conditions to line up before exploitation works. The record was published November 23, and the National Vulnerability Database had no entry for it yet when we checked.
The "no user interaction" rating is the part to take seriously. Many GPGME-based applications process keys and signatures automatically. A mail client may check a signature when a message is displayed, and a chat client may handle a contact's key in the background. In those programs, receiving the malicious key or signed data may be all it takes.
Who is affected
The advisory says all software using a GPGME version before 2.3.0 is affected, whether the library is used as a shared library, a Windows DLL or statically linked. It lists these as examples of software that uses GPGME:
- Gpg4win, the Windows GnuPG distribution
- GnuPG Desktop and GnuPG VS-Desktop
- Most mail clients
- Many XMPP (Jabber) clients
- Samba
- Flatpak
The CVE record lists Red Hat Enterprise Linux 7 through 10 and OpenShift Container Platform 4 and 5 as affected, and RHEL 6 as unknown. That gives a sense of how far the library reaches on Linux servers as well as desktops.
One version detail can confuse people. GPGME 2.3.0 was never publicly released. The advisory names 2.3.1, dated November 19, as the fixed version, and The Hacker News says the same. If you see "2.3.0" in a vulnerability scanner or bulletin, treat 2.3.1 as the release to install.
Why disclosure came early
The timeline is unusual. The advisory credits Johan Carlsson with finding the bug and says GitLab informed the GnuPG project on November 12. Coordinated disclosure was set for November 25. The date moved up to November 20 because, in the advisory's words, GitLab had to update earlier because of a "new Ruby2Shell bug." The advisory gives no further detail on that issue.
For defenders, this may mean distributions and vendors had less lead time than planned, so some downstream packages could lag behind the upstream release by a few days.
What It Means for Defenders
Update GPGME to 2.3.1. This is the fixed upstream release. On Linux, watch your distribution's security channel and apply the updated gpgme package as soon as it ships. Red Hat lists RHEL 7 through 10 and OpenShift as affected, so expect advisories there.
Windows users: install Gpg4win 5.1.2. GnuPG has released it with the fixed GPGME. Organizations that deploy GnuPG Desktop or GnuPG VS-Desktop should look for the corresponding updated versions the project announced alongside it.
Stuck on an older branch? The advisory includes a patch that it says likely applies cleanly even to very old versions. Packagers and teams that maintain internal builds can backport it instead of jumping to 2.3.1. The Hacker News also reports a fixed legacy release, 1.24.4, with the caveat that the project cannot guarantee the legacy branch will receive every security patch.
Look for statically linked copies. The advisory says static builds are affected too. A statically linked copy won't be fixed by updating the system library. Each application that bundles its own GPGME needs to be rebuilt against 2.3.1. Check mail clients, XMPP clients, Flatpak apps and any in-house tools that do OpenPGP signing or verification.
No action needed for the C++ and Qt bindings. The advisory says there is no need to update GPGMEPP or GPGMEQT. Applications that use them still rely on the underlying GPGME library, so update that.
Prioritize systems that handle untrusted keys. Mail gateways, shared mailboxes, Samba file servers and any service that imports or verifies keys and signatures from outside parties are sensible first candidates for patching. The advisory describes exploitation through a crafted key and signed data, and Red Hat's vector rates the bug as requiring no user interaction.
CMMC and compliance teams: record the CVE in your vulnerability tracking now, even though NVD has not published an entry yet. Red Hat's 8.1 score from the CVE record is a reasonable placeholder for your remediation SLA until NVD scores it.
No in-the-wild exploitation has been reported. Disclosure was moved up, though, and the affected software is widely deployed, so treat this as a this-week patch.