Skip to content
Vulnerability Memory corruption CVE-2026-129975

GnuPG fixes critical double free in GPGME (CVE-2026-129975)

A malicious OpenPGP key with a long user ID can trigger a double free in GPGME before 2.3.0, risking data theft.

Reported by The Hacker News

First reported Summary updated

Read the coverage
Public PoC
Not known
Exploited
No
CVSS
8.1 High

What happened

GPGME, the library programs use to work with GnuPG, contains a double free triggered by crafted input such as an OpenPGP key with an unusually long user ID.1

The flaw lies in read_status() and read_colon_line(), which read status lines and key listings from GnuPG; an error after reallocation leaves a pointer to freed memory that cleanup frees again.1

The project warned that the bug could be used to steal data from affected applications and has released fixed versions.1

The flaw was found by Johan Carlsson and reported to the project by GitLab.1

Who is affected

  • GPGME, before 2.3.01
  • Gpg4win, before 5.1.21

Is there a public exploit?

Not known None of the sources mentions public exploit code yet.

Exploited in the wild?

Not yet The project has not reported any attacks exploiting the flaw.1

What to do

  • Update shared library or DLL installations to GPGME 2.3.1.1
  • On Windows, update to Gpg4win 5.1.2, which bundles the fixed library.1
  • Older versions that cannot move to 2.3.1 can use the patch in the advisory or the legacy branch release 1.24.4.1
  • Applications with bundled or statically linked copies need their own rebuilt releases, as system library updates do not reach them.1

For bug hunters

This is a memory-corruption bug: a double free caused by an early return after reallocation, which can corrupt process memory. Such flaws appear in parsers and libraries that handle untrusted structured input, including file format parsers, protocol decoders and cryptographic tooling. Look for code paths where a buffer is reallocated and an error path skips updating the pointer, then test with oversized or malformed fields. Fuzzing parsers and reviewing cleanup routines for double frees are useful approaches.

What to test

  • Fuzz parsers of key listings and status lines with oversized user IDs and malformed fields.
  • Review reallocation paths for early returns that leave stale pointers before cleanup.
  • Test applications that pass signed data to libraries without manual key import.
  • Check bundled or statically linked copies of libraries for outdated versions.

The Memory corruption lesson Every Memory corruption report

Written by bugbounty.wiki with AI from its source. Every statement above comes with a quote we checked against the source it cites (the numbers link to it); anything we could not check was left out. It can still be wrong, so read the coverage before relying on a detail.

Coverage

The article this story is based on. Each headline opens the outlet's own article.

  1. 1

Reports about Memory corruption

View all

Disclosed reports of the same bug class, clearest first.

More news

View all

Other stories from the last month, Memory corruption first.