Security Resilience

CVE-2026-118131

GnuPG

Published
27 October 2026
Modified
04 November 2026
CVSS Score v3.1 9.8
Click a component to see what it means
Raw vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS Score 0.0046 40th percentile
Risk Priority 71 floored blend · peak EPSS

CVSS and EPSS are reproduced from their sources (NVD, FIRST EPSS). EPSS, Forum of Incident Response and Security Teams (FIRST), epss.first.org. Risk Priority is our own derived reading, not an NVD score.

Summary

CVE-2026-118131 is a critical-severity Creation of Temporary File in Directory with Insecure Permissions (CWE-379) vulnerability in GnuPG (named in the CVE record; NVD lists no product yet). Its CVSS base score is 9.8 (Critical).

Operationally, exploitation aligns with the MITRE ATT&CK technique Executable Installer File Permissions Weakness (T1574.005); ranked at the 40th percentile by exploit likelihood (below the median); it is not currently listed in the CISA KEV catalog.

The strongest mitigations our analysis identified map to AC-3 (Access Enforcement) and AC-6 (Least Privilege) — see the control section below for these in your framework.

OWASP Top 10 for Web (2025)

EU & UK References

Vulnerability Data

GnuPG (version 2.5.21) for Windows contains a vulnerability where default Discretionary Access Control List (DACL) inheritance on the C:\ProgramData directory allows members of the BUILTIN\Users group to create arbitrary subdirectories under this path. An attacker with low-privilege access can create…

more

the expected GnuPG configuration directory and inject malicious configuration files consumed by GnuPG components. This can result in code execution within the security context of the victim user.

CWE(s)

Related Threats

MITRE ATT&CK Enterprise Techniques

MITRE ATT&CK v20.0

T1068 Exploitation for Privilege Escalation Privilege Escalation
Adversaries may exploit software vulnerabilities in an attempt to elevate privileges.
T1195 Supply Chain Compromise Initial Access
Adversaries may manipulate products or product delivery mechanisms prior to receipt by a final consumer for the purpose of data or system compromise.
T1195.001 Compromise Software Dependencies and Development Tools Initial Access
Adversaries may manipulate software dependencies and development tools prior to receipt by a final consumer for the purpose of data or system compromise.
T1203 Exploitation for Client Execution Execution
Adversaries may exploit software vulnerabilities in client applications to execute code.
T1546.018 Python Startup Hooks Persistence
Adversaries may achieve persistence by leveraging Python’s startup mechanisms, including path configuration (`.
T1574 Hijack Execution Flow Stealth
Adversaries may execute their own malicious payloads by hijacking the way operating systems run programs.
Derived from this CVE’s CWE(s) via the direct CWE→ATT&CK cross-walk.

CVEs Like This One

CVE-2024-55955Shared CWE-427, CWE-732
CVE-2023-31210Shared CWE-427
CVE-2023-31016Shared CWE-427
CVE-2026-67250Shared CWE-427
CVE-2023-36493Shared CWE-427
CVE-2025-32919Shared CWE-427
CVE-2024-49592Shared CWE-427
CVE-2025-10198Shared CWE-427
CVE-2026-24016Shared CWE-427
CVE-2026-107615Shared CWE-427

Affected Assets

GnuPG
GnuPG
named in the CVE record; NVD lists no product yet

Mitigating Controls

Control response

Prevent
Stop it (NIST 800-53)

—

Detect
Catch it (NIST detect / respond)

—

Harden
Shrink the surface (DISA STIG)
  • 3 hardening rules · 1 OS baseline
Validate
Prove the fix (OWASP ASVS)
  • V15.4.2

Mitigating Controls (NIST 800-53 r5)

Our mappings, made for this CVE.

Enforces approved authorizations so that only intended actors can place or modify elements in the search path.

AC-6 reduces the set of actors that can reach an insecurely created temp file by limiting privileges on the containing directory.

Establishes restrictive configuration settings that can define and lock down approved search paths.

SC-4 stops unintended information exposure through shared resources such as world-writable temp directories or files.

Mitigating Controls (NIST CSF 2.0)

Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→CSF cross-walk — links open the control.

PR.PS-06 mostly match
blocks

Secure SDLC practices directly prevent developers from writing code that creates temp files in insecure directories.

PR.PS-01 partial match
blocks

Hardened configuration baselines can enforce safe search-path settings and reduce exposure.

PR.PS-05 partial match
blocks

Execution allow-listing can block malicious binaries placed in hijackable search locations.

Mitigating Controls (ISO/IEC 27001:2022 Annex A)

Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→ISO cross-walk — links open the control.

finds

A.8.29's combined programme (code review, static analysis, vulnerability scanning, penetration testing) reaches CWE-379 through both SOURCE and RUNTIME: static analysis flags use of tmpfile()/File.createTempFile() with default permissions, code review spots insecure temp-file patterns, and penetration testing observes the resulting file permissions in /tmp or equivalent. The remainder is bounded and nameable: cases where the directory's own permissions are the defect rather than the file-creation call, and custom temp-file logic that standard tools do not pattern-match.

prevents

Training technical teams on secure coding practices (including proper use of temporary file APIs like mkstemp() over tmpfile(), or setting explicit permissions) addresses a knowledge gap that produces this weakness, but the effect is a minority one because the practice is fallible and not every developer receives or retains this specific guidance.

prevents

Secure coding standards directly require safe temporary-file creation with restrictive permissions.

blocks

A.8.3 restricts access to information and assets based on identity and policy, but CWE-379 is a code-level defect where a temporary file is created with insecure permissions in a shared directory; the access control does not prevent the file from being created with those permissions or stop an attacker with local access from exploiting the file's visibility.

prevents

A.8.30 carries its effect through the secure-development practices (8.25-8.29) its contract requires of the supplier, and CWE-427 is an ordinary software implementation weakness that those practices address; the clause reduces instances in delivered code the way those practices do, at `partial` because the practice is fallible and the clause has a declared ceiling of `partial` on this verb.

blocks

A.8.7's application allowlisting (8.7a) and malware detection (8.7f) can block exploitation of an uncontrolled search path by preventing the attacker's planted DLL/executable from running or detecting it before load, but the code-level weakness itself is untouched and allowlisting does not cover configuration-file or data-file search path elements, leaving a nameable remainder.

Hardening callouts derived

Configuration rules from DISA STIG baselines that bear on weaknesses of the type cited by this CVE. Each rule is shown with the relationship its mapping actually records, against the CWE it was authored against. Derived via CVE→CWE over our cross-walk; rows rated `none` are excluded, and each rule says how its mapping was checked.

Definition changed on 29 October 2026. Until then this section listed every rule rated above none, partial included. From that date it lists rules whose mapping is rated full or mostly and checked at llm_unverified or higher; partial mappings show when you ask.

No rule maps to these weaknesses at full or mostly. Tick the option above to see the partial mappings.

Oracle Linux 8 (1 partial rule)
  • V-248577 OL 8 must enable kernel parameters to enforce Discretionary Access Control (DAC) on symlinks. blocks CWE-379, CWE-427

References