GnuPG fixes critical GPGME bug CVE-2026-129975 in version 2.3.1
GPGME 2.3.1 fixes CVE-2026-129975, a critical flaw that lets a crafted OpenPGP key expose app data; Windows users should install Gpg4win 5.1.2.
Key points
- The GnuPG project released GPGME 2.3.1 to fix CVE-2026-129975, a critical double-free flaw affecting every earlier version of the library.
- A crafted OpenPGP key with an overly long user identifier can trigger the bug, potentially letting an attacker steal data from an affected application.
- Gpg4win, GnuPG Desktop, GnuPG VS-Desktop, Samba, and most mail and XMPP clients are among the affected software; statically linked copies need their own rebuilt releases.
- Windows users can install Gpg4win 5.1.2; older setups can apply the advisory patch or use legacy release 1.24.4.
The GnuPG project has released GPGME 2.3.1, closing a critical flaw present in every earlier version of the library. Werner Koch announced the update and said all software using GPGME before version 2.3.0 is affected, calling for an immediate upgrade.
The Hacker News reported that the bug can be triggered when an application processes an OpenPGP key built around a crafted, overly long user identifier. That memory error can give an attacker a path to pull data from the affected program. The GnuPG project has issued fixed versions across its product line, and the official security advisory calls for action without delay.
Key facts about the GnuPG critical GPGME bug CVE-2026-129975
- The flaw is tracked as CVE-2026-129975 and rated critical. It is a double free, a type of memory error where the same block of memory is released twice, sitting in two internal routines that process data coming back from GnuPG.
- Every version of GPGME before 2.3.0 is vulnerable, whether the library runs as a shared component, a Windows DLL, or is compiled directly into a program.
- The GnuPG project never released version 2.3.0 to the public; GPGME 2.3.1 is the first safe version available.
- No exploits have been reported, though the project has not ruled out remote code execution as a possible outcome.
- The flaw was found by Johan Carlsson and reported to the GnuPG project by GitLab. Disclosure had been set for November 25 but moved up after a Ruby2Shell bug forced an earlier update cycle.
- GPGMEPP and GPGMEQT do not require an update.
Background
GPGME is the library most applications call when they need to work with GnuPG. When a program verifies a digital signature, decrypts a message, or manages encryption keys, it typically handles those operations through GPGME. The library can run as a shared component used by many programs at once, as a Windows DLL, or baked directly into a single application.
The flaw lives in two internal routines that handle status output and key listing data returned by GnuPG. When the data being processed is unusually long, those routines move it to a larger memory buffer. The new buffer address should replace the old one in the program's context object, but that swap only happens when the routine finishes cleanly. If something causes the routine to exit early, the context object keeps pointing to memory that was already freed. When cleanup runs later, that same memory is freed a second time.
The Hacker News noted that the GnuPG project gives signed data sent to an application as one path to reach the vulnerable code. Which programs pass such material to the library without first requiring a manual key import is not something the advisory covers, leaving that part of the attack surface unclear.
What it means for you
The affected software list is broad. The GnuPG project cited Gpg4win, GnuPG Desktop, GnuPG VS-Desktop, Samba, and the bulk of mail clients and XMPP clients as examples of programs that use GPGME. XMPP is the protocol behind many chat applications; Samba is software that lets systems share files with Windows machines. Any such program running GPGME before version 2.3.0 carries the flaw.
The exposure goes beyond obvious GnuPG products. Some applications compile GPGME directly into their own code rather than drawing from a shared copy. Those programs are affected too, and a system-level shared library update will not reach them. Each such application needs its vendor to ship a rebuilt release. Which specific mail or XMPP clients have already done so is not yet known.
Users who rely on a program that bundles GPGME statically should check with that program's developers for a patched release. Until one arrives, the advisory lists no temporary fix for such programs.
What you can do
The GnuPG project calls for updating right away. For statically linked or bundled applications whose vendors have not yet shipped a rebuild, no workaround is available until a new release arrives. The right step depends on how GPGME is used on your system.
- Shared library or DLL: Update to GPGME 2.3.1 as directed in the project's security advisory.
- Windows: Install Gpg4win 5.1.2, which packages the fixed library. The Gpg4win release notes describe the issue as severe and urge updating as soon as possible.
- If upgrading is not possible: The advisory includes a patch that the project said applies cleanly to older versions.
- Legacy branch: A fixed release is available as version 1.24.4. The project noted that it cannot promise the legacy branch will receive every security fix going forward.
- Statically linked applications: Updates to the system's shared library do not reach statically linked copies; the application must be rebuilt against GPGME 2.3.1 by its own developer.
GPGMEPP and GPGMEQT do not require an update. Statically linked programs that must wait for a vendor rebuild have no interim path until a new release arrives.
What happens next
The GnuPG project has not reported any attacks exploiting the flaw. Even so, the project has not ruled out remote code execution, which would go beyond data theft and potentially give an attacker control over a targeted system. That possibility makes prompt action more important, especially for users running applications that bundle GPGME and must wait for vendors to ship rebuilt releases.
Some programs that bundle GPGME statically may take time to distribute their own updated releases. During that window, users of those apps have no workaround the advisory describes. Watching for update announcements from each app's developer is the practical step available right now.
FAQ
What version should I install?
The fixed library is GPGME 2.3.1. The GnuPG project never released version 2.3.0 to the public, making 2.3.1 the first safe release. Windows users can install Gpg4win 5.1.2, which packages the fix in a standard Windows installer.
Are mail clients and Samba affected?
Potentially, yes. The GnuPG project listed Samba, most mail clients, and many XMPP clients among examples of software that use GPGME. Any such program running GPGME before version 2.3.0 carries the flaw. Those that link GPGME statically also need their own rebuilt releases, not just a system-level library update.
Have attacks been seen?
No. The GnuPG project has not reported any exploits in the wild. Remote code execution has not been ruled out, however, so the situation warrants monitoring even without confirmed attacks.
Sources
Corrections
- Updated Nov 22, 2026: Corrected two overly broad 'no workaround' claims; the advisory does provide a patch for older GPGME versions that can be updated.
More from the network
Junious Media Network ↗SAG-AFTRA Creates Healthcare Task Force as Actors Lose Coverage
SAG-AFTRA's new task force will advocate for universal healthcare as most union members cannot meet the income or workday threshold to qualify for health benefits.
junidaily.media ↗Presumed Innocent Season 2 on Apple TV+ Gets a New Story and Cast
Apple TV+ is retooling its hit legal drama as an anthology series, bringing a fresh cast and new legal thriller to screens in February 2027.
junidaily.media ↗Yellowjackets Season 4 Is the Show's Final Chapter
Showtime's survival drama Yellowjackets concludes after four seasons, with creators Ashley Lyle and Bart Nickerson saying the story is complete and no spinoff is planned.
junidaily.media ↗S&P 500 Drops Into Correction as AI Stocks Fuel Worst Week in 18 Months
AI-stock losses pushed the S&P 500 down 3.7% Friday, dragging the index into correction territory for the first time since March 2025.
junidaily.media ↗