GnuPG released GPGME 2.3.1 and Gpg4win 5.1.2 to fix CVE-2026-129975, a critical flaw: a crafted OpenPGP key can pull data out of programs and might allow code execution. What to update.
On November 20, 2026, the GnuPG project published a security advisory for CVE-2026-129975, a flaw it rates as critical in GPGME, the library many programs use to sign and encrypt with OpenPGP (the standard behind PGP encryption for email and files). That same day it released GPGME 2.3.1, which fixes the flaw, and Gpg4win 5.1.2, its package for Windows. GnuPG recommends updating immediately.
What the flaw is
According to the advisory, a crafted OpenPGP key with a very long user ID (the name and email on the key) makes the program free the same block of memory twice, a bug known as a double free. That can be used to pull data out of applications, for example by sending signed data, and GnuPG cannot rule out that it also allows remote code execution. The bug sits in two internal GPGME functions that read the output of gpg.
The flaw was discovered by Johan Carlsson, and GitLab reported it to GnuPG on November 12. Disclosure was planned for November 25 but was moved up because GitLab had to release its own fixes earlier for another flaw, Ruby2Shell. The advisory does not mention any known attacks.
Who is exposed
Any program that uses a GPGME version earlier than 2.3.0, whether as a shared library, a Windows DLL or built into the program itself. Version 2.3.0 was never released, so the first fixed version is 2.3.1. GnuPG gives these examples:
- Gpg4win, GnuPG's package for Windows, which includes the Kleopatra certificate manager and an Outlook add-in to encrypt email, as well as GnuPG Desktop and GnuPG VS-Desktop.
- Most email clients and many XMPP messaging clients.
- Samba, the service that shares Linux server folders with Windows computers, and Flatpak, a system for installing applications on Linux.
What to do
- If your company encrypts or signs files or emails with Gpg4win, install Gpg4win 5.1.2 on every computer. Gpg4win says it fixes a severe security issue and asks users to update as soon as possible.
- On Linux servers and computers, install the system updates and restart the programs and services that use GPGME, such as Samba, so they load the fixed version. Debian has fixed Debian 13 (advisory DSA-6646-1) and Debian 12 (DLA-4924-1). As of this writing, Ubuntu and Red Hat had not yet released their fixes.
- If a program has GPGME built in, you need its vendor's update. If you develop software that uses it, build it against GPGME 2.3.1 or apply the patch GnuPG attached to its advisory, which the project says works even on very old versions. There is no need to update GPGMEPP or GPGMEQT.
How we help you
With support for your company's computers we update Gpg4win on every machine and check that encryption keeps working. With Linux server management we apply the GPGME patches and restart the services that use it. Ask for a review of your systems.
Sources
- GnuPG: GPGME security advisory (T8557, CVE-2026-129975) (November 20, 2026)
- GnuPG: technical details of issue T8557 (accessed November 21, 2026)
- Gpg4win: change history for version 5.1.2 (November 20, 2026)
- Debian: fixed versions for CVE-2026-129975 (accessed November 21, 2026)
Source: GnuPG