KeePassXC OpenSSL Configuration Uncontrolled Search Path Element Local Privilege Escalation Vulnerability
KeePassXC loads OpenSSL configuration from an unsecured location, allowing a local attacker with low-privileged code execution to escalate privileges and run arbitrary code as the KeePassXC user. The vendor has issued an update to fix the flaw.
Originally disclosed on Zero Day Initiative
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 full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely, KeePassXC does not secure the search path for OpenSSL configuration files, allowing a local attacker to place a malicious configuration file that is loaded when KeePassXC runs.
Impact
A local attacker who can execute low-privileged code could escalate privileges and execute arbitrary code in the context of KeePassXC when it is run by a target user.
What the attacker needed
Ability to execute low-privileged code locally; target user runs KeePassXC
The fix
KeePassXC has issued an update to correct this vulnerability.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
This is a local privilege escalation bug in KeePassXC, a password manager. The program reads a configuration file for OpenSSL (a cryptography library) from a place an attacker can write to. If an attacker can already run some code on the machine, they can plant a malicious configuration file there, and when KeePassXC starts, it will load that file and run the attacker's code with KeePassXC's permissions.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.