Bug 2583238 (CVE-2026-133763) - CVE-2026-133763 twig/twig: Twig: Sandbox bypass via unchecked template test expressions
Summary: CVE-2026-133763 twig/twig: Twig: Sandbox bypass via unchecked template test e...
Keywords:
Status: NEW
Alias: CVE-2026-133763
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-11-24 13:24 UTC by OSIDB Bzimport
Modified: 2026-11-24 13:46 UTC (History)
0 users

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


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-11-24 13:24:27 UTC
The sandbox checks that a template may call toString() on an object before converting it to a string. For an object, the is true test evaluates to the object itself, and that result wasn't checked. A sandboxed template could therefore print an object through a denied toString() method:

{{ obj is true }}

The same applies when the result is concatenated or passed to a filter. No tag needs to be allowed. A test in a boolean context, like {% if obj is true %}, isn't affected, since it doesn't convert the object to a string.

The sandbox now checks the result of tests like the result of filters and functions.


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