Heads up! A sketchy OpenPGP key with a crazy-long user ID can trigger a massive memory bug in GPGME—you know, the go-to library programs use to talk to GnuPG.
The GnuPG folks sounded the alarm yesterday, warning that hackers could use this flaw to swipe data straight out of vulnerable apps, and they've already dropped patched versions.
Tracked as CVE-2026-129975, this nasty bug hits every single piece of software running GPGME prior to version 2.3.0. Doesn't matter if it's loaded as a shared library, a Windows DLL, or statically baked right into the app.
They called out a bunch of big names, including most email clients, tons of XMPP clients, Samba, and their own Gpg4win, GnuPG Desktop, and GnuPG VS-Desktop suites.
Thankfully, they haven't spotted anyone exploiting this in the wild yet, though they admit remote code execution isn't off the table—which is pretty scary.
As for how an attacker could pull this off, they mentioned firing off signed data at an app. The advisory doesn't spell out which programs feed that kind of stuff into the library without you manually importing a key, though.
Under the hood, it's a classic double free—meaning the exact same chunk of memory gets wiped out twice. It's hiding in two routines, read_status() and read_colon_line(), which handle reading status lines and key listings coming back from GnuPG.
Here's the kicker: when the input gets too long, those routines shift the data over to a bigger buffer, but they only save the new address if everything wraps up cleanly. If an error pops up midway, it leaves a dangling pointer aimed at memory that's already been freed, and then the cleanup routine goes ahead and frees it a second time, as laid out in the project's bug tracker.
Shoutout to Johan Carlsson for catching this one—GitLab flagged it to the team just last week. They'd originally planned to go public on November 25, but the whole Ruby2Shell mess forced the company to push their updates early, so they had to spill the beans sooner.
What You Need to Update
The clean version you're looking for is GPGME 2.3.1, which just came out this week. Funny enough, 2.3.0 never even saw the light of day publicly.
What you gotta install really comes down to where the library lives on your setup:
Shared library or DLL: Bump it up to GPGME 2.3.1, which you can grab from the project's official downloads and read all about in their security advisory.
Windows: Gpg4win 5.1.2 has the fix baked in. Their release notes flat-out call this severe and say you need to update ASAP.
Older setups stuck below 2.3.1: There's a patch tucked into the advisory, and the legacy branch got its own fix with 1.24.4—though the release notes admit they can't promise that old branch will get every security patch down the road.
Bundled or statically linked copies: Yep, these are in the crosshairs too. Updating your system's shared library won't touch 'em, so the apps packing them inside will need brand-new builds pushed out by their devs.
GPGMEPP and GPGMEQT: You're totally good here—no update needed.
Unfortunately, the advisory doesn't give any quick-and-dirty workaround if your software can't be updated right away, so patching is really your only play.