Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessGain template-authoring access
-
DeliverySubmit Latte template using |map or |filter
-
ExploitPass 'system' as string callable
-
ExecutionBypass RuntimeChecker allowFunctions check
-
ImpactExecute OS commands as web app
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Authorization logic validation
MITRE ATT&CK
1 technique across 1 tactic: Privilege Escalation The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires two concrete conditions: (1) the application must use Latte's sandbox (Latte\Sandbox / RuntimeChecker) to render templates it does not fully trust, and (2) the attacker must be able to author or supply template content reaching the |map or |filter filters. Given those, the attacker supplies a dangerous function name (e.g. 'system') as a string callable, which RuntimeChecker::args() does not validate against allowFunctions(). Limiting factors that reduce real-world exposure: the sandbox feature must actually be in use for untrusted authors (a specific, less-common deployment mode - applications that only render trusted templates gain no new risk), and the attacker needs the authorized low-privilege template-authoring role (PR:L). All versions through 3.1.10 are affected; no special platform requirement beyond a PHP deployment of Latte. |
| Impact | This is a genuine but conditional priority. The input CVSS 4.0 base score is 7.7 (High) with AV:N/PR:L and full VC/VI/VA:H, reflecting that successful exploitation yields OS command execution. However, the real-world gate is captured by PR:L: the flaw only matters where an application uses Latte's sandbox specifically to render templates authored by lower-trust users, and the attacker already holds that template-authoring position. In deployments where template authors are fully trusted (no sandbox), the sandbox bypass grants nothing new. The input marks AC:H/AT:P, yet the described mechanism - passing a string like 'system' as a callable to |map or |filter - is simple once template authoring is available; the practical difficulty is the relatively uncommon sandbox-with-untrusted-authors configuration, not attack complexity. Decision label is 'this_week' (not act_now/emergency). No EPSS score, no CISA KEV listing, and no confirmed public working exploit were provided, so there is no signal of active or widespread exploitation; this is a credible vendor-reported (VulnCheck) authorization flaw that is high-severity for the subset of Latte deployments relying on the sandbox and largely moot elsewhere. Missing EPSS and KEV data mean exploitation likelihood cannot be quantified from the inputs. |
| Exploit ScenarioDerived | In an application that uses Latte's sandbox mode to render user-supplied templates, a low-privileged but authorized template author writes a template that invokes the |map or |filter filter with a string such as 'system' as the callable. RuntimeChecker::args() fails to validate that string callable against allowFunctions(), so the sandbox restriction is bypassed and arbitrary PHP functions - including OS command execution - run with the web application's privileges. No confirmed working public exploit was provided, but the VulnCheck advisory documents the exact vulnerable code path. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Dec 02, 2026
Latte through 3.1.10 allows a low-privileged template author to escape the sandbox by supplying a string callable such as system to the |map or |filter filter, resulting in arbitrary PHP function and OS command execution with web application privileges. Exploitation is conditional: the application must render templates from untrusted authors through Latte's sandbox, and the attacker must control template content reaching those filters. No CISA KEV entry or public exploit code is identified at time of analysis, and the available references are code and advisory links to the affected RuntimeChecker and Filters paths.
RemediationAI
No vendor-released fixed version is identified in the supplied references; the GitHub links point to vulnerable v3.1.10 code lines rather than a patched release. Until a fixed release is available, reduce exposure by ensuring Latte's sandbox is not used to render templates authored by untrusted users, or by preventing untrusted template content from reaching the |map and |filter filters; both remove the vulnerable callable path but give up the sandbox's intended delegated-authoring use case. Restricting the template-authoring role to trusted users also removes the PR:L precondition, at the cost of limiting who can edit templates. Consult the VulnCheck advisory at https://www.vulncheck.com/advisories/latte-through-3.1.10-sandbox-bypass-via-map-and-filter-filters for updates.
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
Latte is a PHP templating engine whose sandbox uses RuntimeChecker to restrict which PHP functions templates may invoke. In versions through 3.1.10, RuntimeChecker::args() validates arguments but does not check string callables against allowFunctions(), so the |map and |filter filters can invoke an arbitrary function name. This is CWE-863 (Incorrect Authorization): the sandbox's allow-list enforcement is incomplete at the callable boundary. The CPE cpe:2.3:a:nette:latte:*:*:*:*:*:*:*:* identifies Nette Latte, and the cited lines in src/Latte/Sandbox/RuntimeChecker.php and src/Latte/Essential/Filters.php show the affected code paths. The trigger is specifically the sandboxed |map/|filter path with attacker-controlled string callables; the supplied evidence does not identify other Latte rendering modes as affected.
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:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Requires an authorized template-authoring role in a sandbox-enabled deployment (PR:L); the string-callable bypass is simple to trigger (AC:L) and yields OS command execution (C/I/A:H).
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
Latte through 3.1.10 contains a sandbox bypass vulnerability that allows template authors to call arbitrary PHP functions by passing string callables to the |map and |filter filters. Attackers can supply a function name like system as a callable, which RuntimeChecker::args() does not check against allowFunctions(), to execute operating system commands with web application privileges.
Executive ViewAI
CVE-2026-142194 is a high-severity sandbox escape in Latte (up to 3.1.10) that lets low-privileged template authors execute arbitrary PHP functions and OS commands with web application privileges. Organizations using Latte's sandbox to render templates from untrusted authors are exposed, which could lead to full server compromise, data theft, or lateral movement. Leadership should prioritize this if external or low-trust users can supply template content.
No vendor-released patch identified at time of analysis. Interim mitigations: restrict template authoring to trusted users, disable or block the |map and |filter filters for untrusted templates, enforce strict input validation on template content, run the application with minimal privileges, and monitor for anomalous PHP function calls or OS commands.
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
This affects the package latte/latte before 2.10.6. Rated critical severity (CVSS 9.8), this vulnerability is remotely e
Path traversal in Nette Latte through 3.1.10 allows an attacker who controls the template name passed to Engine::render(
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-141511
GHSA-mwcx-f3mq-4h73
NVD
CVE.org
EPSS
Exploit-DB