CVE-2026-4158 KeePassXC OpenSSL Configuration Uncontrolled Search Path Element Local Privilege Escalation Vulnerability
Local attackers can escalate privileges and execute arbitrary code by exploiting an uncontrolled search path in KeePassXC's OpenSSL configuration.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- A user has to click or open something
- Fix
- None listed
What is CVE-2026-4158?
CVE-2026-4158 is a high-severity path traversal vulnerability in KeePassXC, published on 11 Apr 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.
Official description
KeePassXC OpenSSL Configuration Uncontrolled Search Path Element Local Privilege Escalation Vulnerability. This vulnerability allows local attackers to escalate privileges on affected installations of KeePassXC. An attacker must first obtain the ability to execute low-privileged code on the target system in order to exploit this vulnerability.
The specific flaw exists within the configuration of OpenSSL. The product loads configuration from an unsecured location. An attacker can leverage this vulnerability to escalate privileges and execute arbitrary code in the context of KeePassXC when run by a target user on the system. Was ZDI-CAN-29156.
Weakness: CWE-427
Which versions are affected by CVE-2026-4158?
How do I fix CVE-2026-4158?
No fix has been published for CVE-2026-4158 yet. Limit exposure of the affected software until one is available.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2026-4158 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-4158 exists.
Sources
Also known as GHSA-4gr2-cr97-q9fx, GHSA-h7gx-vxj4-mr6x, UBUNTU-CVE-2026-4158.