
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-118131 is a configuration directory hijacking vulnerability in GnuPG 2.5.21 for Windows that allows low-privilege attackers to inject malicious configuration files and achieve code execution in the victim user's security context. The vulnerability stems from insecure default DACL inheritance on the C:\ProgramData directory, which permits members of the BUILTIN\Users group to create arbitrary subdirectories. It was published on October 27, 2026, with patches referenced via GitHub Advisory and Microsoft security updates. The CVSS v3.1 base score is 9.8 (Critical) (GitHub Advisory, Microsoft MSRC).
The root cause is a combination of insecure permission assignment (CWE-732), uncontrolled search path element (CWE-427), and creation of files/directories in insecure locations (CWE-379). Windows' default DACL inheritance on C:\ProgramData allows any member of BUILTIN\Users to create subdirectories, including the path GnuPG expects for its configuration. An attacker pre-creates this directory and populates it with malicious configuration files before GnuPG initializes, causing GnuPG components to consume attacker-controlled settings at runtime. This technique aligns with CAPEC-38 (Leveraging/Manipulating Configuration File Search Paths) and CAPEC-471 (Search Order Hijacking), and is related to MITRE ATT&CK T1574 (Hijack Execution Flow) (GitHub Advisory, Atos CyberShield).
Successful exploitation allows a low-privilege local attacker to execute arbitrary code within the security context of the victim user, achieving full confidentiality, integrity, and availability impact on that user's data and processes. While the attack does not directly escalate to SYSTEM-level privileges, it can be chained with other techniques for lateral movement or further privilege escalation. Any GnuPG-dependent application or workflow running under the victim's account — including email encryption clients and automated signing pipelines — is at risk of compromise (GitHub Advisory).
As of the time of publication, there is no public proof-of-concept exploit and no evidence of in-the-wild exploitation (GitHub Advisory). The EPSS score is approximately 0.19% (0.43% per GitHub Advisory), placing it in the 38th percentile for exploitation likelihood within 30 days. The NVD SSVC assessment notes the attack is automatable with total technical impact, but exploitation is currently rated as "none" observed. The CVE is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog at this time.
C:\ProgramData\GnuPG (or equivalent) configuration directory does not yet exist.BUILTIN\Users and confirm write access to C:\ProgramData using icacls C:\ProgramData.C:\ProgramData (e.g., mkdir C:\ProgramData\GnuPG).gpg.conf or dirmngr.conf) in the created directory containing directives that load attacker-controlled code or redirect GnuPG operations (e.g., specifying a malicious agent-program or keyserver-options).C:\ProgramData\GnuPG or related subdirectories by a non-administrative user account; presence of gpg.conf, dirmngr.conf, or other GnuPG configuration files in C:\ProgramData\GnuPG not placed by the installer.C:\ProgramData\GnuPG; audit logs showing file creation timestamps predating GnuPG installation or first legitimate use.gpg.exe, gpg-agent.exe, or dirmngr.exe (e.g., cmd.exe, powershell.exe, curl.exe); GnuPG processes making unexpected outbound network connections.Apply the available security patches referenced in the GitHub Advisory (GHSA-c8cg-36rg-65fq) and the Microsoft Security Response Center advisory for CVE-2026-118131 (GitHub Advisory, Microsoft MSRC). As a workaround, administrators should restrict DACL permissions on C:\ProgramData to prevent members of BUILTIN\Users from creating arbitrary subdirectories — this can be done using icacls or Group Policy. Additionally, pre-create the legitimate GnuPG configuration directory with restricted permissions (writable only by administrators) to prevent attacker pre-staging. Enforce least-privilege access controls for all local user accounts on affected Windows systems.
The vulnerability was documented in a technical blog post by Atos CyberShield titled "A Tale of Several Hijacks and What It Taught Me About Runtime-Driven Testing," which appears to be the original research disclosure (Atos CyberShield). Beyond this research context and standard aggregator coverage, no significant broader community or social media reactions have been identified at this time.
Fix availability across major Linux distributions and their releases.
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."