Bug 2583234 (CVE-2026-133764) - CVE-2026-133764 twig/twig: Twig: Sandbox bypass via unvalidated test inputs
Summary: CVE-2026-133764 twig/twig: Twig: Sandbox bypass via unvalidated test inputs
Keywords:
Status: NEW
Alias: CVE-2026-133764
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-11-24 13:23 UTC by OSIDB Bzimport
Modified: 2026-11-24 13:41 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-11-24 13:23:51 UTC
The sandbox checks that a template may call toString() on an object before converting it to a string. It didn't check the input of tests. The PHP callable of a test may convert this input to a string, for example when its parameter is typed as string. PHP then calls toString() on an object without the sandbox checking it first:

{{ obj is upperish }}

Applications are affected when they register such a test and allow it in the sandbox. No built-in test is affected.

The sandbox now checks the input of tests like the input of filters. The built-in tests that never convert their input to a string still skip the check.


Note You need to log in before you can comment on or make changes to this bug.