CVE-2026-42785 OpenKM 6.3.12 Remote Code Execution via Administrative Scripting
Authenticated administrators can execute arbitrary code via the scripting endpoint, leading to remote code execution on the server.
- Exploited in the wild
- Not known
- Login needed
- An administrator
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2026-42785?
CVE-2026-42785 is a high-severity code injection vulnerability in OpenKM Community Edition, published on 26 May 2026. An attacker needs administrator access to exploit it, with no action from the victim.
Official 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.
Weakness: CWE-94
Which versions are affected by CVE-2026-42785?
How do I fix CVE-2026-42785?
No fix has been published for CVE-2026-42785 yet. Limit exposure of the affected software until one is available.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2026-42785 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-42785 exists.
Sources
Also known as GHSA-w8q9-g33h-9x9m.