Skip to main content

Latte EUVDEUVD-2026-141511

| CVE-2026-142194 HIGH
Incorrect Authorization (CWE-863)
2026-12-02 VulnCheck GHSA-mwcx-f3mq-4h73
7.7
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Access
    Gain template-authoring access
  2. Delivery
    Submit Latte template using |map or |filter
  3. Exploit
    Pass 'system' as string callable
  4. Execution
    Bypass RuntimeChecker allowFunctions check
  5. Impact
    Execute 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.

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

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

Alert me

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

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

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

Vendor (VulnCheck) PRIMARY 7.7 HIGH
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
vuln.today AI 8.8 HIGH

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).

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/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
Low
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.6%
Top 48% exploitable
Prevalence
Medium
popular PHP templating engine in the Nette ecosystem, moderate deployment footprint
Data Quality
3 sources
Confidence: Low

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.6%
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· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact
High

Priority Score

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

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