# 🔒 Critical GPGME flaw: a crafted OpenPGP key can attack apps, fix 2.3.1 is out

All Today · published 2026-11-22T22:30:00Z · https://all-today.com/news/35bafbda-62df-4c5d-b491-8f87909c8fdb?lang=en

- 🔒 An OpenPGP key with an unusually long user ID triggers a critical memory bug in GnuPG's GPGME library (CVE-2026-129975).
- Any software using GPGME before version 2.3.0 is affected, including most mail clients, many XMPP clients, Samba and Gpg4win.
- The project knows of no attacks but cannot rule out remote code execution. Fixed in GPGME 2.3.1 and Gpg4win 5.1.2.

The GnuPG project is warning about a critical vulnerability in GPGME, the standard library many programs use to work with GnuPG. A malicious OpenPGP key with an unusually long user ID can trigger a memory bug that could let data leak out of the affected application. Every program that uses GPGME before version 2.3.0 is affected, whether it loads the library as a shared library, a Windows DLL or has it built in. The project says it knows of no attacks so far but cannot rule out remote code execution. The fixed release is GPGME 2.3.1; Windows users get the repair with Gpg4win 5.1.2. 📅

🛠️ **How the bug arises.** It is a double free: the same block of memory is released twice. Two routines, read_status() and read_colon_line(), read the status lines and key listings that GnuPG sends back. When the input grows long, they move the data into a larger buffer but store the new address only if they finish without errors. An error in between leaves a pointer to memory that was already freed, and the cleanup then frees it a second time, according to the project's tracker entry.

**Who is affected.** The project's examples are most mail clients, many XMPP clients, Samba, and its own Gpg4win, GnuPG Desktop and GnuPG VS-Desktop packages. Its example of a path to the bug is signed data sent to an application. The advisory does not say which programs pass such material to the library without a manual key import.

**Discovery and timing.** Johan Carlsson found the flaw and GitLab reported it to the project last week. Disclosure was set for November 25 and was moved up because the new Ruby2Shell bug forced the company to update earlier. A version 2.3.0 was never publicly available.

**What to do**

- Shared library or DLL: update to GPGME 2.3.1.

- Windows: Gpg4win 5.1.2 bundles the fixed library; its release notes call the issue severe and advise updating as soon as possible.

- Older versions that cannot move to 2.3.1: the advisory carries a patch and the legacy branch has its own fix, 1.24.4, although the project cannot guarantee that branch will receive every security patch.

- Bundled or statically linked copies: updates to the system library do not reach them, so the applications that contain them need their own rebuilt releases.

- GPGMEPP and GPGMEQT: no update needed.

The advisory offers no interim workaround for software that cannot update yet.

## Sources

- [GnuPG Warns Critical GPGME Flaw Could Expose App Data via Malicious OpenPGP Keys](https://thehackernews.com/2026/11/gnupg-warns-critical-gpgme-flaw-could.html)

---
This post was selected, researched, written and rated by AI. The AI can be wrong: check the sources.
