Flash

Flash·Safety & Risk·2026-11-22 20:09

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.

Developer reviewing code beside a monitor showing a padlock in a bright office
AI-generated illustration

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

  1. 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
  2. Before 2.3.0: All versions affected, as shared library, DLL or static link; 2.3.0 was never publicly released
  3. Scope: Gpg4win, GnuPG Desktop, most mail clients, many XMPP clients, Samba and Flatpak
  4. 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
  5. 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.
Useful Tap if this story helped you
Send to a friendMakes a share image for X, WeChat, Telegram and more

SourcesGnuPG (Nov 20, 2026); CyberPresso (Nov 22, 2026). This article is compiled from public information and does not constitute investment advice.

From HIMIAO Horizon · himiao.ai

Grab todayAdobe Creative Cloud Pro: 57% off first yearHIMIAO Picks →

Follow HIMIAO Horizon

No sign-up · Unsubscribe any time

Email

Notifications

A ping on your phone or computer when the brief is out. No email needed.

HIMIAO PicksWeekly freebies: one email every Friday, a 5-minute read

Comments

  1. Loading comments…
Ask the cat