Skip to main content

Latte CVE-2026-142195

| EUVDEUVD-2026-141510 LOW
Incorrect Authorization (CWE-863)
2026-12-02 VulnCheck GHSA-3h3q-fpqr-gwfg
2.3
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Access
    Gain Latte template-author access under sandbox mode
  2. Delivery
    Craft side-effecting dynamic property-name expression
  3. Exploit
    Policy check validates the allowed name
  4. Execution
    Access re-evaluates and reads forbidden property
  5. Impact
    Disclose protected property value

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

Requires Latte to be running in sandbox mode (setSandboxMode) with a SecurityPolicy that restricts properties, AND the application must allow an attacker to author or submit the template source. The attacker must craft a PropertyFetchNode or StaticPropertyFetchNode whose name is a dynamic, side-effecting expression (e.g. a post-increment index like ["visible","secret"][$i++]) that yields an allowed name when the policy check evaluates it and a forbidden name when the access re-evaluates it. Limiting factors: the attacker needs template-authoring privilege (CVSS PR:L - not anonymous/unauthenticated), the technique is non-trivial to construct (AC:H/AT:P), and impact is limited to reading forbidden property values (confidentiality only, no write or code execution). Applications that do not expose Latte sandbox mode to untrusted template authors are not exposed.

Impact

All quantitative signals point to low real-world priority. The supplied CVSS 4.0 base score is 2.3 (Low) with AV:N but AC:H, AT:P (a specific attack requirement) and PR:L - meaning exploitation needs a party already privileged enough to author/submit Latte templates, plus a deliberately crafted double-evaluated name expression. Impact is confined to VC:L (limited confidentiality) with VI:N/VA:N and no scope change (SC:N/SI:N/SA:N), so this leaks forbidden property values but does not grant code execution, write access, or denial of service. No EPSS score was provided and there is no CISA KEV listing, consistent with the vuln.today Decision label of 'monitor' (not act_now/emergency). The fix commit ships a regression test that demonstrates the technique, but the input does not confirm a weaponized standalone exploit. This is a genuine sandbox/authorization weakness rather than a high-CVSS-but-overrated issue - it is correctly rated low, and it only matters where untrusted users can write templates under Latte's sandbox mode; outside that configuration the practical risk is negligible.

Exploit ScenarioDerived

In an application that runs Latte in sandbox mode and lets untrusted or semi-trusted users author templates, a malicious template author writes a dynamic property access such as {$obj->{["visible","secret"][$i++]}} whose name expression has a side effect. Because the name is evaluated twice, the sandbox policy check sees the allowed property ('visible') while the actual fetch reads the forbidden one ('secret'), disclosing its value. The fix commit includes a regression test demonstrating this exact vector, but no confirmed standalone weaponized exploit is indicated in the input.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
Patch available 0.5% 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 template engine versions before 3.1.7 contain a sandbox bypass in which a template author can read properties the configured SecurityPolicy forbids. The flaw only matters where Latte runs in sandbox mode (setSandboxMode) with a property-restricting policy AND the attacker is permitted to author or submit template source; the attacker must also craft a dynamic, side-effecting member name that returns an allowed name during the policy check but a forbidden one during the actual access. Impact is confidentiality-only (reading forbidden property values, with no write or code execution), template-authoring privilege is required according to the assessed vector (PR:L), and no public exploit code or active exploitation is identified in the available data; quantitative signals point to low real-world priority.

RemediationAI

Upgrade Latte to 3.1.7 or later; the vendor fix commit 3c70898a0a5e5624509b7fe57753aa2b8794ed1c adds the MemberAccess trait so a dynamic member name is printed once and the same value is used for the policy check and the access, and the v3.1.7 release is published at https://github.com/nette/latte/releases/tag/v3.1.7. Applications not running Latte in sandbox mode, or whose sandbox policies are not exposed to untrusted template authors, are not exposed. Where upgrading must be staged, the practical interim control is to keep sandbox mode with property-restricting policies unavailable to template authors you do not trust, since that template-authoring privilege is precisely the prerequisite for the bypass; disabling sandbox property checks instead would not help, as it removes the restriction the bug circumvents. Review any property-restricted sandbox policy for templates of uncertain provenance as part of the upgrade.

Affected VersionsENISA

latte 0 <3.1.7

Affected Packages

euvd latte fix: 3.1.7

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 mode enforces a SecurityPolicy over which tags, filters, functions and class members templates may touch. In sandbox mode the compiler wraps member access in sandbox->prop() calls generated by the sandbox-specific PropertyFetchNode and StaticPropertyFetchNode under src/Latte/Sandbox/Nodes. Before the fix, these nodes printed the member name expression twice: once inside memberAsString() for the policy check and once again for the actual property access generated through PrintContext::objectProperty(). If the dynamic name expression has a side effect (the upstream test uses an index with a post-increment such as {["visible","secret"][$i++]}), the first evaluation can yield an allowed name that satisfies the policy while the second evaluation yields a forbidden one, so the read is performed against a member the policy never approved. The root cause is CWE-863 (incorrect authorization), i.e. the check and the use operate on different values. The vendor fix adds a MemberAccess trait that prints the name once into a temporary variable ($ʟ_name<N>) and reuses that same value for both the policy check and the access, with a regression test confirming the name is evaluated once and that a name reassigned by an assigned value cannot redirect a write.

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 2.3 LOW
CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
vuln.today AI 3.1 LOW

Needs template-author privilege (PR:L) and a specifically crafted double-evaluated dynamic name (AC:H); impact is only reading a forbidden property, so C:L and I:N/A:N.

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

DescriptionCVE.org

Latte before 3.1.7 contains a sandbox bypass vulnerability that allows template authors to read forbidden properties by abusing double-evaluated dynamic property names. Attackers can craft side-effecting name expressions in PropertyFetchNode or StaticPropertyFetchNode so the policy check sees an allowed property while access reads a forbidden one.

Threat Intelligence Overview

EPSS Score
0.5%
Top 53% exploitable
Prevalence
Medium
popular PHP/Nette template engine, but sandbox mode is a niche deployment
Data Quality
5 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 LOW
CISA KEV No
Public POC No
EPSS 0.5%
Patch available Yes
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.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
Defer
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Low
Technical Impact
Partial

Priority Score

13
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +12
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