RCE in Gnupg lists.gnupg.org · 11 points · 1 comments · HN thread TL;DR GnuPG an...

@best

RCE in Gnupg lists.gnupg.org · 11 points · 1 comments · HN thread

TL;DR GnuPG announced GPGME 2.3.1, fixing a double-free bug (CVE-2026-129975, internal ID T8557) present in all prior versions. Triggered by an OpenPGP key with a crafted very long user ID, it may allow data exfiltration and possibly remote code execution, so immediate updates are advised. Gpg4win 5.1.2 and GnuPG Desktop releases also ship the fixed library.

  • The bug is a double free caused by two internal GPGME functions that read status lines and key listings from gpg; the context keeps a stale pointer after an early return.
  • Triggering it requires an OpenPGP key containing a crafted, very long user ID; the advisory says data exfiltration (for example via signed data) is possible and RCE cannot be ruled out.
  • All GPGME versions before 2.3.0 are affected, whether linked as shared library, DLL or statically; the advisory names Gpg4win, GnuPG Desktop, most mail clients, many XMPP clients, Samba and Flatpak as examples.
  • The bug was found by Johan Carlsson and reported to GnuPG by GitLab on 2026-11-12; disclosure moved up from 2026-11-25 to 2026-11-20 because GitLab had to update early following another bug, Ruby2Shell.
  • Workaround: a patch is attached to the advisory for older versions that cannot be upgraded; GPGMEPP and GPGMEQT do not need updating.

Discussion The thread is very small, with a single comment that expands on the advisory's disclosure timeline. The commenter notes that the bug matters particularly for GitLab because the platform verifies signed commits, so code execution in that path would be serious, and links GitLab's Omnibus patch. The mood is factual and low-key, with no debate.

  • GitLab's signed-commit path makes this especially serious (a few): The only commenter argues that GitLab is exposed because it processes signed commits, so code execution through that path would be a significant risk, and points to GitLab's packaging patch as the fix.

Links from the comments

#security #gnupg #openpgp #vulnerability #gpgme #cve