CRITICALCVSS 9.8Vulnerability

CVE-2026-130001

> [!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 important discovered payloads would be provided: - Universal RCE for a major Ruby version - File upload to RCE (3 different payloads) - Infinite memory consumption DoS - Infinite sleep DoS Universal RCE payloads for other major Ruby versions and other payloads could exist, as the attack surface is very large. The presented list only contains payloads discovered using a fairly primitive approach. > [!CAUTION] > Exploitation is not limited to the discovered Exploits/PoCs and real-life web appli

Properties

Severity
critical
Summary
Mustache for Ruby: RCE using built-in method access
Cvss score
9.8
Retrieved at
2026-11-19T03:32:39+00:00
Ghsa published
2026-11-18T16:28:29Z
Source url
https://github.com/advisories/GHSA-5hrj-7fc3-cmx9
Ghsa updated
2026-11-18T16:28:30Z
Ghsa id
GHSA-5hrj-7fc3-cmx9
Last source
GitHub Advisory Database
Cve id
CVE-2026-130001
Cvss vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
First seen by Signal
2026-11-18T19:12:48+00:00
Name
CVE-2026-130001
Is ghsa only
false

Related Entities (3)

AFFECTS (1)

→[Software]rubygems/mustache

VULNERABLE_TO (1)

←[Software]rubygems/mustache

Related research

Explore deeper with Ninja Signal's threat intelligence graph

CVE-2026-130001 (CVSS 9.8) — Ninja Signal Threat Intelligence | Ninja Signal