CVE-2026-142194: Latte through 3.1.10 Sandbox Bypass via map and filter Filters
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.
Affected Software
Event History
Frequently Asked Questions
Who is exposed to this issue?
Applications using Latte through 3.1.10 are exposed when untrusted or insufficiently trusted users can author templates that are processed under the Latte sandbox.
What does an attacker need to exploit it?
An attacker needs the ability to supply a template containing a |map or |filter invocation with a string callable. They can provide a PHP function name such as system, which can result in operating-system command execution with the web application's privileges.
Is exploitation limited to information disclosure or template manipulation?
No. The issue can permit arbitrary PHP function calls and operating-system command execution, affecting confidentiality, integrity, and availability.