RCE in Gnupg lists.gnupg.org · 246 points · 98 comments · HN thread TL;DR The Gn...
HN Best 30 @best30
RCE in Gnupg lists.gnupg.org · 246 points · 98 comments · HN thread
TL;DR The GnuPG project released GPGME 2.3.1 to fix a double free bug triggered by an OpenPGP key with a crafted, very long user ID, tracked as CVE-2026-129975 and reported by Johan Carlsson. The advisory says the bug could be used to exfiltrate data from applications and that RCE cannot be ruled out, so it urges an immediate update; Gpg4win 5.1.2 also ships the fix.
- The double free sits in two internal GPGME functions that read status lines and key listings from gpg; a 1024-byte buffer is reallocated, but the context keeps a stale pointer on early return.
- Exploitation by sending signed data could exfiltrate data from applications; the advisory says an RCE attack 'can't be ruled out' but does not claim a working exploit.
- All GPGME versions before 2.3.0 are affected, whether linked as shared library, DLL or statically, which covers Gpg4win, GnuPG Desktop, most mail clients, many XMPP clients, Samba and Flatpak software.
- GitLab reported the bug on 2026-11-12; disclosure was moved up from 2026-11-25 to 2026-11-20 because of a separate Ruby2Shell bug that forced GitLab to update earlier.
- Users should update the shared library to 2.3.1, or apply the attached patch to older versions; GPGME++ and GPGME-Qt do not need updating. Version 2.3.0 was never publicly released.
Discussion The thread is largely a debate over whether the advisory's RCE framing is justified. Many commenters argue that memory corruption reachable from attacker-supplied signed data should be treated as RCE by default, especially given AI tools that are reportedly good at turning such bugs into exploits, while others insist that without a proof of concept the RCE label is hype and that the submission title overstates the advisory. A second strand covers how the bug survived for years: a Red Hat patch reportedly covered it, and commenters discuss static analysis tools and the noise they produce. Side threads address which distros and tools depend on gpgme (Arch, Debian, pacman) and the alternative Sequoia-PGP. The mood is skeptical and somewhat sardonic rather than alarmed.
- Double free in attacker-reachable path should be assumed RCE (many): Commenters argue that memory corruption bugs of this class are routinely escalated to code execution, and that AI tools make such escalation easier, so the worst case is the right default. One points out that the advisory's wording is cautious and that gnupg usually downplays issues.
- RCE label is unproven hype without a PoC (many): A large group says RCE should only be claimed with a working exploit or proof of concept. They see the 'RCE in Gnupg' title and the 'can't be ruled out' language as clickbait that causes panic and inflates CVE severity.
- Title is editorialized and misleading (some): Several users note that the submission title goes beyond the advisory, which only says RCE cannot be ruled out. Suggested alternatives include 'Double free in GPGME' or 'Probable RCE in GnuPG clients'.
- Static analysis missed it and that is surprising (some): Commenters reference a Red Hat patch from years earlier and a Coverity scan that reportedly flagged it. They wonder why upstream never picked it up, and note that OSS maintainers lack time to triage thousands of noisy findings.
- Practical reach through PGP and package verification is unclear (a few): Users ask whether package managers such as apt or pacman are affected through gpgme. Others say Arch and Debian use it for verification and that many tools pull it in as a dependency, though no one confirms a concrete attack path.
- Little practical impact because PGP is rarely used (a few): A minority argues that PGP mail is niche and the exposure is small, though others counter that it is still widely embedded in signing and packaging workflows.
Links from the comments