CVE-2026-142195
Latte before 3.1.7 contains a sandbox bypass vulnerability that …
Latte before 3.1.7 contains a sandbox bypass vulnerability that allows template authors to read forbidden properties by abusing double-evaluated dynamic property names. Attackers can craft side-effecting name expressions in PropertyFetchNode or StaticPropertyFetchNode so the policy check sees an allowed property while access reads a forbidden one.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- github.com/nette/latte/blob/v3.1.6/src/Latte/Compiler/PrintContext.php#L244-L260
- github.com/nette/latte/blob/v3.1.6/src/Latte/Sandbox/Nodes/PropertyFetchNode.php#L25-L32
- github.com/nette/latte/commit/3c70898a0a5e5624509b7fe57753aa2b8794ed1c
- github.com/nette/latte/releases/tag/v3.1.7
- www.vulncheck.com/advisories/latte-before-3.1.7-sandbox-bypass-via-double-evaluated-dynami
- nvd.nist.gov/vuln/detail/CVE-2026-142195
- cve.org/CVERecord?id=CVE-2026-142195
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.