# CVE-2026-42425: OpenKM 6.3.12 Unrestricted SQL Execution via DatabaseQuery

- Severity: High 8.6 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.64%, higher than 52% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 3 links below, marked "exploit"
- Published: 2026-05-26T14:08:50.343Z
- Modified: 2026-10-06T22:10:00.247Z
- Weaknesses: CWE-89
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: VulnCheck

## 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.

(As written by CVE List.)

## Affected

- Openkm OpenKM Community Edition: up to 6.3.12
- Openkm OpenKM Professional Edition: up to 7.1.47

## Every score

- VulnCheck: CVSS:4.0 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`
- VulnCheck: CVSS:3.1 7.2 High `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://www.exploit-db.com/exploits/52520> (exploit)
- <https://github.com/terrasystemlabs/Exploits/tree/main/OpenKM-Exploits> (exploit, product)
- <https://github.com/terrasystemlabs/Exploits/tree/main/OpenKM-Exploits/nuclei-templates/openkm-sql-database-query> (exploit, product)
- <https://www.openkm.com/> (product)
- <https://hub.docker.com/r/openkm/openkm-ce> (product)
- <https://terrasystemlabs.com/post?slug=openkm-zero-day-vulnerabilities-terra-system-labs> (vendor-advisory)
- <https://www.vulncheck.com/advisories/openkm-unrestricted-sql-execution-via-databasequery> (third-party-advisory)

## Sources

- CVE List: [CVE-2026-42425](https://www.cve.org/CVERecord?id=CVE-2026-42425), CVE Terms of Use, modified 2026-05-26
- NVD: [CVE-2026-42425](https://nvd.nist.gov/vuln/detail/CVE-2026-42425), Public domain, modified 2026-10-06

---

Page: https://cve.day/CVE-2026-42425 · Whole record: https://cve.day/CVE-2026-42425.json · Rebuilt by cve.day 2026-11-25T22:59:22.324Z
