{"id":"CVE-2026-42785","state":"PUBLISHED","title":"OpenKM 6.3.12 Remote Code Execution via Administrative Scripting","description":"OpenKM 6.3.12 contains a remote code execution vulnerability that allows authenticated administrators to execute arbitrary Java/BeanShell code through the /admin/Scripting endpoint. Attackers can submit malicious script content with an action=Evaluate parameter to execute operating system commands in the context of the OpenKM application server.","publishedAt":"2026-05-26T14:08:51.032Z","updatedAt":"2026-05-26T16:20:15.493Z","severity":{"score":8.6,"label":"High","version":"4.0","vector":"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","source":"VulnCheck"},"assigner":"VulnCheck","products":["Openkm OpenKM Community Edition","Openkm OpenKM Professional Edition"],"affected":[{"vendor":"Openkm","product":"OpenKM Community Edition","defaultStatus":"unknown","versions":[{"version":"0","status":"affected","lessThanOrEqual":"6.3.12","versionType":"custom"}]},{"vendor":"Openkm","product":"OpenKM Professional Edition","defaultStatus":"unknown","versions":[{"version":"0","status":"affected","lessThanOrEqual":"7.1.47","versionType":"custom"}]}],"references":["https://www.exploit-db.com/exploits/52520","https://www.openkm.com/","https://hub.docker.com/r/openkm/openkm-ce","https://terrasystemlabs.com/post?slug=openkm-zero-day-vulnerabilities-terra-system-labs","https://github.com/terrasystemlabs/Exploits/tree/main/OpenKM-Exploits","https://github.com/terrasystemlabs/Exploits/tree/main/OpenKM-Exploits/nuclei-templates/openkm-remote-code-execution","https://www.vulncheck.com/advisories/openkm-remote-code-execution-via-administrative-scripting"],"weaknesses":["CWE-94"],"ingestedAt":"2026-10-29T20:11:57.932Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/42xxx/CVE-2026-42785.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-42785","state":"PUBLISHED","datePublished":"2026-05-26T14:08:51.032Z","dateUpdated":"2026-05-26T16:20:15.493Z","assignerShortName":"VulnCheck","assignerOrgId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","dateReserved":"2026-04-29T15:52:17.950Z"},"containers":{"cna":{"title":"OpenKM 6.3.12 Remote Code Execution via Administrative Scripting","descriptions":[{"lang":"en","value":"OpenKM 6.3.12 contains a remote code execution vulnerability that allows authenticated administrators to execute arbitrary Java/BeanShell code through the /admin/Scripting endpoint. Attackers can submit malicious script content with an action=Evaluate parameter to execute operating system commands in the context of the OpenKM application server."}],"affected":[{"vendor":"Openkm","product":"OpenKM Community Edition","defaultStatus":"unknown","versions":[{"version":"0","status":"affected","lessThanOrEqual":"6.3.12","versionType":"custom"}]},{"vendor":"Openkm","product":"OpenKM Professional Edition","defaultStatus":"unknown","versions":[{"version":"0","status":"affected","lessThanOrEqual":"7.1.47","versionType":"custom"}]}],"references":[{"url":"https://www.exploit-db.com/exploits/52520","name":"ExploitDB-52520","tags":["exploit"]},{"url":"https://www.openkm.com/","name":"Official Product Homepage","tags":["product"]},{"url":"https://hub.docker.com/r/openkm/openkm-ce","name":"Product Reference","tags":["product"]},{"url":"https://terrasystemlabs.com/post?slug=openkm-zero-day-vulnerabilities-terra-system-labs","name":"Vulnerability Advisory","tags":["vendor-advisory"]},{"url":"https://github.com/terrasystemlabs/Exploits/tree/main/OpenKM-Exploits","name":"Proof-of-Concept Toolkit","tags":["product"]},{"url":"https://github.com/terrasystemlabs/Exploits/tree/main/OpenKM-Exploits/nuclei-templates/openkm-remote-code-execution","name":"Nuclei Detection Template","tags":["product"]},{"url":"https://www.vulncheck.com/advisories/openkm-remote-code-execution-via-administrative-scripting","name":"VulnCheck Advisory: OpenKM 6.3.12 Remote Code Execution via Administrative Scripting","tags":["third-party-advisory"]}],"metrics":[{"cvssV4_0":{"Automatable":"NOT_DEFINED","Recovery":"NOT_DEFINED","Safety":"NOT_DEFINED","attackComplexity":"LOW","attackRequirements":"NONE","attackVector":"NETWORK","baseScore":8.6,"baseSeverity":"HIGH","exploitMaturity":"NOT_DEFINED","privilegesRequired":"HIGH","providerUrgency":"NOT_DEFINED","subAvailabilityImpact":"NONE","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","userInteraction":"NONE","valueDensity":"NOT_DEFINED","vectorString":"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","version":"4.0","vulnAvailabilityImpact":"HIGH","vulnConfidentialityImpact":"HIGH","vulnIntegrityImpact":"HIGH","vulnerabilityResponseEffort":"NOT_DEFINED"},"format":"CVSS"},{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":7.2,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"HIGH","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"format":"CVSS"}],"problemTypes":[{"descriptions":[{"cweId":"CWE-94","lang":"en","description":"Improper Control of Generation of Code ('Code Injection')","type":"CWE"}]}],"providerMetadata":{"shortName":"VulnCheck","orgId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","dateUpdated":"2026-05-26T14:08:51.032Z"},"datePublic":"2026-01-17T00:00:00.000Z","cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:a:openkm:openkm:*:*:*:*:community:*:*:*","versionEndIncluding":"6.3.12"},{"vulnerable":true,"criteria":"cpe:2.3:a:openkm:openkm:*:*:*:*:professional:*:*:*","versionEndIncluding":"7.1.47"}]}]}],"credits":[{"lang":"en","value":"Terra System Labs Pvt. Ltd.","type":"finder"}],"x_generator":{"engine":"vulncheck"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-05-26T16:20:05.567957Z","id":"CVE-2026-42785","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-05-26T16:20:15.493Z"}}]}}}