← Back to search

CVE-2026-120203

8.8 HIGHpublic exploit available

Published 2026-10-31 · Updated 2026-10-31

AI risk analysis

Summary
ShowDoc 2.8.14 before 3.9.6 contains a code injection vulnerability in its Mock feature where authenticated users can inject and execute arbitrary shell commands via mockjs templates that use eval() on user-controlled input containing escaped parentheses.
Exploitability
Exploitation requires valid authentication and the ability to submit a malicious mockjs template through the MockController::add endpoint, but is otherwise straightforward due to lack of input sanitization.
Blast radius
In the official Docker image, exploitation allows full system compromise as root, enabling data exfiltration, lateral movement, or persistence.
Detection
Defenders should monitor for HTTP POST requests to /index.php/mock/add containing suspicious patterns such as escaped parentheses (e.g., \(\)) in the template body, followed by subsequent GET requests to /index.php/mock/infoByKey referencing the same mock key; these logs may indicate attempted exploitation.
Prioritized remediation
Upgrade to ShowDoc version 3.9.6 or later, which patches the vulnerability by sanitizing mockjs template inputs before evaluation.
rcewebappauth-bypasstemplate-injectiondocker

Analysis generated locally by garnet-coder (no data left the box). AI-assisted — verify against primary sources before acting.

NVD description

ShowDoc 2.8.14 before 3.9.6 contains a code injection vulnerability in its Mock feature that allows authenticated users to execute shell commands through mockjs templates. Attackers can store a template via MockController::add with escaped parentheses that mockjs evaluates with eval(), then trigger it through MockController::infoByKey to run commands, as root in the official Docker image.

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Weaknesses

CWE-94

Public exploit & PoC references

All references

Source data: NVD (nvd.nist.gov), public domain. Exploit-DB.ai adds local AI analysis for defensive use only.

Related CVEs

Related by shared AI tags and CWE weakness class. Browse the full archive.