CVE-2026-142193: Nette Latte through 3.1.10 Path Traversal via FileLoader baseDir Bypass
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.
Affected Software
Event History
Frequently Asked Questions
Which deployments are realistically exposed?
Deployments using composer/latte/latte through 3.1.10 are exposed when an attacker can control the template name supplied to Engine::render(). The issue depends on FileLoader being used with a baseDir restriction that the crafted name can bypass.
What does an attacker need to provide to exploit the issue?
The attacker must be able to supply a template name beginning with '/../' to the affected rendering path. No authentication or user interaction is indicated by the supplied CVSS vector.
Is the impact limited to file disclosure?
The available information indicates disclosure of any file readable by the PHP process. It does not indicate file modification or denial-of-service impact.