Critical GPGME Bug: A Booby-Trapped Encryption Key Could Leak Data From Your Mail App
If you use PGP to sign or encrypt email, this one is for you. The GnuPG project has fixed a critical bug in GPGME, the behind-the-scenes library that lets mail apps and other programs talk to GnuPG. A booby-trapped encryption key could be used to pull data out of an affected program, and the developers say they can’t rule out an attacker running code on your machine.
Here are the answers to the questions most people will have.
What could an attacker actually do?
The attacker builds an OpenPGP key with an extremely long user ID, the name-and-email part of a key. When an affected program reads it, GPGME releases the same piece of memory twice, a classic “double free” bug. In its security advisory, GnuPG says this can be used to exfiltrate data from applications, giving signed data sent to the application as an example, and adds that remote code execution “can’t be ruled out”. It calls an immediate update “highly suggested”.
Which programs are affected?
Anything built on a GPGME version older than 2.3.0, whether it loads the library as a shared file, a Windows DLL, or has it baked in. The advisory names Gpg4win, GnuPG Desktop and GnuPG VS-Desktop, “most mail clients”, many XMPP chat clients, Samba and Flatpak. According to Debian’s security tracker, the faulty code dates back to a very early GPGME release, so practically every installed copy is affected. The bug is tracked as CVE-2026-129975.
I’m on Windows. What do I install?
Update to Gpg4win 5.1.2, which bundles the fixed library. If you use GnuPG Desktop or VS-Desktop, install their new releases too. Then restart your mail program so it picks up the new version.
And on Linux?
Run your normal system updates. The fixed upstream version is GPGME 2.3.1 (there was never a public 2.3.0). Distributions backport the fix, so your version number may look older. Debian, for example, lists 1.18.0-3+deb12u1 for bookworm and 1.24.2-3+deb13u1 for trixie as fixed. For people stuck on the older branch, the project also put out a fixed 1.24.4 release and a patch, The Hacker News reports.
Is updating the system library always enough?
No, and this is the part that catches people out. Apps that ship their own copy of GPGME, or have it statically compiled in, won’t benefit from a system update. They need their own new release built against 2.3.1. If you rely on a bundled or portable encryption tool, check its website for an update. Developers who ship GPGME inside their product need to rebuild.
Is anyone exploiting it yet?
No attacks have been reported. The bug was found by an outside researcher and passed to GnuPG through GitLab on 12 November. Public disclosure was planned for 25 November but brought forward to 20 November, because GitLab had to push updates early for the separate Ruby2Shell bug. That means the details are public before many people have patched, so don’t sit on this one.
Anything I can do until I update?
The advisory doesn’t offer a workaround. As general caution, don’t import keys from people you don’t know, and be wary of unexpected signed messages from unknown senders until your software is patched. It takes a few minutes to fix properly, and that’s still the only real answer.
