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?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several Laravel or PHP apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Affected package

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.1

Details

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

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.