The Daily Byte
Breaking
Welcome to The Daily Byte — real stories from across Pakistan.
Monday, 23 November 2026 · Pakistan

The Daily Byte

Stories from Pakistan that deserve to be heard

CVE-2026-129975: GPGME Double-Free Flaw Hits Mail Clients

By The Daily Byte ·23 Nov 2026 ·4 min read
A developer works late at night in front of several monitors displaying lines of code

The GnuPG project has warned of a critical flaw in GPGME, the library that most programs use to work with GnuPG, after finding that a malicious OpenPGP key can trigger a memory bug that may let an attacker steal data from affected applications. The flaw, tracked as CVE-2026-129975, affects all software using GPGME before version 2.3.0, and the project has urged an immediate update to the fixed release, version 2.3.1.

The advisory, published on 20 November by GnuPG's Werner Koch, describes the bug as a double free, meaning the same block of memory is released twice. Its trigger is an OpenPGP key containing a crafted, very long user ID. According to the advisory, the double free can be used to exfiltrate data from applications by sending them signed data, for example, and exploiting it to mount a remote code execution attack cannot be ruled out.

A 24-year-old bug in the code that reads GnuPG output

The root cause sits in two internal GPGME functions, read_status() and read_colon_line(), which read status lines and key listings coming back from the gpg process. Each starts with a buffer of 1,024 bytes and reallocates it when more space is required. When reallocating, the pointer to the new buffer is used by the function but is only assigned back to the context object at the end of the function.

If the function returns early because of a read error or another event, the context is never updated and keeps the stale pointer to the freed memory. Eventually the context itself is released and the memory is freed a second time. Because other allocations happen in between, the usual double-free checks in memory allocators may not trigger, which is part of what makes this class of bug dangerous rather than merely a crash.

The flaw was found by Johan Carlsson and reported to the project by GitLab on 12 November. Coordinated disclosure had originally been set for 25 November, but it was brought forward to 20 November because a separate Ruby security issue forced GitLab to update earlier, and the GnuPG disclosure moved with it.

Mail clients, chat apps and file services affected

GPGME is the standard library that programs use to drive GnuPG for signing, verification, encryption and key listing, so the flaw reaches far beyond GnuPG itself. The advisory says all software using a GPGME version before 2.3.0 is affected, whether the library is loaded as a shared library, a Windows DLL, or statically linked into the program.

The examples the project gives include Gpg4win, GnuPG Desktop and GnuPG VS-Desktop, most mail clients, many XMPP chat clients, the Samba file service and applications distributed through Flatpak. That breadth is what makes the flaw serious: a single bug in a shared layer is inherited by every application built on top of it, and users may not realise how many of their programs depend on it.

The project has reported no attacks exploiting the flaw, and no public proof of concept has been published. The risk it describes is therefore a potential one, but the advisory is blunt about the stakes: data theft from affected applications is the stated concern, and remote code execution cannot be excluded.

What to update

The fixed library version is GPGME 2.3.1, released on 19 November. A version 2.3.0 was tagged but never publicly available, so 2.3.1 is the first public release carrying the fix. On Windows, Gpg4win 5.1.2 bundles the fixed library. The legacy branch has its own fixed release, version 1.24.4, although its release notes say the project cannot guarantee that the legacy branch will receive every security patch.

How the update is applied depends on where the library sits. Shared libraries and DLLs should be updated to GPGME 2.3.1, while programs with the library statically linked into them need to be rebuilt against the fixed version, because updating the system library does not reach the copy inside them. The advisory carries a patch for older versions that cannot move to 2.3.1, which the project says is likely to apply cleanly even to very old releases. GPGMEPP and GPGMEQT, the C++ and Qt bindings, need no update.

The advisory offers no interim workaround for software that cannot be updated yet, which leaves upgrading as the only recommended action. Given that the trigger can arrive as an ordinary signed message or a key listing, and that the affected software includes the mail clients many people use every day, the practical advice is to update the library, restart the applications that use it, and check for bundled copies that a system update alone will not fix.