CVE-2026-42425
OpenKM 6.3.12 Unrestricted SQL Execution via DatabaseQuery
Record summary
CVE-2026-42425 has a selected CVSS score of 8.6 (high); EIP currently links 1 catalogued exploit.
Description
OpenKM 6.3.12 contains an unrestricted SQL execution vulnerability that allows authenticated administrative users to execute arbitrary SQL statements against the application database via the DatabaseQuery interface. Attackers can submit malicious SQL queries through the qs parameter to the /admin/DatabaseQuery endpoint to extract sensitive data including usernames and password hashes from the OKM_USER table, modify permissions, or delete database records.
Exploitation context
Available material
- Catalogued exploits
- 1
CISA SSVC decision
CISA Coordinator · SSVC 2.0.3 · Evaluated May 26, 2026 · Source: CVE List
Affected products and versions
2| Product | Source | Version range | Status |
|---|---|---|---|
OpenKM Community EditionBrowse Openkm / OpenKM Community EditionDefault status: unknown | CVE List | Through 6.3.12 | affected |
OpenKM Professional EditionBrowse Openkm / OpenKM Professional EditionDefault status: unknown | CVE List | Through 7.1.47 | affected |
Proofs of concept
1Catalogued exploits
ExploitDBOpenKM 6.3.12 - MultipleExploitDB exploitby skumarExploit1 file
Analysis
Technical assessment
Python script that exploits multiple vulnerabilities in OpenKM 6.3.12, including authenticated Local File Inclusion (LFI), Remote Code Execution (RCE) via scripting engine, and SQL injection to extract user password hashes, with an optional hash cracking routine.
Backdoor review
No backdoor observed in reviewed code
The reviewed Python script is a proof-of-concept exploit for OpenKM vulnerabilities (LFI, RCE, SQLi). It performs only the advertised exploitation actions against a user-supplied target. No concealed backdoor, unrelated payload, or deceptive operator-directed harm was observed in the supplied text.
Classification basis and observed behavior
Classification basis
The script contains functions that actively exploit vulnerabilities: lfi() reads arbitrary files, rce() executes arbitrary commands, and sqli() extracts database contents. These go beyond detection and perform the exploitation actions.
exploits/multiple/webapps/52520.py:124-154exploits/multiple/webapps/52520.py:157-194exploits/multiple/webapps/52520.py:277-333Requirements
- Valid credentials for OpenKM (default okmAdmin:admin used if not provided)
exploits/multiple/webapps/52520.py:385-386 - Target OpenKM instance accessible at a base URL
exploits/multiple/webapps/52520.py:361
Observed behavior
- Authenticates to OpenKM using provided or default credentials
exploits/multiple/webapps/52520.py:105-120 - Performs Local File Inclusion by loading arbitrary files via the admin Scripting interface
exploits/multiple/webapps/52520.py:124-154 - Executes arbitrary operating system commands via Java code evaluated in the admin Scripting interface
exploits/multiple/webapps/52520.py:157-194 - Extracts user password hashes via SQL injection on the admin DatabaseQuery page and optionally cracks them with hashcat
exploits/multiple/webapps/52520.py:277-333
Behaviors behind the backdoor verdict
Observables
- Exploit Behavior
- Payload withheldThe script's functions lfi(), rce(), sqli(), and crack_password() implement the advertised vulnerabilities. All actions are directed at the target provided via --url and require explicit user interaction.
exploits/multiple/webapps/52520.py:124-154exploits/multiple/webapps/52520.py:157-194exploits/multiple/webapps/52520.py:277-333exploits/multiple/webapps/52520.py:197-272 - Library Installation
- Payload withheldThe check_and_install_libraries() function installs missing dependencies. This is a convenience feature for the user and does not introduce hidden behavior.
exploits/multiple/webapps/52520.py:24-36 - External Command Execution
- Payload withheldThe crack_password() function runs hashcat on user-supplied wordlists against hashes extracted from the target. This is part of the advertised SQLi + cracking workflow and is not a backdoor.
exploits/multiple/webapps/52520.py:268-269
What the analysis did not establish
- Evidence is limited to the single Python file; external dependencies (e.g., hashcat, wordlists) and referenced resources are not included.
- The script's actual effectiveness or safety is not verified; classification is based solely on code intent.
- Only the single Python file was reviewed; no external resources, libraries, or referenced URLs were fetched or analyzed.
- Binary files were not inspected (none present in this packet).
- The review does not assess the safety or correctness of the exploit code itself, only the absence of backdoor behavior.
This review is limited to the supplied PoC code and context. It does not assert that the code works or is safe to execute.