HighGHSA-4rmr-c2jx-vx27CVE-2022-0323
Mustache remote code injection vulnerability
Published 27 Jan 2022 · Updated 16 Feb 2024
Is your project on an affected mustache/mustache?
Look after several Laravel or PHP apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected package
mustache/mustacheComposer
- Affected
- >=2.0.0 <2.14.1
- Fixed in
- 2.14.1
Update to the fixed version for your release line, for example:
composer require mustache/mustache:^2.14.1Details
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.
Is GHSA-4rmr-c2jx-vx27 in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected mustache/mustache, and gives you the command that fixes it.
References
- Advisorynvd.nist.gov/vuln/detail/CVE-2022-0323
- Linkgithub.com/bobthecow/mustache.php/commit/579ffa5c96e1d292c060b3dd62811ff01ad8c24e
- Linkgithub.com/FriendsOfPHP/security-advisories/blob/master/mustache/mustache/CVE-2022-0323.yaml
- Packagegithub.com/bobthecow/mustache.php
- Linkgithub.com/bobthecow/mustache.php/releases/tag/v2.14.1
- Linkhuntr.dev/bounties/a5f5a988-aa52-4443-839d-299a63f44fb7
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.