Critical GPGME Double-Free Flaw: Crafted User ID Can Steal App Data, Fixed in 2.3.1
GnuPG issued a security advisory on Nov 20: GPGME has a critical double-free flaw, CVE-2026-129975, fixed in 2.3.1; all versions before 2.3.0 are affected, from mail clients to Samba and Flatpak.

What happened
On Nov 20, GnuPG released GPGME 2.3.1, fixing a critical security bug. Tracked as CVE-2026-129975, internally as T8557, it was discovered by Johan Carlsson and reported via GitLab on Nov 12; coordinated disclosure was set for Nov 25 but moved up to Nov 20 because GitLab had to ship earlier over a separate Ruby2Shell bug.
The trigger is an OpenPGP key carrying a crafted very long user ID. Two internal GPGME functions that read gpg status lines and key listings start with a 1,024-byte buffer and grow it with realloc when a line is longer; the new pointer is only written back to the context object at the end of the function, so an early return leaves the context holding the freed old pointer, and the memory is freed a second time when the context is released. Ordinary allocator double-free checks may not trigger.
The double free can be used to exfiltrate data from applications, for example by sending signed data, and remote code execution cannot be ruled out. GnuPG urges an immediate update to 2.3.1; statically linked programs must be rebuilt against 2.3.1. Gpg4win 5.1.2 shipped the same day with the fixed GPGME; GPGMEPP and GPGMEQT need no update. GnuPG has not reported attacks in the wild.
Key facts
- CVE-2026-129975: Critical double-free flaw triggered by a crafted very long OpenPGP user ID; it can exfiltrate app data, and remote code execution cannot be ruled out
- Before 2.3.0: All versions affected, as shared library, DLL or static link; 2.3.0 was never publicly released
- Scope: Gpg4win, GnuPG Desktop, most mail clients, many XMPP clients, Samba and Flatpak
- Fix: GPGME 2.3.1 (released Nov 19); Gpg4win 5.1.2 shipped the same day; a legacy 1.24.4 is available for branches that cannot move
- Timeline: Reported via GitLab on Nov 12; disclosure planned for Nov 25, moved up to Nov 20 because GitLab shipped earlier over the Ruby2Shell bug
Why it matters
GPGME is the shared library many programs use to talk to GnuPG, so one memory bug reaches mail, chat and file-sharing entry points; the patch only helps once it reaches every program that calls it.
Follow HIMIAO Horizon
No sign-up · Unsubscribe any timeNotifications
A ping on your phone or computer when the brief is out. No email needed.
Comments
Today
Nov 23 Monday- Brief
- GitHubGitHub Weekly Vol.7: 7 Projects Worth a Look This Week
Tested or read — weeklyAll →
- Quiz
- Call
Latest news
All →- Nov 23GitHub Weekly Vol.7: 7 Projects Worth a Look This Week
- Nov 23Alibaba Qwen4-Max Review: Intelligence Index 43, Task Costs Down 58%, Terminal Coding Trails Kimi
- Nov 23US Intel Chief Confirms China Obtained Nvidia's Top AI Chips
- Nov 23OpenAI Chief Scientist: Perplexity Tracks Intelligence, Calls for Shared Limits
- Nov 23AI Agents Breached a Medical Imaging Server in 11 Minutes; MONAI Label Zero-Day Now Fixed
- Nov 23Tampered DeepSeek Model Served for 53 Hours; Refusals Fell From 98% to 1%
™