CVE-2026-118131
GnuPG
Raw vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HCVSS 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
- 🇪🇺 ENISA EUVD: EUVD-2026-111235
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
CVEs Like This One
Affected Assets
Mitigating Controls
Control response
—
—
- 3 hardening rules · 1 OS baseline
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.
Secure SDLC practices directly prevent developers from writing code that creates temp files in insecure directories.
Hardened configuration baselines can enforce safe search-path settings and reduce exposure.
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.
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.
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.
Secure coding standards directly require safe temporary-file creation with restrictive permissions.
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.
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.
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