{"id":"CVE-2022-0323","aliases":["EUVD-2022-0447","GHSA-4rmr-c2jx-vx27","UBUNTU-CVE-2022-0323"],"status":"published","title":"Improper Neutralization of Special Elements Used in a Template Engine in bobthecow/mustache.php","description":"Improper Neutralization of Special Elements Used in a Template Engine in Packagist mustache/mustache prior to 2.14.1.","severity":{"version":"3.0","score":5.3,"vector":"CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","level":"medium","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-09","score":0.00672,"percentile":0.52344,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-1336","CWE-94"],"published":"2022-01-21T18:00:17Z","modified":"2026-10-28T02:30:45Z","fixes":[{"ecosystem":"Packagist","package":"mustache/mustache","fixed_in":["2.14.1"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"Packagist","package":"mustache/mustache","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.0.0"},{"fixed":"2.14.1"}]}]},{"source":"osv","ecosystem":"Packagist","package":"mustache/mustache","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.0.0"},{"fixed":"2.14.1"}]}],"versions":["v2.0.0","v2.0.1","v2.0.2","v2.1.0","v2.10.0","v2.11.0","v2.11.1","v2.12.0","v2.13.0","v2.14.0","v2.2.0","v2.3.0","v2.3.1","v2.4.0","v2.4.1","v2.5.0","v2.5.1","v2.6.0","v2.6.1","v2.7.0","v2.8.0","v2.9.0"]},{"source":"osv","ecosystem":"Ubuntu:Pro:16.04:LTS","package":"moodle","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.7.9+dfsg-1","2.7.10+dfsg-1","2.7.11+dfsg-1","2.7.11+dfsg-2","2.7.12+dfsg-1","3.0.3+dfsg-0ubuntu1","3.0.3+dfsg-0ubuntu1+esm1"]},{"source":"osv","ecosystem":"Ubuntu:Pro:18.04:LTS","package":"moodle","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.0.3+dfsg-0ubuntu1","3.0.3+dfsg-0ubuntu1+esm1"]}],"products":[{"vendor":"bobthecow","product":"bobthecow/mustache.php"},{"vendor":"mustache_project","product":"mustache"}],"references":[{"url":"https://huntr.dev/bounties/a5f5a988-aa52-4443-839d-299a63f44fb7","tags":["x_refsource_CONFIRM","x_transferred","Exploit","Issue Tracking","Patch","Third Party Advisory","web","report"]},{"url":"https://github.com/bobthecow/mustache.php/commit/579ffa5c96e1d292c060b3dd62811ff01ad8c24e","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix","web","report"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-0323","tags":["advisory"]},{"url":"https://github.com/FriendsOfPHP/security-advisories/blob/master/mustache/mustache/CVE-2022-0323.yaml","tags":["web"]},{"url":"https://github.com/bobthecow/mustache.php/releases/tag/v2.14.1","tags":["web"]},{"url":"https://github.com/advisories/GHSA-4rmr-c2jx-vx27"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/0xxx/CVE-2022-0323.json","tags":["advisory"]},{"url":"https://github.com/bobthecow/mustache.php","tags":["package"]},{"url":"https://ubuntu.com/security/CVE-2022-0323","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-0323","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2022-0323","title":"Improper Neutralization of Special Elements Used in a Template Engine in bobthecow/mustache.php","description":"Improper Neutralization of Special Elements Used in a Template Engine in Packagist mustache/mustache prior to 2.14.1.","status":"published","published":"2022-01-21T18:00:17Z","modified":"2024-08-02T23:25:40.163Z","cvss":[{"version":"3.0","score":5.3,"vector":"CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","level":"medium","assessor":"cna"}],"cwes":["CWE-1336"],"updated_at":"2026-11-02T14:34:41.69911Z"}],"euvd":[{"id":"EUVD-2022-0447","description":"Improper Neutralization of Special Elements Used in a Template Engine in Packagist mustache/mustache prior to 2.14.1.","status":"published","published":"2022-01-21T18:00:17Z","modified":"2024-08-02T23:25:40Z","cvss":[{"version":"3.0","score":5.3,"vector":"CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","level":"medium"}],"updated_at":"2026-11-03T03:26:06.080876Z"}],"ghsa":[{"id":"GHSA-4rmr-c2jx-vx27","title":"Mustache remote code injection vulnerability","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.\n\n","status":"published","published":"2022-01-27T14:51:00Z","modified":"2024-02-07T18:19:13Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-94","CWE-1336"],"updated_at":"2026-11-02T14:37:36.076201Z"}],"nvd":[{"id":"CVE-2022-0323","description":"Improper Neutralization of Special Elements Used in a Template Engine in Packagist mustache/mustache prior to 2.14.1.","status":"published","published":"2022-01-21T18:15:08.363Z","modified":"2026-06-17T04:20:23.847Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"primary"},{"version":"3.0","score":5.3,"vector":"CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","level":"medium","assessor":"secondary"},{"version":"2.0","score":6.5,"vector":"AV:N/AC:L/Au:S/C:P/I:P/A:P","level":"medium","assessor":"primary"}],"cwes":["CWE-1336","CWE-94"],"updated_at":"2026-11-02T14:07:11.52734Z"}],"osv":[{"id":"CVE-2022-0323","title":"Improper Neutralization of Special Elements Used in a Template Engine in bobthecow/mustache.php","description":"Improper Neutralization of Special Elements Used in a Template Engine in Packagist mustache/mustache prior to 2.14.1.","status":"published","published":"2022-01-21T18:00:17Z","modified":"2026-10-28T02:30:45.031783643Z","cvss":[{"version":"3.0","score":5.3,"vector":"CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","level":"medium"}],"cwes":["CWE-1336"],"updated_at":"2026-11-02T15:44:22.824781Z"},{"id":"GHSA-4rmr-c2jx-vx27","title":"Mustache remote code injection vulnerability","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.\n\n","status":"published","published":"2022-01-27T14:51:00Z","modified":"2024-02-16T07:59:53.974944Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-1336","CWE-94"],"updated_at":"2026-11-02T15:46:37.528068Z"},{"id":"UBUNTU-CVE-2022-0323","description":"Improper Neutralization of Special Elements Used in a Template Engine in Packagist mustache/mustache prior to 2.14.1.","status":"published","published":"2022-01-21T18:15:00Z","modified":"2026-09-23T18:45:22.220608935Z","cvss":[{"version":"3.0","score":5.3,"vector":"CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","level":"medium"},{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T16:53:51.630172Z"}]}}
