Critical GPGME Library Flaw (CVE-2026-129975) Disclosed

Critical GnuPG Library Flaw Could Lead to Data Exfiltration

CRITICAL
November 22, 2026
5m read
VulnerabilityPatch ManagementThreat Intelligence

Related Entities

Organizations

Other

Werner KochJohan Carlsson

CVE Identifiers

CVE-2026-129975
CRITICAL

Full Report

Executive Summary

On November 20, 2026, the GnuPG Project released a security advisory for a critical vulnerability in its GnuPG Made Easy (GPGME) library, a core component used by countless applications to integrate encryption functionalities. The vulnerability, tracked as CVE-2026-129975, is a double-free memory corruption flaw that can be triggered by processing a specially crafted OpenPGP key. Successful exploitation could allow an attacker to exfiltrate data from the memory of the affected application, with the potential for remote code execution (RCE) not being ruled out. Due to the library's widespread use in popular software like email clients, Samba, and Flatpak, the vulnerability poses a significant risk across the software ecosystem. Patched versions are available, and users are strongly advised to update as soon as possible.


Vulnerability Details

The vulnerability CVE-2026-129975 is a double-free memory corruption issue affecting all versions of the GPGME library prior to version 2.3.0. A double-free bug occurs when a program calls free() twice on the same memory address, which can corrupt memory and lead to unpredictable behavior, including crashes or arbitrary code execution.

According to the advisory from GnuPG lead developer Werner Koch, the flaw can be triggered when an application uses GPGME to process a malicious OpenPGP key. The key must contain a specially crafted, unusually long user ID. The vulnerability lies within two internal functions, read_status() and read_colon_line(), which handle parsing status lines and key data from the GnuPG backend. An error during a buffer reallocation process can cause the functions to retain a stale pointer, which is later freed a second time, triggering the memory corruption.

Affected Systems

The vulnerability is not in GnuPG itself, but in the GPGME library that acts as a wrapper. Therefore, any application that uses this library for OpenPGP operations is potentially vulnerable. The GnuPG project noted this includes:

  • Most email clients with OpenPGP support (e.g., those using GpgOL or other plugins)
  • Many XMPP clients
  • Samba
  • Flatpak
  • GnuPG's own desktop packages: Gpg4win, GnuPG Desktop, and GnuPG VS-Desktop

Exploitation Status

The GnuPG project stated that it is not aware of any active exploitation of this vulnerability in the wild. The flaw was discovered by researcher Johan Carlsson and responsibly disclosed to the project by GitLab on November 12, 2026. The public disclosure was accelerated from its original planned date due to other security updates. However, the public nature of the flaw and its severity mean that threat actors will likely begin developing exploits.

Impact Assessment

Given the ubiquity of the GPGME library, the impact of this vulnerability is widespread. An attacker could craft a malicious OpenPGP key and distribute it via email or a public key server. If a user or automated system imports or processes this key with a vulnerable application, the attacker could potentially read sensitive data from the application's memory. This could include private keys, passwords, or the content of encrypted messages. While the GnuPG project notes that RCE is a possibility, data exfiltration is the more immediate and likely outcome.


Cyber Observables — Hunting Hints

Security teams can hunt for potential exploitation attempts by looking for the following:

Type
file_name
Value
*.asc, *.pgp, *.gpg
Description
Monitor for the introduction of new, untrusted OpenPGP key files into the environment, especially via email attachments.
Type
string_pattern
Value
Unusually long User ID fields in OpenPGP keys
Description
While difficult to inspect at scale, analysis of key files being processed by GPGME-dependent applications may reveal keys with abnormally long user IDs.
Type
log_source
Value
Application crash logs
Description
Unexplained crashes in applications known to use GPGME (e.g., email clients, file transfer tools) could be an indicator of failed exploitation attempts.

Detection Methods

The primary method of detection is identifying vulnerable software versions.

  1. Version Scanning: Use package managers (dpkg, rpm, etc.) and software inventory tools to identify all systems with GPGME library versions earlier than 2.3.0 or 1.24.4 (for the legacy branch).
  2. Application Auditing: Identify all applications in your environment that depend on the GPGME library. Pay special attention to mail servers, file servers (Samba), and containerized applications (Flatpak).
  3. Memory Analysis: In a forensic investigation, if a crash is suspected to be related to this flaw, memory dump analysis might reveal the double-free corruption.

Remediation Steps

Immediate patching is the most effective way to mitigate this critical vulnerability.

  1. Update GPGME: Update to the patched versions as soon as possible.
    • For the stable branch, upgrade to GPGME 2.3.1 or later.
    • For the legacy 1.x branch, upgrade to GPGME 1.24.4 or later.
  2. Update Dependent Applications: Ensure that applications using GPGME are also updated, as they may be bundled with a vulnerable version of the library. This includes updating Gpg4win and other GnuPG desktop packages.
  3. Restrict Key Import: As a temporary measure until patching is complete, organizations could implement policies or technical controls to restrict the automatic import of new, untrusted OpenPGP keys from public key servers or email attachments. This is a form of Application Configuration Hardening (D3-ACH).

Timeline of Events

1
November 12, 2026
The vulnerability is responsibly disclosed to the GnuPG project by GitLab.
2
November 20, 2026
The GnuPG project publicly discloses CVE-2026-129975 and releases patched versions.
3
November 22, 2026
This article was published

MITRE ATT&CK Mitigations

The primary and most effective mitigation is to update the GPGME library to a patched version (2.3.1+ or 1.24.4+).

Mapped D3FEND Techniques:

Modern operating systems and compilers offer exploit protections like ASLR and stack canaries that can make memory corruption vulnerabilities harder to exploit reliably for code execution.

Mapped D3FEND Techniques:

Running applications that process untrusted data (like email clients) in a sandbox can limit an attacker's ability to access sensitive data from other processes or the underlying system.

Mapped D3FEND Techniques:

Timeline of Events

1
November 12, 2026

The vulnerability is responsibly disclosed to the GnuPG project by GitLab.

2
November 20, 2026

The GnuPG project publicly discloses CVE-2026-129975 and releases patched versions.

Article Author

Jason Gomes

Jason Gomes

• Cybersecurity Practitioner

Cybersecurity professional with over 10 years of specialized experience in security operations, threat intelligence, incident response, and security automation. Expertise spans SOAR/XSOAR orchestration, threat intelligence platforms, SIEM/UEBA analytics, and building cyber fusion centers. Background includes technical enablement, solution architecture for enterprise and government clients, and implementing security automation workflows across IR, TIP, and SOC use cases.

Threat Intelligence & AnalysisSecurity Orchestration (SOAR/XSOAR)Incident Response & Digital ForensicsSecurity Operations Center (SOC)SIEM & Security AnalyticsCyber Fusion & Threat SharingSecurity Automation & IntegrationManaged Detection & Response (MDR)

Editorial Standards & Analyst Review

CyberNetSec.io uses automation to assist source monitoring, deduplication, observable extraction, and structured intelligence generation. Published analysis follows human-defined editorial standards and adds defensive context including MITRE ATT&CK, D3FEND, STIX, and Sigma where applicable. Read our editorial policy.

Tags

GnuPGGPGMEVulnerabilityMemory CorruptionDouble-FreeOpenPGPCVE-2026-129975

📢 Share This Article

Help others stay informed about cybersecurity threats

🎯 MITRE ATT&CK Mapped

Every tactic, technique, and sub-technique used in this threat has been identified and mapped to the MITRE ATT&CK framework for consistent, actionable threat language.

🧠 Enriched & Analyzed

Observables and indicators of compromise (IOCs) have been extracted and cataloged. Risk has been assessed and correlated with known threat actors and historical campaigns.

🛡️ Actionable Guidance

Detection rules, incident response steps, and D3FEND-aligned mitigation strategies are included so your team can act on this intelligence immediately.

🔗 STIX Visualizer

Structured threat data is packaged as a STIX 2.1 bundle and can be visualized as an interactive graph — relationships between actors, malware, techniques, and indicators.

⚡ Sigma Generator

Sigma detection rules are derived from the threat techniques in this article and can be converted for deployment across any major SIEM or EDR platform.