CVE-2022-0323
HIGH 8.8CVSS 3.1Mustache remote code injection vulnerability
Improper Neutralization of Special Elements Used in a Template Engine in Packagist mustache/mustache prior to 2.14.1.
- Published
- 21 Jan 2022
- Last modified
- 17 Jun 2026
- Assigned by
- security@huntr.dev
- NVD status
- Modified
- Weakness
- CWE-1336CWE-94
- Also known as
- GHSA-4rmr-c2jx-vx27
- Sources
- NVDJSONOSV GHSA-4rmr-c2jx-vx27JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | security@huntr.dev (Secondary) | CVSS 3.0 | MEDIUM 5.3 | CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 6.5 | AV:N/AC:L/Au:S/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | mustache_project | mustachecpe:2.3:a:mustache_project:mustache:*:*:*:*:*:php:*:* |
>= 2.0.0, < 2.14.1 | 2.14.1 |
| OSV | Packagist | mustache/mustache | >= 2.0.0, < 2.14.1 | 2.14.1 |
References
- https://github.com/bobthecow/mustache.php/commit/579ffa5c96e1d292c060b3dd62811ff01ad8c24e · Patch, Third Party Advisory, WEB
- https://huntr.dev/bounties/a5f5a988-aa52-4443-839d-299a63f44fb7 · Exploit, Issue Tracking, Patch, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-0323 · ADVISORY
- https://github.com/FriendsOfPHP/security-advisories/blob/master/mustache/mustache/CVE-2022-0323.yaml · WEB
- https://github.com/bobthecow/mustache.php · PACKAGE
- https://github.com/bobthecow/mustache.php/releases/tag/v2.14.1 · WEB
History
- 25 Nov 2026 20:34 UTC · NVD: first stored (published 21 Jan 2022)
- 25 Nov 2026 20:15 UTC · OSV: first stored (published 27 Jan 2022)