GHSA-4rmr-c2jx-vx27
Mustache remote code injection vulnerability
Packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| Packagist | mustache/mustache | >= 2.0.0, < 2.14.1 | 2.14.1 |
Details
As written in the advisory (Markdown source, shown as plain text).
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.
References
External links from the advisory. They lead to third-party sites.
- 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