# CVE-2022-0323: Improper Neutralization of Special Elements Used in a Template Engine in bobthecow/mustache.php

- Severity: Medium 5.3 (CVSS:3.0, scored by @huntrdev) `CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.69%, higher than 54% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-01-21T18:00:17.000Z
- Modified: 2026-06-17T04:20:23.847Z
- Also known as: GHSA-4rmr-c2jx-vx27
- Weaknesses: CWE-94, CWE-1336
- Assigned by: @huntrdev

## Description

Improper Neutralization of Special Elements Used in a Template Engine in Packagist mustache/mustache prior to 2.14.1.

(As written by CVE List.)

## Affected

- bobthecow bobthecow/mustache.php: from unspecified before 2.14.1
- mustache/mustache (Packagist): from 2.0.0 before 2.14.1
- mustache_project mustache: from 2.0.0 before 2.14.1

## Every score

- @huntrdev: CVSS:3.0 5.3 Medium `CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L`
- GitHub: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 6.5 Medium `AV:N/AC:L/Au:S/C:P/I:P/A:P`

## References

- <https://huntr.dev/bounties/a5f5a988-aa52-4443-839d-299a63f44fb7> (exploit, issue-tracking, patch, third-party-advisory, web)
- <https://github.com/bobthecow/mustache.php/commit/579ffa5c96e1d292c060b3dd62811ff01ad8c24e> (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)

## Sources

- CVE List: [CVE-2022-0323](https://www.cve.org/CVERecord?id=CVE-2022-0323), CVE Terms of Use, modified 2024-08-02
- GitHub Advisory Database: [GHSA-4rmr-c2jx-vx27](https://github.com/advisories/GHSA-4rmr-c2jx-vx27), CC-BY-4.0, modified 2024-02-16
- NVD: [CVE-2022-0323](https://nvd.nist.gov/vuln/detail/CVE-2022-0323), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-0323 · Whole record: https://cve.day/CVE-2022-0323.json · Rebuilt by cve.day 2026-11-25T22:58:09.388Z
