{"id":"CVE-2026-42425","published":"2026-05-26T14:08:50Z","modified":"2026-05-26T15:14:09Z","title":"OpenKM 6.3.12 Unrestricted SQL Execution via DatabaseQuery","vendor":"Openkm","product":"OpenKM Community Edition","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.2,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00641,"percentile":0.51647,"provenance":"source"},"cwes":[{"id":"CWE-89","name":"Improper Neutralization of Special Elements used in an SQL Command"}],"references":[{"url":"https://www.exploit-db.com/exploits/52520","tags":["exploit"]},{"url":"https://www.openkm.com/","tags":["product"]},{"url":"https://hub.docker.com/r/openkm/openkm-ce","tags":["product"]},{"url":"https://terrasystemlabs.com/post?slug=openkm-zero-day-vulnerabilities-terra-system-labs","tags":["vendor-advisory"]},{"url":"https://github.com/terrasystemlabs/Exploits/tree/main/OpenKM-Exploits","tags":["product"]},{"url":"https://github.com/terrasystemlabs/Exploits/tree/main/OpenKM-Exploits/nuclei-templates/openkm-sql-database-query","tags":["product"]},{"url":"https://www.vulncheck.com/advisories/openkm-unrestricted-sql-execution-via-databasequery","tags":["third-party-advisory"]}],"priority":{"score":20.4,"factors":[{"name":"EPSS percentile","points":10.33},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":5.04}]},"vendorSlug":"openkm","affectedVersions":[{"vendor":"Openkm","product":"OpenKM Community Edition","versions":["<= 6.3.12"]},{"vendor":"Openkm","product":"OpenKM Professional Edition","versions":["<= 7.1.47"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2026-05-26T15:14:02.971658Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-31834","exploited":false,"provenance":"source"},"exploitRefs":["https://www.exploit-db.com/exploits/52520","https://github.com/terrasystemlabs/Exploits/tree/main/OpenKM-Exploits","https://github.com/terrasystemlabs/Exploits/tree/main/OpenKM-Exploits/nuclei-templates/openkm-sql-database-query"]}