{"id":"CVE-2022-0323","aliases":["CVE-2022-0323","GHSA-4rmr-c2jx-vx27"],"related":[],"kind":"vulnerability","state":"published","title":"Improper Neutralization of Special Elements Used in a Template Engine in bobthecow/mustache.php","summary":"Improper Neutralization of Special Elements Used in a Template Engine in Packagist mustache/mustache prior to 2.14.1.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Improper Neutralization of Special Elements Used in a Template Engine in Packagist mustache/mustache prior to 2.14.1.","source":"cvelist"},{"lang":"en","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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Una Neutralización Inapropiada de Elementos Especiales Usados en un Motor de Plantillas en Packagist mustache/mustache versiones anteriores a 2.14.1","source":"nvd"}],"published":"2022-01-21T18:00:17.000Z","modified":"2026-06-17T04:20:23.847Z","severity":{"scorer":"@huntrdev","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","score":5.3,"rating":"MEDIUM"},"severities":[{"scorer":"@huntrdev","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","score":5.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:S/C:P/I:P/A:P","score":6.5,"rating":"MEDIUM"}],"cwes":["CWE-94","CWE-1336"],"affected":[{"ranges":[{"type":"custom","introduced":"unspecified","fixed":"2.14.1","status":"affected"}],"vendor":"bobthecow","product":"bobthecow/mustache.php","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"2.0.0","status":"affected","fixed":"2.14.1"}],"ecosystem":"Packagist","package":"mustache/mustache","purl":"pkg:composer/mustache/mustache","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"2.0.0","fixed":"2.14.1"}],"vendor":"mustache_project","product":"mustache","cpe":"cpe:2.3:a:mustache_project:mustache:*:*:*:*:*:php:*:*","source":"nvd"}],"references":[{"url":"https://huntr.dev/bounties/a5f5a988-aa52-4443-839d-299a63f44fb7","tags":["exploit","issue-tracking","patch","third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/bobthecow/mustache.php/commit/579ffa5c96e1d292c060b3dd62811ff01ad8c24e","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-0323","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/FriendsOfPHP/security-advisories/blob/master/mustache/mustache/CVE-2022-0323.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/bobthecow/mustache.php","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/bobthecow/mustache.php/releases/tag/v2.14.1","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"@huntrdev","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-0323","url":"https://www.cve.org/CVERecord?id=CVE-2022-0323","licence":"CVE Terms of Use","modified":"2024-08-02T23:25:40.163Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-4rmr-c2jx-vx27","url":"https://github.com/advisories/GHSA-4rmr-c2jx-vx27","licence":"CC-BY-4.0","modified":"2024-02-16T07:59:53.974Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-0323","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-0323","licence":"Public domain","modified":"2026-06-17T04:20:23.847Z"}],"updatedAt":"2026-11-25T22:58:09.388Z","epss":{"score":0.00694,"percentile":0.54202,"date":"2026-12-01T12:00:22.000Z"}}