Mustache for Ruby: RCE using built-in method access
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…
Proof-of-concept code is published
Public PoC
- Public PoCLLCForge/CVE-2026-130001
Signals come from Exploit-DB, Metasploit, Nuclei and published proof-of-concept repositories. Their absence means nothing was found, not that nothing exists.
Assessment
- CVSS
- 9.8 (v3.1)
- Severity
- Critical
- Known exploited
- Not listed in CISA KEV
- Exploit availability
- Public PoC
- Published
- 18 November 2026
- Last updated
- 18 November 2026
- Affected
- mustache
- Weakness
- CWE-913
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
At the source
References
- https://github.com/mustache/mustache/security/advisories/GHSA-5hrj-7fc3-cmx9
- https://github.com/mustache/mustache/commit/b015f866942a6eb45ce4d34009f2ba6ff16ce4c1
- https://hackerone.com/reports/423541
- https://portswigger.net/knowledgebase/papers/serversidetemplateinjection.pdf
- https://github.com/advisories/GHSA-5hrj-7fc3-cmx9
Community proofs of concept
No community proof of concept yet. If you have one for a published vulnerability and the right to share it, add it below — it will appear here once reviewed.
Submit a proof of concept
Only for publicly disclosed vulnerabilities, and only material from testing you were authorised to perform. This platform does not buy, sell, or broker exploits — see earning from vulnerability research for legitimate bounty programs. Submissions are reviewed before they appear. Text only; do not include live credentials, personal data, or anything targeting systems you are not permitted to test.
Query this programmatically
Agents can read this through the MCP endpoint, or over HTTP:
curl https://cve.zerocrew.in/api/cve/CVE-2026-130001