RCE in Gnupg
GnuPG announced GPGME 2.3.1, which fixes a critical security bug present in all prior versions, according to Werner Koch's announcement. The advisory describes the flaw: an OpenPGP key containing a crafted very long user ID can trigger a double free. That double free can be used to exfiltrate data from applications, for example by sending signed data, and the advisory states that exploiting the bug to mount a remote code execution attack cannot be ruled out. The internal ID is T8557 and the CVE ID is CVE-2026-129975. The vulnerability was discovered by Johan Carlsson, with GitLab informing the project on 2026-11-12. Coordinated disclosure was initially set for 2026-11-25, but GitLab had to update earlier because of the new Ruby2Shell bug, so the GPGME bug was disclosed on 2026-11-20. The root cause, per the advisory, lies in two GPGME internal functions that read status lines and key listings from gpg. A 1024-byte buffer is allocated and reallocated when more space is needed; the pointer to the new buffer is used by the function but only assigned back to the context object at the end. If the function returns early due to a read error or other events, the context keeps a stale pointer to freed memory, and the memory is freed a second time when the context is released. The advisory notes that other allocations in between may prevent common double-free checks from triggering. It lists Gpg4win, GnuPG Desktop, GnuPG VS-Desktop, most mail clients, many XMPP clients, Samba, and Flatpack as examples of software using GPGME. Version 2.3.1, dated 2026-11-19, also adds the constants GPGME_PK_MLKEM, GPGME_PK_MLDSA, and GPGME_PK_DLTHM; the advisory says version 2.3.0 was never publicly available.
Software that uses GPGME, including mail and XMPP clients and Samba, is affected by a double free that the advisory says could enable data exfiltration and possibly remote code execution.