← BACK TO FEED
GnuPGGPGMECVEcryptographyvulnerability

Critical Memory Bug in GPGME Puts PGP-Using Apps at Risk

A critical memory vulnerability (CVE-2026-129975) in GPGME, the library used by applications to interact with GnuPG, can be triggered by a malicious OpenPGP key with an unusually long user ID, potentially allowing data theft or possibly remote code execution. The flaw, a double-free bug, affects all GPGME versions before 2.3.1 and impacts a wide range of software including mail clients, XMPP clients, Samba, and Gpg4win. Users should update to GPGME 2.3.1 or Gpg4win 5.1.2 immediately, noting that applications with statically linked or bundled copies of the library will require their own rebuilt releases.

A crafted OpenPGP key with an abnormally long user ID can trigger a double-free vulnerability in GPGME, the library that most PGP-aware software relies on under the hood. The GnuPG project has issued a fix and is treating this as a critical issue.

Tracked as CVE-2026-129975, the flaw affects every application using GPGME prior to version 2.3.1, regardless of how the library is packaged. That means shared libraries, Windows DLLs, and statically linked builds are all in scope. The affected application list is fairly broad: most mail clients, various XMPP clients, Samba, and GnuPG's own Windows products including Gpg4win and GnuPG VS-Desktop.

The root cause sits in two functions, read_status() and read_colon_line(), which handle status output and key listing data returned from GnuPG itself. When input exceeds the initial buffer size, the routines reallocate memory but only update the internal pointer on a clean exit. If something goes wrong mid-process, the old pointer is left dangling, pointing at memory that has already been freed. When cleanup runs, it frees that address a second time. Classic double free, with all the heap corruption that implies.

The attack vector the advisory describes is signed data passed to an application, though it stops short of specifying which applications hand that material to the library without requiring a manual key import first. Remote code execution is explicitly listed as not ruled out. No active exploitation has been reported yet.

The bug was found by Johan Carlsson and disclosed to the GnuPG project through GitLab. The original disclosure date was set for November 25 but was brought forward after a separate Ruby2Shell vulnerability forced GitLab to push an update ahead of schedule.

What needs updating

GPGME 2.3.1 is the fixed release. Version 2.3.0 was never actually shipped publicly, so the jump from 2.2.x to 2.3.1 is not an error.

For Windows users, Gpg4win 5.1.2 bundles the patched library. The release notes describe the severity as high and recommend updating immediately.

Systems that cannot move to 2.3.1 can apply the patch included in the advisory directly. There is also a fix in the legacy branch, released as version 1.24.4, though the project notes the legacy branch carries no guarantee of receiving every future security fix.

Applications that bundle their own static copy of GPGME will not be covered by a system-level library update. Those need their own rebuilt releases from their respective maintainers.

GPGMEPP and GPGMEQT are unaffected.

There is no documented workaround for software that cannot patch immediately. Update or accept the risk.

READ NEXT
WordPress Core Race Condition Flaw Under Active Attack, CISA WarnsCVSS 10.0: LXD and MicroCloud Bug Let Attackers Impersonate Trusted Clients With No Private Key RequiredCISA Adds PHP2Shell RCE Flaws to Active Exploitation List as 32 Million Servers Sit Unpatched