A malicious OpenPGP key with an unusually long user ID can trigger a critical memory bug in GPGME, the standard library that programs use to work with GnuPG.
The GnuPG project warned yesterday that the flaw could be used to steal data from affected applications and has released fixed versions.
The bug, tracked as CVE-2026-129975, affects all software that uses GPGME before version 2.3.0, whether the library is loaded as a shared library, a Windows DLL, or statically linked into the program.
Examples the project gives include most mail clients, many XMPP clients, Samba, and its own Gpg4win, GnuPG Desktop, and GnuPG VS-Desktop packages.
The project has not reported any attacks exploiting the flaw, and it notes that remote code execution cannot be ruled out.
Its example of a path to the bug is signed data sent to an application. Which programs pass such material to the library without a manual key import is not something the advisory notes.
The flaw is a double free, meaning the same memory is released twice. It sits in two routines, read_status() and read_colon_line(), that 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 latest 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, as the project's tracker entry details.
Sources indicate that the flaw was found by Johan Carlsson and reported to the project by GitLab last week. Disclosure was set for November 25, the advisory indicates, and moved up because the new Ruby2Shell bug forced the company to enhancement earlier.
Industry observers note that the fixed library version is GPGME 2.3.1, released this week. A version 2.3.0 was never publicly available.
What to install depends on where the library sits:.
The advisory offers no interim workaround for software that cannot patch yet.
Discover why SHA pinning alone isn't enough and learn how to close hidden security gaps in your GitHub Actions pipelines.
Learn what 6,000 real-world attacks reveal about MFA weaknesses and how to stop AI-driven phishing and account takeovers.
Get the latest news, expert insights, exclusive resources, and strategies from industry leaders, all for free.
