bobthecow/mustache.php · Security
Mustache remote code injection vulnerability
- GHSA ID
- GHSA-4rmr-c2jx-vx27
- CVE ID
- CVE-2022-0323
- Severity
- high
- Published
- Updated
- CVSS
- 8.8 · CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- CVSS v3
- 8.8 · CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Description
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.
CWEs
- CWE-94 · Improper Control of Generation of Code ('Code Injection')
- CWE-1336 · Improper Neutralization of Special Elements Used in a Template Engine
References
- https://nvd.nist.gov/vuln/detail/CVE-2022-0323 ↗
- https://github.com/bobthecow/mustache.php/commit/579ffa5c96e1d292c060b3dd62811ff01ad8c24e ↗
- https://huntr.dev/bounties/a5f5a988-aa52-4443-839d-299a63f44fb7 ↗
- https://github.com/FriendsOfPHP/security-advisories/blob/master/mustache/mustache/CVE-2022-0323.yaml ↗
- https://github.com/bobthecow/mustache.php/releases/tag/v2.14.1 ↗
- https://github.com/advisories/GHSA-4rmr-c2jx-vx27 ↗