Bug 2583228 (CVE-2026-133767) - CVE-2026-133767 twig/twig: Twig: Sandbox policy bypass via embed tag expression
Summary: CVE-2026-133767 twig/twig: Twig: Sandbox policy bypass via embed tag expression
Keywords:
Status: NEW
Alias: CVE-2026-133767
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:22 UTC by OSIDB Bzimport
Modified: 2026-11-24 13:37 UTC (History)
0 users

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


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-11-24 13:22:41 UTC
When the parent of an embed tag was an expression other than a string or a variable, the sandbox didn't see that expression. The functions, filters and tests of the expression weren't checked against the policy, and neither were its conversions to strings. A sandboxed template allowed to use embed could therefore call any function, filter or test, and any __toString() method:

{% embed 'leak_' ~ app_secret() %}{% endembed %}

Method calls and property reads were not affected, since they're checked at runtime.

The sandbox now checks the parent expression of embed like any other expression of the template.


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