GHSA-3h3q-fpqr-gwfgLowCVSS 3.1
Latte before 3.1.7 contains a sandbox bypass vulnerability that allows template authors to read...
🔗 CVE IDs covered (1)
📋 Description
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.
🔗 References (7)
- https://nvd.nist.gov/vuln/detail/CVE-2026-142195
- https://github.com/nette/latte/commit/3c70898a0a5e5624509b7fe57753aa2b8794ed1c
- https://github.com/nette/latte/blob/v3.1.6/src/Latte/Compiler/PrintContext.php#L244-L260
- https://github.com/nette/latte/blob/v3.1.6/src/Latte/Sandbox/Nodes/PropertyFetchNode.php#L25-L32
- https://github.com/nette/latte/releases/tag/v3.1.7
- https://www.vulncheck.com/advisories/latte-before-3.1.7-sandbox-bypass-via-double-evaluated-dynamic-property-names
- https://github.com/advisories/GHSA-3h3q-fpqr-gwfg