# CVE-2026-142193: Nette Latte through 3.1.10 Path Traversal via FileLoader baseDir Bypass

Source: https://aplosec.si/cve/CVE-2026-142193/

[AploSec](https://aplosec.si/) / [Disclosures](https://aplosec.si/disclosures/) / CVE-2026-142193

High 8.2 · Reported · No fix listed · CWE-22 · Packagist

# Nette Latte through 3.1.10 Path Traversal via FileLoader baseDir Bypass

CVE-2026-142193 · published 2026-12-02

In plain words: this type of bug lets someone read or write files outside the folder they should be limited to (path traversal). No fixed release is listed yet.

## Summary

CVE-2026-142193 affects Latte (Packagist) <= 3.1.10: Path Traversal via FileLoader baseDir Bypass (CWE-22). No fixed release is listed. CVSS 4.0 base score 8.2 (High), assigned by VulnCheck. Published 2026-12-02 by VulnCheck. Credit: Zachariah Mithani (AploSec).

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.

## Evidence

Reported to the maintainer. The public advisory and references below describe the evidence and preconditions; reporting status alone does not establish independent reproduction.

## Remediation

No fixed release is listed in the advisory. Check the references for upstream status.

## References

- [VulnCheck advisoryhttps://www.vulncheck.com/advisories/nette-latte-through-3.1.10-path-traversal-via-fileloader-basedir-bypass](https://www.vulncheck.com/advisories/nette-latte-through-3.1.10-path-traversal-via-fileloader-basedir-bypass)

- [Vulnerable codehttps://github.com/nette/latte/blob/v3.1.10/src/Latte/Loaders/FileLoader.php#L30-L46](https://github.com/nette/latte/blob/v3.1.10/src/Latte/Loaders/FileLoader.php#L30-L46)

- [Vulnerable codehttps://github.com/nette/latte/blob/v3.1.10/src/Latte/Loaders/FileLoader.php#L71-L84](https://github.com/nette/latte/blob/v3.1.10/src/Latte/Loaders/FileLoader.php#L71-L84)

- [CVE recordhttps://www.cve.org/CVERecord?id=CVE-2026-142193](https://www.cve.org/CVERecord?id=CVE-2026-142193)

**Severity:** High 8.2 CVSS 4.0, scored by VulnCheck in the [CVE record](https://www.cve.org/CVERecord?id=CVE-2026-142193)

**Package:** Latte

**Ecosystem:** Packagist

**Affected:** <= 3.1.10

**Fixed:** None

**Weakness:** CWE-22

**CNA:** VulnCheck

**Credit:** Zachariah Mithani (AploSec) finder
