Skip to main content

Nette Latte CVE-2026-142193

| EUVDEUVD-2026-141512 HIGH
Path Traversal (CWE-22)
2026-12-02 VulnCheck GHSA-r2vx-hp9h-4gp6
8.2
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify app passing user input as template name
  2. Exploit
    Supply template name beginning with '/../'
  3. Execution
    Bypass baseDir via flawed normalizePath empty-segment handling
  4. Impact
    Disclose 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.8% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

latte 0 ≤3.1.10

Affected Packages

euvd latte no fix

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

Vendor (VulnCheck) PRIMARY 8.2 HIGH
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
vuln.today AI 5.9 MEDIUM

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.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
4.0 AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
High
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

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

Why It Matters

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.

Business Impact: Medium
Compensating Controls

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

EPSS Score
0.8%
Top 41% exploitable
Prevalence
Medium
popular PHP templating engine in the Nette ecosystem, common but not universal
Data Quality
4 sources
Confidence: Medium

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.8%
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
Medium
Technical Impact
Partial

Priority Score

42
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +41
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy