cve.bz

CVE-2026-118131 gnupg gnupg: Uncontrolled Search Path Element

9.8 criticalEPSS 0.4%

Critical (9.8) in gnupg gnupg. EPSS 0.4% estimated probability of exploitation activity in the next 30 days.

On this page
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 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.

Severity

CVSS 3.1

9.8 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
0.4% (unchanged from 0.4% a week ago) estimated probability of exploitation activity in the next 30 days; 38th percentile. Scored 2026-11-17. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: total, assessed 2026-11-04. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-379 Creation of Temporary File in Directory with Insecure Permissions
CWE-427 Uncontrolled Search Path Element
CWE-732 Incorrect Permission Assignment for Critical Resource
OWASP Top 10
A01:2025 Broken Access Control, A08:2025 Software or Data Integrity Failures
Published
Modified
NVD analysis
Awaiting analysis
Record from
the NVD, synced

Ask an AI about this CVE

Show the promptExplain CVE-2026-118131 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-118131?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-118131?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-118131 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
GnuPG2.5.21

Linux distributions

DistributionReleasePackageFixed inAdvisory
Azure Linux3gnupg2no fix listedAZL-111956

From the distributions' data via OSV.dev: Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This flaw is rated as having an Important impact because an unprivileged local user could potentially manipulate shared configuration paths to execute arbitrary code within another user's session, bypassing normal security boundaries. However, the vulnerable behavior is specific to Windows environments where default discretionary access control lists allow directory creation under shared system paths. Red Hat Enterprise Linux and container products deploy GnuPG in standard POSIX environments where secure, per-user home directories and strictly controlled system paths prevent this attack vector.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10gnupg2Affected
Red Hat Enterprise Linux 6gnupg2Affected
Red Hat Enterprise Linux 7gnupg2Affected
Red Hat Enterprise Linux 8gnupg2Affected
Red Hat Enterprise Linux 9gnupg2Affected
Red Hat Hardened Imagesgnupg2Not affected
Red Hat OpenShift Container Platform 4openshift/ose-rhel-coreos-8Affected
Red Hat OpenShift Container Platform 4openshift/ose-rhel-coreos-9Affected
Red Hat OpenShift Container Platform 5openshift/ose-rhel-coreos-9Affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-118131.

Attack patterns (CAPEC)

  • CAPEC-38 Leveraging/Manipulating Configuration File Search Paths Likelihood: High · Severity: Very High
  • CAPEC-471 Search Order Hijacking Severity: Medium

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-732 (11).

References

Check your stackJSON