CriticalVulnerabilityPatch available

GnuPG GPGME CVE-2026-129975: double free via long OpenPGP user ID

GnuPG fixed a critical GPGME double-free (CVE-2026-129975) triggered by an oversized OpenPGP user ID; update to GPGME 2.3.1 or Gpg4win 5.1.2.

Published
Fixed in
GPGME 2.3.1, Gpg4win 5.1.2, GPGME 1.24.4 (legacy branch)
Exploitation
No, The Hacker News says the GnuPG project has not reported any attacks exploiting the flaw

Live scores

CVE-2026-129975
EPSS
0.016
some chance of attack soon
VEDAS
0.969
strong exploit evidence
On CISA KEV
Not listed
Detection rule
No public rule yet

What happened

GnuPG has released fixes for a critical memory bug in GPGME, the library programs use to work with GnuPG. A malicious OpenPGP key with an unusually long user ID can trigger it, according to The Hacker News. Both outlets track the flaw as CVE-2026-129975; this advisory did not have an official CVE record among its sources, so the details below come from the two news reports.

The bug is a double free, meaning the same memory is released twice. The Hacker News reports it sits in two routines, read_status() and read_colon_line(), which read status lines and key listings coming back from GnuPG. When the input runs long, the routines move the data to a larger buffer but record the new address only if they finish without errors. An error in between leaves a pointer to memory that was already freed, and cleanup then frees it a second time, per the project’s tracker entry as summarised by The Hacker News. Kyle’s Investigation gives the internal ticket ID as T8557.

Both outlets say the project cannot rule out remote code execution, and that the flaw could expose data from the affected application. The Hacker News gives signed data sent to an application as an example path to the bug, and adds that the advisory does not say which programs pass such material to the library without a manual key import.

Timeline, as reported:

  • Johan Carlsson found the flaw. The Hacker News says GitLab reported it to the project “last week”; Kyle’s Investigation says GitLab informed GnuPG on November 12.
  • Disclosure had been planned for November 25 and was brought forward because GitLab’s own disclosure moved up on account of the Ruby2Shell issue. Kyle’s Investigation says the new date was November 20.
  • Kyle’s Investigation says GPGME 2.3.1 is dated November 19 and was announced on November 20, alongside updated Gpg4win and GnuPG Desktop builds.

Am I affected?

Probably, if any software on your systems uses GPGME. The Hacker News says all software using GPGME before version 2.3.0 is affected, whether the library is a shared library, a Windows DLL, or statically linked. Version 2.3.0 was never publicly available, so in practice every public release before 2.3.1 is affected, as Kyle’s Investigation also notes.

Examples named by the outlets:

  • The Hacker News: most mail clients, many XMPP clients, Samba, and the project’s own Gpg4win, GnuPG Desktop and GnuPG VS-Desktop packages.
  • Kyle’s Investigation: email clients, Samba, Flatpak packages and Windows systems running Gpg4win.

Bundled and statically linked copies are affected too. Updating the system’s shared library does not reach them, so those applications need their own rebuilt releases, per The Hacker News. According to the same outlet, GPGMEPP and GPGMEQT need no update.

What to do now

  1. Find where GPGME lives in your stack, including copies bundled inside third-party applications and packages.
  2. Shared library or DLL: update to GPGME 2.3.1 from the project’s official downloads (The Hacker News).
  3. Windows: update to Gpg4win 5.1.2, which bundles the fixed library (The Hacker News, Kyle’s Investigation). The Hacker News says its release notes call the issue severe and advise updating as soon as possible.
  4. Statically linked or bundled copies: rebuild and redeploy against the fixed library, or watch for updated releases from the vendors who ship them.
  5. Legacy branch: use GPGME 1.24.4, which carries the fix. The Hacker News adds that its release notes say the project cannot guarantee that branch will receive every security patch.
  6. If you cannot move to 2.3.1: apply the official patch. The Hacker News says the advisory carries it; Kyle’s Investigation says it is attached to the T8557 ticket rather than the announcement email, and should apply cleanly even to very old versions. The outlets differ on where it is found, so check both the advisory and the ticket.
  7. No interim workaround is offered for software that cannot update yet, according to The Hacker News.

Sources