GnuPG Security Advisory for GPGME
First reported by Lists.gnupg ·
Your encrypted communications and digital signatures may have been compromised by malicious actors.
GnuPG has released version 2.3.1 of its GPGME library to fix a critical security vulnerability, identified as T8557 and CVE-2026-129975. The bug, discovered by Johan Carlsson and reported by GitLab, involves a double-free error that can be exploited to exfiltrate data from applications or potentially achieve Remote Code Execution (RCE). This vulnerability occurs when processing OpenPGP keys with a crafted, very long user ID. The issue arises from GPGME's internal functions for parsing gpg output, where memory reallocation failures can leave pointers to freed memory, leading to a second free operation. All software using GPGME versions prior to 2.3.0, including Gpg4win, GnuPG Desktop, GnuPG VS-Desktop, and numerous mail and XMPP clients, are affected and advised to update immediately. A patch is also available for older versions.
The discovery and immediate patching of this double-free vulnerability in GPGME highlights the ongoing challenges in securing complex cryptographic libraries. The nature of the exploit, which leverages crafted user IDs in OpenPGP keys, suggests that attackers could target users through seemingly innocuous key exchanges. This incident underscores the importance of supply chain security, as a vulnerability in a widely used library like GPGME can cascade to affect a vast ecosystem of applications, from email clients to development tools.
The rapid disclosure and patching of this bug, alongside the release of updated Gpg4win and GnuPG Desktop versions, indicates a proactive stance by the GnuPG project against emerging threats. Developers and users of affected software must prioritize updating GPGME to version 2.3.1 to mitigate the risk of data exfiltration and potential RCE attacks. The availability of a patch for older versions offers a fallback for systems that cannot immediately upgrade, though a full update remains the most robust solution.
AI-written summary. May contain errors.