# A crafted OpenPGP key can trigger a double free in GPGME, and RCE can't be ruled out

Original title: RCE in Gnupg

> Hacker News story 50587208 · language: en · submitted 2026-11-21
> Web version: https://zeli.app/story/50587208
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 264 · by [gdgghhhhh](<https://news.ycombinator.com/user?id=gdgghhhhh>) · 💬 115
[original](<https://lists.gnupg.org/pipermail/gnupg-announce/2026q4/000517.html>) · [HN discussion](<https://news.ycombinator.com/item?id=50587208>)

## Summary

GnuPG released GPGME 2.3.1 to fix a critical double-free bug (CVE-2026-129975, tracked as T8557) present in every earlier version. A malicious OpenPGP key with an oversized user ID corrupts a stale buffer pointer, letting attackers exfiltrate data from applications and possibly achieve remote code execution. Nearly everything linking GPGME is affected — mail clients, XMPP clients, Samba, Flatpak, Gpg4win, and GnuPG Desktop. An immediate update is strongly advised.

## Key quote

> Exploiting this bug to mount a Remote Code Execution attack (RCE) can't be ruled out. Thus an immediate update is highly suggested.

## HN discussion (115 comments)

### [uptrails](<https://news.ycombinator.com/item?id=50588137>)

> Reportedly fixed by Red Hat 5 years ago based on the output from conventional tools, but missed by upstream: https://gitlab.com/redhat/centos-stream/rpms/gpgme/-/blob/c9...

### [miduil](<https://news.ycombinator.com/item?id=50587856>)

> This vulnerability was discovered by Johan Carlsson and we were informed by GitLab on 2026-11-12.
>
> Initially we set 2026-11-25 for a coordinated disclosure;
>
> due to the new Ruby2Shell bug GitLab had to update earlier
>
> and thus we also disclosed the GPGME bug on 2026-11-20.
>
> I guess pretty important for GitLab since it supports signed commits, code execution in that path is pretty bad.
>
> You can find the GitLab Omnibus related patch here: https://gitlab.com/gitlab-org/omnibus-gitlab/-/commit/279ac3...

### [mik1998](<https://news.ycombinator.com/item?id=50588549>)

> It's a double free bug, not an RCE chain. Are these vulnerability reports intentionally overstated?

### [wannabe44](<https://news.ycombinator.com/item?id=50591551>)

> All software using a GPGME version prior to 2.3.0 either as shared
>
> libary, DLL, or statically linked is affected.  Examples of software
>
> using GPGME are
>
> \- Gpg4win
>
> \- GnuPG Desktop
>
> \- GnuPG VS-Desktop
>
> \- Most mail clients
>
> \- Many XMPP clients
>
> \- Samba
>
> \- Flatpack
>
> I assume this is in "gpgme" and doesn't affect apt etc? Can someone confirm?

### [dehrmann](<https://news.ycombinator.com/item?id=50592001>)

> It's becoming clear that humans have no business writing C/C++ without Rust-level tooling around it to prevent these things.

### [usr1106](<https://news.ycombinator.com/item?id=50588446>)

> What are practical attack vectors for Linux workstations and servers?
>
> The masses of internet users don't know what GPG is. I'd caim the majority of software developers don't have a GPG key and never explicitly verify any signature.
>
> But packages of many distros are verified using GPG. Is the vulnerable component involved or not?

### [mmsc](<https://news.ycombinator.com/item?id=50588590>)

> The vulnerability is in GpgME (the library), not GnuTLS (the library).

### [tombardier](<https://news.ycombinator.com/item?id=50591092>)

> "We are pleased to announce..."

---

## Cite

- Page: https://zeli.app/story/50587208
- Date: 2026-11-21
- Source: lists.gnupg.org (https://lists.gnupg.org/pipermail/gnupg-announce/2026q4/000517.html)
- Hacker News: https://news.ycombinator.com/item?id=50587208

## Other languages

- zh: https://zeli.app/zh/story/50587208 · markdown: https://zeli.app/zh/story/50587208.md
- ja: https://zeli.app/ja/story/50587208 · markdown: https://zeli.app/ja/story/50587208.md
- ko: https://zeli.app/ko/story/50587208 · markdown: https://zeli.app/ko/story/50587208.md
- de: https://zeli.app/de/story/50587208 · markdown: https://zeli.app/de/story/50587208.md
- es: https://zeli.app/es/story/50587208 · markdown: https://zeli.app/es/story/50587208.md
- ru: https://zeli.app/ru/story/50587208 · markdown: https://zeli.app/ru/story/50587208.md
