Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify app passing user input as template name
-
ExploitSupply template name beginning with '/../'
-
ExecutionBypass baseDir via flawed normalizePath empty-segment handling
-
ImpactDisclose arbitrary PHP-readable file
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK
2 techniques across 2 tactics: Discovery, Collection The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires that the application passes an attacker-controlled (or attacker-influenced) value as the template name to Latte's Engine::render(); the attacker then prefixes the name with '/../' to defeat the baseDir restriction through normalizePath()'s mishandling of empty path segments. The main limiting factor is this application-design dependency: in the typical Latte usage where template names are hardcoded or come from a fixed server-side whitelist, the flaw is not reachable, which aligns with the CVSS AC:H/AT:P metrics. Further limits are that impact is confined to reading files the PHP process can access (no write, no code execution) and that the deployment must run Latte 3.1.10 or earlier. No authentication is indicated as required by the supplied vector (PR:N). |
| Impact | This is a genuine but conditional information-disclosure flaw, not a drop-everything emergency. The CVSS 4.0 vector (AV:N/AC:H/AT:P/PR:N/UI:N) scores 8.2 and shows network reach with no privileges or user interaction required, but the AC:H and AT:P metrics signal that exploitation is not trivial or unconditional - consistent with the description's core precondition that the attacker must control the template name passed to Engine::render(). Impact is confidentiality-only (VC:H, with VI:N/VA:N): arbitrary file read limited to files readable by the PHP process, with no code execution or integrity/availability impact claimed. The vuln.today decision label is 'this_week' (not act_now/emergency). No EPSS score, no CISA KEV listing, and no confirmed proof-of-concept are present in the input, so there is no signal of active or probable near-term mass exploitation; the only references are the Latte FileLoader source lines and the VulnCheck advisory. Net: real and worth remediating within the week for apps that pass user-influenced template names, but for the common case where template names are hardcoded by developers, real-world risk is materially lower than the 8.2 base score alone suggests. Missing data to note explicitly: no fixed version is stated in the provided evidence, and no EPSS/KEV/POC signals are available to refine exploitation likelihood. |
| Exploit ScenarioDerived | An application built on Nette Latte passes a user-influenced value as the template name to Engine::render() (for example, selecting a template or theme from a request parameter). The attacker supplies a name beginning with '/../', and the flawed normalizePath() handling of empty segments lets the path escape the configured baseDir, causing Latte to load and disclose an arbitrary file readable by the PHP process (such as configuration or credential files). No public exploit is identified in the provided sources, and the AC:H/AT:P metrics indicate the attack is not effortless and depends on how the application wires template selection. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Dec 02, 2026
Path traversal in Nette Latte through 3.1.10 allows an attacker who controls the template name passed to Engine::render() to escape the configured baseDir and read files accessible to the PHP process. The flaw is conditional on application design-dynamic, attacker-influenced template names are required-so typical hardcoded or server-side-whitelisted template usage is not reachable, and the assessed vector reflects high complexity with no authentication indicated. Impact is read-only confidentiality loss (no write or code execution); no public exploit was identified at time of analysis, and the supplied priority is this_week.
RemediationAI
No fixed version is identified in the supplied references; the links point to the vulnerable FileLoader source in v3.1.10 and to the VulnCheck advisory, so confirm the patched release in that advisory before upgrading. The primary remediation is to update Nette Latte to a release later than 3.1.10 once the vendor identifies it, and to re-test any dynamic template-name paths. If an immediate upgrade is not possible, remove attacker control over the value passed to Engine::render(): use a fixed server-side allowlist or map untrusted input to predefined template identifiers, and reject template names beginning with '/../' or containing traversal segments. This can break legitimate dynamic template selection and requires application changes.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Nette Latte is a PHP templating engine; FileLoader resolves template names against a baseDir and uses normalizePath() to canonicalize paths. The advisory links the vulnerable logic in src/Latte/Loaders/FileLoader.php at v3.1.10 lines 30-46 and 71-84, where a template name beginning with '/../' is not correctly constrained and empty path segments are mishandled, producing a path traversal (CWE-22) outside baseDir. The trigger described in the supplied data is an application passing an attacker-controlled template name to Engine::render(); the code links and advisory do not describe other trigger paths. The CPE cpe:2.3:a:nette:latte:*:*:*:*:*:*:*:* is broad, while the advisory scopes affected releases to through 3.1.10. Because the loader only reads files, the described impact is disclosure of files readable by the PHP process, not modification or execution.
Know when Latte gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
Network-reachable with no privileges (PR:N), but AC:H because exploitation depends on the application routing user-controlled input into the template name; impact is confidentiality-only file read, so C:H and I:N/A:N.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
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.
Executive ViewAI
CVE-2026-142193 is a high-severity path traversal vulnerability in the Nette Latte templating engine (versions through 3.1.10) that could allow an attacker to read files accessible to the PHP process. This impacts applications that dynamically construct template names based on user input; such designs are less common but may exist in custom or legacy code. Leadership should prioritize identifying and remediating any such usage, as successful exploitation could lead to confidentiality breaches of sensitive configuration or data files.
Implement strict server-side whitelisting of template names; avoid using user-controlled input to construct template paths; enforce least privilege on the PHP process file system permissions; and conduct regular security reviews of template rendering logic.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
This affects the package latte/latte before 2.10.6. Rated critical severity (CVSS 9.8), this vulnerability is remotely e
Latte through 3.1.10 allows a low-privileged template author to escape the sandbox by supplying a string callable such a
Latte is an open source template engine for PHP. Rated medium severity (CVSS 6.1), this vulnerability is remotely exploi
Latte template engine versions before 3.1.7 contain a sandbox bypass in which a template author can read properties the
EUVD-2026-141512
GHSA-r2vx-hp9h-4gp6
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB