CVE-2026-118131 – GnuPG
“When any user can write to the folder a security tool trusts, the encryption meant to protect them becomes the attacker's way in.”
GnuPG for Windows has an update that fixes a critical flaw in how the software trusts its configuration directory. CVE-2026-118131 has a CVSS score of 9.8, Critical severity. GnuPG 2.5.21 on Windows inherits default permissions on the C:ProgramData directory, so any member of the local Users group can create subdirectories there. An attacker with low-privilege access can create GnuPG's expected configuration directory first and fill it with malicious configuration files.
When a victim runs GnuPG, its components load those planted files, and the attacker's code runs with the victim's privileges. A standard user can use this to take over the session of any other user on the same system, including administrators. Shared workstations, terminal servers, and multi-user systems that use GnuPG for signing or encryption face the highest risk.
Key Details
- Attack Vector
- Network
- Attack Complexity
- Low
- Privileges Required
- None
- User Interaction
- None
- CWE Classification
- CWE-379