CVE-2026-130001 with a CVSS score of 9.8 is a critical remote code execution vulnerability in the Mustache template engine for Ruby, affecting versions 1.1.2 and earlier. The flaw is improper restriction of built-in method access in the template rendering component, allowing an attacker who controls the template string to chain multiple built-in methods and execute arbitrary code. Exploitation is network-based, requires no privileges, no user interaction, and no special configuration or objects passed to the template engine; the attacker only needs to supply a malicious template to an application that renders it. Because the code runs with the same privileges as the Ruby application, successful exploitation can lead to total loss of confidentiality, integrity, and availability, including unauthorized data access, modification of application behavior, deployment of further malicious functionality, and denial of service. Disclosed payloads include universal remote code execution on a major Ruby version, file upload leading to remote code execution, infinite memory consumption, and infinite sleep denial of service, while real-world applications may expose additional dangerous functionality. This makes the vulnerability especially severe for public websites and services that process untrusted templates.
We recommend you to update Mustache for Ruby to version 1.1.3.[/subscribe_to_unlock_form]
CVE-2026-130001 with a CVSS score of 9.8 is a critical remote code execution vulnerability in the Mustache template engine for Ruby, affecting versions 1.1.2 and earlier. The flaw is improper restriction of built-in method access in the template rendering component, allowing an attacker who controls the template string to chain multiple built-in methods and execute arbitrary code. Exploitation is network-based, requires no privileges, no user interaction, and no special configuration or objects passed to the template engine; the attacker only needs to supply a malicious template to an application that renders it. Because the code runs with the same privileges as the Ruby application, successful exploitation can lead to total loss of confidentiality, integrity, and availability, including unauthorized data access, modification of application behavior, deployment of further malicious functionality, and denial of service. Disclosed payloads include universal remote code execution on a major Ruby version, file upload leading to remote code execution, infinite memory consumption, and infinite sleep denial of service, while real-world applications may expose additional dangerous functionality. This makes the vulnerability especially severe for public websites and services that process untrusted templates.
We recommend you to update Mustache for Ruby to version 1.1.3.[emaillocker id="1283"]
The following reports contain further technical details:
[/emaillocker]