Skip to main content

OpenKM CVE-2026-42425

| EUVDEUVD-2026-31834 HIGH
SQL Injection (CWE-89)
2026-05-26 VulnCheck GHSA-2445-qj53-662g
8.6
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain OpenKM admin credentials
  2. Delivery
    Authenticate to /admin/ web console
  3. Exploit
    Submit malicious SQL via qs to /admin/DatabaseQuery
  4. Execution
    Dump OKM_USER hashes and tamper with permissions
  5. Impact
    Crack hashes offline and exfiltrate documents

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Parameterized queries, prepared statements
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Persistence

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Requires valid OpenKM administrator credentials (CVSS PR:H) and network reach to the /admin/DatabaseQuery endpoint on a running Community Edition ≤6.3.12 or Professional Edition ≤7.1.47 instance; no user interaction or non-default configuration is needed because DatabaseQuery is a stock admin feature. Exploitation is limited by the admin-only precondition (SSVC Automatable:no), so internet-facing deployments protected by strong, unique admin credentials and MFA, or deployments where /admin/* is restricted to an internal management network, materially reduce risk; the bug does not give code execution on the host, only arbitrary SQL against the OpenKM database with whatever privileges the configured DB user holds.

Impact

Signals diverge: CVSS 4.0 rates this 8.6 (High) with AV:N/AC:L/PR:H/UI:N and total CIA impact on the vulnerable system, and SSVC marks Technical Impact as 'total', but PR:H combined with Automatable:no and an EPSS of 0.03% (10th percentile) place actual exploitation likelihood in the low band. Publicly available exploit code (Exploit-DB 52520, Terra System Labs Nuclei template) raises the practical floor - once an attacker has or obtains admin credentials (default install, password reuse, phishing, prior compromise), exploitation is trivial and yields password hashes that can be cracked offline to broaden access. The vulnerability is not on the CISA KEV list and there is no public evidence of active exploitation, so this is a credible post-auth pivot/escalation tool rather than a mass-exploitation emergency; prioritize accordingly for OpenKM operators, especially any instance reachable from the internet or used to store sensitive documents.

Exploit ScenarioDerived

An attacker who has phished or credential-stuffed an OpenKM administrator account logs into the web UI, navigates to /admin/DatabaseQuery, and submits a SELECT against OKM_USER via the qs parameter to dump usernames and password hashes; the Exploit-DB entry 52520 and the Terra System Labs Nuclei template automate this end-to-end. Cracked hashes are then reused to access other corporate systems, or follow-up UPDATE/DELETE statements are issued to grant the attacker elevated roles inside OpenKM and silently exfiltrate sensitive documents.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jun 08, 2026

Authenticated SQL injection in OpenKM Community Edition (≤6.3.12) and Professional Edition (≤7.1.47) lets administrative users execute arbitrary SQL against the application database through the /admin/DatabaseQuery endpoint's qs parameter. Publicly available exploit code exists (Exploit-DB 52520 and a Nuclei template from Terra System Labs), enabling dumping of password hashes from OKM_USER, permission tampering, and data destruction. EPSS is very low (0.03%) and the bug requires high privileges (PR:H), so real-world risk is bounded but meaningful for any internet-facing OpenKM instance with weak admin credentials.

RemediationAI

No vendor-released patch identified at time of analysis - the references include the vendor site and the Terra System Labs / VulnCheck advisories but no fixed version is published for Community 6.3.12 or Professional 7.1.47, so operators should monitor https://www.openkm.com/ and the VulnCheck advisory (https://www.vulncheck.com/advisories/openkm-unrestricted-sql-execution-via-databasequery) for an upstream fix. As compensating controls, restrict access to /admin/DatabaseQuery at the reverse proxy or WAF (deny all external traffic; allow only specific admin source IPs), since this endpoint has no legitimate end-user use case and blocking it removes the attack surface at the cost of losing the ad-hoc DBA query UI for administrators (who can use a direct DB client instead). Rotate all administrator credentials and enforce strong/unique passwords plus MFA on the admin role to make the PR:H precondition harder to satisfy, and run the OpenKM database user with least privilege (no DROP/ALTER on non-OKM schemas, no FILE/xp_cmdshell-equivalent privileges) to limit blast radius if exploitation succeeds. Finally, treat existing OKM_USER password hashes as compromised on any instance suspected of exposure and force a password reset.

Affected VersionsENISA

OpenKM Community Edition 0 ≤6.3.12
OpenKM Professional Edition 0 ≤7.1.47

Affected Packages

euvd openkm_community_edition no fix
euvd openkm_professional_edition no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

OpenKM is a Java-based open-source document management system distributed in Community and Professional editions, commonly deployed via Tomcat or the official Docker image (hub.docker.com/r/openkm/openkm-ce). The flaw is a CWE-89 (Improper Neutralization of Special Elements used in an SQL Command) issue in the administrative DatabaseQuery feature, which is a built-in interface intended for DBA-style ad-hoc queries. Rather than filtering or sandboxing the queries, the qs parameter is passed largely unrestricted to the backing JDBC layer, so any SQL the underlying database (MySQL, PostgreSQL, Oracle, etc.) accepts will execute with the privileges of OpenKM's database user - typically full read/write on the OKM_* schema including OKM_USER, which stores credential hashes. Affected CPEs are cpe:2.3:a:openkm:openkm_community_edition:* and cpe:2.3:a:openkm:openkm_professional_edition:*.

Know when Openkm gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulnCheck) PRIMARY 8.6 HIGH
CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck) · only source for this CVE.

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
High
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

1
CVSS changed
May 26, 2026 - 15:22 NVD
7.2 (HIGH) 8.6 (HIGH)

DescriptionCVE.org

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.

Executive ViewAI

Why It Matters

OpenKM Community Edition (≤6.3.12) and Professional Edition (≤7.1.47) contain an authenticated SQL injection in the administrative database query interface, enabling administrative users to extract password hashes, modify system permissions, and destroy database contents. Publicly available exploit code exists, and organizations with internet-exposed OpenKM instances face significant risk if administrative credentials are compromised or misused.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: (1) Restrict /admin/DatabaseQuery endpoint to trusted networks via firewall or WAF; (2) enforce strong, unique passwords with multi-factor authentication for administrative accounts; (3) implement detailed logging and real-time alerting for administrative activities and database queries; (4) maintain and regularly test database backups for rapid recovery from data destruction; (5) conduct periodic reviews of administrative account activity for anomalies.

Threat Intelligence Overview

EPSS Score
0.0%
Top 90% exploitable
Exploit
POC
Public exploit code exists
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment Exploit-DB GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC Yes
EPSS 0.0%
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

63
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +43
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

More in Openkm

View all
CVE-2026-42785 HIGH POC
8.6 May 26

Remote code execution in OpenKM Community Edition (≤6.3.12) and Professional Edition (≤7.1.47) allows authenticated admi

CVE-2012-2316 MEDIUM POC
6.8 Sep 09

Cross-site request forgery (CSRF) vulnerability in servlet/admin/AuthServlet.java in OpenKM 5.1.7 and other versions bef

CVE-2019-11445 HIGH POC
7.2 Apr 22

OpenKM 6.3.2 through 6.3.7 allows an attacker to upload a malicious JSP file into the /okm:root directories and move tha

CVE-2026-41917 MEDIUM POC
6.9 May 26

Path traversal in OpenKM's administrative scripting interface exposes arbitrary server-side files to authenticated admin

CVE-2024-35475 MEDIUM POC
6.4 May 22

A Cross-Site Request Forgery (CSRF) vulnerability was discovered in OpenKM Community Edition on or before version 6.3.12

CVE-2023-50072 MEDIUM POC
5.4 Jan 13

A Stored Cross-Site Scripting (XSS) vulnerability exists in OpenKM version 7.1.40 (dbb6e88) With Professional Extension

CVE-2022-2131 CRITICAL
9.8 Jul 25

OpenKM Community Edition in its 6.3.10 version and before was using XMLReader parser in XMLTextExtractor.java file witho

CVE-2012-2315 MEDIUM POC
4.0 Sep 09

admin/Auth in OpenKM 5.1.7 and other versions before 5.1.8-2 does not properly enforce privileges for changing user role

CVE-2022-3969 MEDIUM POC
5.5 Nov 13

A vulnerability was found in OpenKM up to 6.3.11 and classified as problematic. Rated medium severity (CVSS 5.5), this v

CVE-2014-8957 MEDIUM POC
5.4 Oct 06

Cross-site scripting (XSS) vulnerability in OpenKM before 6.4.19 allows remote authenticated users to inject arbitrary w

CVE-2025-57244 MEDIUM POC
5.4 Nov 05

OpenKM Community Edition 6.3.12 is vulnerable to stored cross-site scripting (XSS) in the user account creation interfac

CVE-2022-40317 MEDIUM POC
5.4 Sep 09

OpenKM 6.3.11 allows stored XSS related to the javascript: substring in an A element. Rated medium severity (CVSS

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy