{"id":"CVE-2026-142193","summary":"Nette Latte through 3.1.10 Path Traversal via FileLoader baseDir Bypass","details":"Nette Latte through 3.1.10 contains a path traversal vulnerability in FileLoader that allows attackers to bypass the baseDir restriction by supplying template names beginning with '/../'. Attackers controlling the template name passed to Engine::render() can exploit flawed normalizePath() handling of empty segments to read any file readable by the PHP process.","modified":"2026-12-02T23:45:25.621855297Z","published":"2026-12-02T16:50:57.236Z","database_specific":{"cwe_ids":["CWE-22"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142193.json","cna_assigner":"VulnCheck"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142193.json"},{"type":"PACKAGE","url":"https://github.com/nette/latte"},{"type":"ARTICLE","url":"https://github.com/nette/latte/blob/v3.1.10/src/Latte/Loaders/FileLoader.php#L30-L46"},{"type":"ARTICLE","url":"https://github.com/nette/latte/blob/v3.1.10/src/Latte/Loaders/FileLoader.php#L71-L84"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-142193"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/nette-latte-through-3.1.10-path-traversal-via-fileloader-basedir-bypass"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/nette/latte","events":[{"introduced":"0"},{"last_affected":"07669617ba91e3d1f4f754bdf3a6796c8cd0b043"}],"database_specific":{"extracted_events":[{"source":"AFFECTED_FIELD","strategy":"StandardRange","range":[{"introduced":"0"},{"last_affected":"3.1.10"}]}]}}],"versions":["v3.1.10","v3.1.9","v3.1.7","v3.1.6","v3.1.5","v3.1.4","v3.1.3","v3.1.2","v3.1.1","v3.1.0","v3.0.24","v3.0.23","v3.0.22","v3.0.21","v3.0.20","v3.0.18","v3.0.16","v3.0.14","v3.0.13","v3.0.12","v3.0.10","v2.10.9","v3.0.9","v3.0.7","v3.0.6","v3.0.5","v3.0.4","v3.0.3","v3.0.2","v3.0.1","v3.0.0","v2.11.3","v2.11.2","v2.11.1","v2.11.0","v2.10.8","v2.10.7","v2.10.6","v2.10.5","v2.10.4","v2.10.3","v2.10.2","v2.10.1","v2.6.2","v2.9.2","v2.9.1","v2.9.0","v2.8.3","v2.8.2","v2.8.1","v2.8.0","v2.7.1","v2.7.0","v2.6.1","v2.6.0","v2.5.4","v2.5.3","v2.5.2","v2.5.1","v2.5.0","v2.4.3","v2.4.2","v2.4.1","v2.4.0","v2.3.2","v2.3.1","v2.3.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-142193.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N"}]}