Mustache for Ruby - RCE using built-in method access
Published: November 18, 2026
SECURITY IDENTIFIERS
- CVE: CVE-2026-130001 (NVD)
- GHSA: GHSA-5hrj-7fc3-cmx9
GEM
SEVERITY
CVSS v3.x: 9.8 (Critical)
PATCHED VERSIONS
>= 1.1.3
DESCRIPTION
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.
Impact
An attacker with the ability to modify the template string can execute arbitrary code in the context of the Ruby application.
RELATED
- https://www.cve.org/CVERecord?id=CVE-2026-130001
- https://rubygems.org/gems/mustache/versions/1.1.3
- https://github.com/mustache/mustache/commit/bb646c7a5d64bfc3eb73382ef0eb8e145bbb1e52
- https://github.com/mustache/mustache/commit/b015f866942a6eb45ce4d34009f2ba6ff16ce4c1
- https://hackerone.com/reports/423541
- https://portswigger.net/knowledgebase/papers/serversidetemplateinjection.pdf
- https://advisories.gitlab.com/gem/mustache/CVE-2026-130001
- https://github.com/mustache/mustache/security/advisories/GHSA-5hrj-7fc3-cmx9
- https://github.com/advisories/GHSA-5hrj-7fc3-cmx9
