Threat researchCisent
GnuPG: a critical flaw in GPGME lets attackers pull data from the programs that use it
GnuPG fixed a critical flaw in GPGME, the encryption library used by mail clients, Samba and Flatpak: a crafted key can pull data out of those programs.

On November 20, the GnuPG project published a security advisory for a critical flaw in GPGME, the library many programs use to encrypt, decrypt, sign and verify with OpenPGP. The flaw is CVE-2026-129975, and it’s fixed in version 2.3.1.1
What fails
- The library: GPGME is the piece other programs use to ask GnuPG to do the cryptographic work. The advisory gives as examples Gpg4win, GnuPG Desktop, GnuPG VS-Desktop, most mail clients, many XMPP messaging clients, Samba and Flatpak.1
- The flaw: an OpenPGP key with a crafted, very long user ID makes GPGME free the same memory twice (a “double free”).1
- The cause: two internal functions that read GnuPG’s responses allocate 1,024 bytes and, if that isn’t enough, request more. The address of the new memory is only stored at the end; if the function returns early because of a read error, the old address, already freed, stays stored, and it is freed again on release. Because other allocations happen in between, the usual double-free checks may not trigger.1
How serious it is
- The project rates it critical and says it affects all prior versions.1
- According to the advisory, the double free can be used to exfiltrate data from applications, for example by sending them signed data, and using it for remote code execution can’t be ruled out. That’s why it recommends updating immediately.1
- The advisory gives no CVSS score and doesn’t say the flaw is being exploited.1
- Johan Carlsson discovered it, and GitLab reported it to the project on November 12. Coordinated disclosure was set for November 25 and was moved up to November 20.1
What to do
- Update GPGME to version 2.3.1. Version 2.3.0 was never released.1
- On Windows, the new Gpg4win version already ships the fixed library.1
- Programs that bundle GPGME (statically linked) have to be rebuilt against 2.3.1.1
- If updating isn’t possible, the advisory attaches a patch that, according to the project, likely applies cleanly even to very old versions.1
- There’s no need to update GPGMEPP or GPGMEQT.1
- Make the list: which mail clients, Samba servers and Flatpak applications the organization runs, and which of them depend on a GPGME older than 2.3.1.
Where Cisent comes in
A library that travels hidden inside other programs is exactly the kind of gap worth finding before an attacker does.
Manthys Secure Red Team attacks the organization’s systems with its authorization and within the scope it defines, to find the gaps before an attacker does: the admin panel exposed on a server nobody watches, the service published by mistake, the insecure configuration. It’s ongoing testing, not one audit a year, and every new attack pattern helps train the defense.
Sources
Werner Koch, “GnuPG Security Advisory for GPGME (T8557, CVE-2026-129975)”, gnupg-announce mailing list, November 20, 2026. https://lists.gnupg.org/pipermail/gnupg-announce/2026q4/000517.html↩︎