Skip to main content

OpenKM CVE-2026-42785

| EUVDEUVD-2026-31835 HIGH
Code Injection (CWE-94)
2026-05-26 VulnCheck GHSA-w8q9-g33h-9x9m
8.6
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Recon
    Identify exposed OpenKM admin login
  2. Delivery
    Obtain admin credentials (reuse/phish/default)
  3. Exploit
    Authenticate to /admin/Scripting
  4. Install
    POST BeanShell payload with action=Evaluate
  5. C2
    JVM executes arbitrary Java/OS commands
  6. Execute
    Establish reverse shell as app-server user
  7. Impact
    Exfiltrate documents and pivot internally

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Code injection prevention, sandbox exec
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Initial Access

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

Exploitation Conditions

Exploitation requires (1) network reachability to the OpenKM web interface, specifically the /admin/Scripting endpoint, and (2) valid credentials for an account in the OpenKM administrator role (CVSS PR:H) - there is no separate token, CSRF defence, or out-of-band approval gating the Evaluate action. The vulnerable feature is the built-in BeanShell scripting console, which is present and enabled by default in Community Edition ≤6.3.12 and Professional Edition ≤7.1.47 with no special configuration toggle required. Limiting factors: a non-admin authenticated user cannot reach the endpoint, no user interaction by a victim is needed (UI:N), and the impact is confined to the OpenKM application/host (SC:N/SI:N/SA:N) - meaning compromise does not automatically cross into separately-administered downstream systems unless the OpenKM host has additional trust relationships.

Impact

CVSS 4.0 vector AV:N/AC:L/AT:N/PR:H/UI:N rates this 8.6 because exploitation is network-reachable with no user interaction and yields total confidentiality, integrity, and availability impact (VC:H/VI:H/VA:H), but the PR:H requirement - full administrator credentials - is the dominant limiting factor and aligns with SSVC's 'Automatable: no' classification. EPSS of 0.42% (62th percentile) and the absence of a CISA KEV listing both indicate this is not currently a target of mass scanning, consistent with a post-auth admin-only flaw; however, SSVC marks technical impact as 'total' and a working exploit plus Nuclei template are public, so any environment where admin credentials leak, are reused, or are protected only by default/weak passwords should treat this as priority remediation. The realistic risk profile is 'serious for exposed or poorly-credentialed deployments, low for hardened internal installs' - defenders should not dismiss it on the strength of the PR:H alone given how often DMS admin panels end up internet-exposed.

Exploit ScenarioDerived

An attacker who has obtained OpenKM administrator credentials - through phishing, password reuse, an exposed default install, or credential stuffing against an internet-facing instance - sends an authenticated POST to /admin/Scripting with action=Evaluate and a BeanShell payload such as Runtime.getRuntime().exec("...") to spawn a reverse shell as the application server user. Because a working Exploit-DB module (52520) and a ready-to-run Nuclei template are publicly available, weaponization requires no original research; from initial shell the attacker can read or exfiltrate the entire document repository, tamper with stored files, and pivot into the underlying database or host network.

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

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

Alert me

AnalysisAIv1 – Jun 08, 2026

Remote code execution in OpenKM Community Edition (≤6.3.12) and Professional Edition (≤7.1.47) allows authenticated administrators to execute arbitrary Java/BeanShell code via the /admin/Scripting endpoint using the action=Evaluate parameter. Publicly available exploit code exists (Exploit-DB 52520 and a Nuclei template from Terra System Labs), though no active exploitation has been confirmed in CISA KEV; EPSS sits at 0.42% (62th percentile), reflecting moderate-but-not-widespread interest.

RemediationAI

No vendor-released patch identified at time of analysis - the provided references include the vendor site and third-party advisories but do not name a fixed Community or Professional Edition build, so operators should monitor https://www.openkm.com/ and the Terra System Labs and VulnCheck advisories for a patched release announcement. As compensating controls, restrict network reachability of the /admin/Scripting endpoint at a reverse proxy or WAF (block or allowlist by source IP), since the feature is rarely needed in production and disabling it does not affect end-user document workflows; rotate and harden all administrator passwords, enforce MFA on the admin role if the deployment supports it, and audit existing admin accounts for unused or shared credentials. Where the scripting console is genuinely required, isolate the OpenKM host on a management VLAN and log every POST to /admin/Scripting with action=Evaluate for SOC review - the trade-off of fully blocking the endpoint is loss of administrative scripting/automation, which most installations will not miss.

Affected VersionsENISA

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

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 an open-source enterprise document management system written in Java that runs inside a servlet container (commonly Tomcat) and exposes an administrative scripting console at /admin/Scripting. The console is designed to evaluate BeanShell snippets - a Java-syntax scripting language with full access to the JVM, classpath, and Runtime.exec - which is a textbook CWE-94 (Improper Control of Generation of Code, 'Code Injection') scenario where attacker-controlled input is fed directly to a script interpreter. The CPE strings cpe:2.3:a:openkm:openkm_community_edition and cpe:2.3:a:openkm:openkm_professional_edition confirm both the free and commercial product lines share the vulnerable scripting feature, and because BeanShell executes within the OpenKM JVM, any command runs with the privileges of the application server account (often the tomcat user or, in the official openkm/openkm-ce Docker image, root inside the container).

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

Executive ViewAI

Why It Matters

OpenKM document management systems (Community Edition ≤6.3.12, Professional Edition ≤7.1.47) contain a remote code execution vulnerability in the administrative scripting interface; publicly available exploit code exists. Authenticated administrators can execute arbitrary Java code on production servers, creating insider-threat and system-compromise risks for organizations managing sensitive documents, with potential for data exfiltration and compliance violations.

Business Impact: High
Compensating Controls

Restrict network access to OpenKM admin interfaces via firewall rules and VLAN segmentation; implement Web Application Firewall rules blocking /admin/Scripting endpoint requests except from authorized administrative networks; disable BeanShell scripting evaluation via OpenKM configuration settings if operationally feasible; enforce privileged access management (PAM) and multi-factor authentication on all OpenKM administrator accounts; implement continuous audit logging and real-time alerting for all /admin/Scripting endpoint access attempts; maintain immutable backups of OpenKM configurations and data to enable rapid recovery from code-execution attacks; conduct immediate review of admin activity logs for unauthorized scripting activity dating back 90 days.

Threat Intelligence Overview

EPSS Score
0.4%
Top 38% 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.4%
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

Code Injection CRITICAL

Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

More in Openkm

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

Authenticated SQL injection in OpenKM Community Edition (≤6.3.12) and Professional Edition (≤7.1.47) lets administrative

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