---
id: CVE-2026-42785
title: >-
  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
summary: >-
  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 a…
severity: high
cvss: 7.2
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H'
cwe:
  - CWE-94
published: '2026-05-26'
updated: '2026-10-06'
sourceUpdated: '2026-10-06T22:10:00.247'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-42785'
references:
  - url: 'https://github.com/terrasystemlabs/Exploits/tree/main/OpenKM-Exploits'
    label: disclosure@vulncheck.com
  - url: >-
      https://github.com/terrasystemlabs/Exploits/tree/main/OpenKM-Exploits/nuclei-templates/openkm-remote-code-execution
    label: disclosure@vulncheck.com
  - url: 'https://hub.docker.com/r/openkm/openkm-ce'
    label: disclosure@vulncheck.com
  - url: >-
      https://terrasystemlabs.com/post?slug=openkm-zero-day-vulnerabilities-terra-system-labs
    label: disclosure@vulncheck.com
  - url: 'https://www.exploit-db.com/exploits/52520'
    label: disclosure@vulncheck.com
  - url: 'https://www.openkm.com/'
    label: disclosure@vulncheck.com
  - url: >-
      https://www.vulncheck.com/advisories/openkm-remote-code-execution-via-administrative-scripting
    label: disclosure@vulncheck.com
tags:
  - nvd
epss: 0.01183
epssPercentile: 0.66762
ingestedAt: '2026-10-06T22:23:15.926Z'
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
