Technical impact
A flaw in GnuPG version 2.5.21 for Windows allows a local user who is a member of BUILTIN\Users to create arbitrary subdirectories under C:\ProgramData due to default DACL inheritance. An attacker can construct the expected GnuPG configuration directory and place malicious configuration files that the application automatically consumes, bypassing security checks. This injects and executes arbitrary code within the victim user's security context. The weakness is an improper access control that permits unauthorized configuration injection.
Affected Systems
The vulnerability affects the GnuPG software version 2.5.21 running on Windows operating systems where the default permissions on C:\ProgramData allow directory creation by member users. The sole relevant vendor is GnuPG; no other products are listed.
Risk and Exploitability
The CVSS score of 9.8 indicates critical severity; the issue enables code execution within the victim user’s security context, a high‑impact outcome. The EPSS score is less than 1%, indicating a very low but nonzero exploitation probability at the time of this analysis. The vulnerability is not listed in the CISA KEV catalog. An attacker requires only local user privileges and write access to C:\ProgramData. By creating the expected GnuPG configuration directory and injecting malicious configuration files that GnuPG automatically consumes, the attacker can execute arbitrary code in the victim’s context. The combination of local access, automatic loading of configuration files, and the vulnerability’s high severity makes this risk significant for any endpoint running the affected GnuPG installation.