Mustache remote code injection vulnerability
In Mustache.php v2.0.0 through v2.14.0, Sections tag can lead to arbitrary php code execution even if strict_callables is true when section value is controllable.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Composer package | mustache/mustache | >= 2.0.0, < 2.14.1 | 2.14.1 |
References
- https://nvd.nist.gov/vuln/detail/CVE-2022-0323
- https://github.com/bobthecow/mustache.php/commit/579ffa5c96e1d292c060b3dd62811ff01ad8c24e
- https://github.com/FriendsOfPHP/security-advisories/blob/master/mustache/mustache/CVE-2022-0323.yaml
- https://github.com/bobthecow/mustache.php
- https://github.com/bobthecow/mustache.php/releases/tag/v2.14.1
- https://huntr.dev/bounties/a5f5a988-aa52-4443-839d-299a63f44fb7
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H- Weakness (CWE)
CWE-1336, CWE-94- Platform
- Composer
- Package
mustache/mustache- Disclosed
- 27.01.2022
- Updated
- 11.10.2026 10:22
Sources and licenses
OSV / GitHub Advisory Database - GHSA-4rmr-c2jx-vx27 - CC BY 4.0
Vulnerability history: mustache/mustache
All published vulnerabilities of this package (Composer package), newest first. Shows whether this is a one-off slip or a package that needs watching.
This is the only known vulnerability of this package.
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.