The GnuPG project has issued an urgent security advisory warning that a specially crafted, malicious OpenPGP key featuring an unusually long user ID can be leveraged to trigger a critical memory corruption flaw within GPGME. GPGME, which stands for GnuPG Made Easy, serves as the standard software library utilized by a wide array of applications to interact with GnuPG and handle cryptographic operations. According to developers, this newly disclosed vulnerability poses a significant risk to downstream software, potentially allowing unauthorized actors to compromise sensitive data and perform other malicious activities on affected systems.

Tracked formally under the identifier CVE-2026-129975, the vulnerability impacts every software application utilizing versions of GPGME prior to 2.3.0. This broad exposure applies regardless of how the library is integrated into the host software, whether it is loaded dynamically as a shared library or a Windows DLL, or if it is statically linked directly into the binary executable.

The range of potentially impacted software is vast, given GPGME’s widespread adoption across the open-source and enterprise ecosystems. The GnuPG project noted that vulnerable deployments include the vast majority of email clients handling encrypted communications, numerous XMPP instant messaging clients, the Samba file and print server suite, as well as the project’s own proprietary distribution packages such as Gpg4win, GnuPG Desktop, and GnuPG VS-Desktop. Because these utilities rely heavily on GPGME to parse and process incoming cryptographic materials, any failure in the library’s memory management routines can destabilize the host application entirely.

As of the advisory’s release, the GnuPG project confirmed that it has not received any credible reports or telemetry indicating that CVE-2026-129975 is being actively exploited in the wild by malicious actors. However, security researchers emphasize that the absence of reported exploitation does not diminish the severity of the issue. Most critically, the project has explicitly warned that the theoretical possibility of remote code execution cannot be entirely ruled out, meaning a sophisticated attacker might potentially leverage the memory bug to execute arbitrary code within the context of the affected application.

To understand the mechanics of the vulnerability, security analysts look at how applications ingest untrusted data. The project’s advisory outlines a potential attack path involving signed data transmitted to an application. When an external entity sends such material, the underlying software may process it through the library. While the advisory does not explicitly list every specific program that automatically passes such material to the library without requiring a manual key import from the user, the inherent risk lies in automated parsing pipelines that ingest external OpenPGP keys or messages without sufficient upfront validation.

At its technical core, CVE-2026-129975 is categorized as a classic double free vulnerability. A double free condition occurs when a program attempts to release a specific memory allocation back to the system memory manager more than once. This particular flaw resides within two distinct routines inside the library, specifically read_status() and read_colon_line(). These two functions are responsible for reading and interpreting the status lines and key listings returned by the underlying GnuPG engine during cryptographic operations.

GnuPG Warns Critical GPGME Flaw Could Expose App Data via Malicious OpenPGP Keys

When these routines encounter unusually long inputs—such as the maliciously crafted user IDs embedded within the attack key—they attempt to dynamically resize and move the incoming data into a larger buffer to accommodate the extra length. However, the logic contains a critical flaw regarding error handling. The routines only record the new memory address if the reallocation process completes entirely without encountering errors. If an error occurs midway through the operation, the program leaves behind a dangling pointer that still references the original memory address, which has already been freed during the reallocation attempt. When the routine subsequently reaches its cleanup phase, it attempts to release the memory again, triggering the double free condition. Detailed technical breakdowns of this behavior are documented within the project’s official bug tracking system under entry T8557.

The discovery of this critical memory bug is credited to security researcher Johan Carlsson. The issue was subsequently reported to the GnuPG development team by GitLab just last week. Initially, coordinated vulnerability disclosure was scheduled for November 25, allowing developers adequate time to finalize their testing and coordination. However, the timeline had to be moved up unexpectedly because an unrelated security issue—the Ruby2Shell bug—forced the company and associated maintainers to accelerate their software update schedules across various platforms.

What to Update

In response to the vulnerability, the GnuPG project has released GPGME version 2.3.1, which completely addresses and resolves the memory management flaw. Administrators and developers should note that version 2.3.0 was never publicly released or distributed, making 2.3.1 the definitive version to deploy.

Because GPGME can be distributed and consumed in numerous ways depending on the target operating system and the architecture of the software utilizing it, the precise installation method depends heavily on where the library resides within an environment. Whether deployed via operating system package managers, updated as part of a Windows DLL distribution, or compiled statically into custom software builds, upgrading to the patched library version is essential for maintaining system integrity.

The GnuPG advisory notes that there are currently no interim workarounds or temporary mitigations available for software systems and environments that are unable to update their GPGME installations immediately. Consequently, organizations relying on software that bundles or links against older, vulnerable versions of GPGME are urged to prioritize applying the official updates provided by their software vendors as soon as possible.