Bug 2500718 (CVE-2026-47732) - CVE-2026-47732 twig/twig: Twig: Security policy bypass leads to information disclosure
Summary: CVE-2026-47732 twig/twig: Twig: Security policy bypass leads to information d...
Keywords:
Status: NEW
Alias: CVE-2026-47732
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 2500882 2500886
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-07-14 22:02 UTC by OSIDB Bzimport
Modified: 2026-07-15 11:42 UTC (History)
0 users

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


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-07-14 22:02:28 UTC
Twig is a template language for PHP. Prior to 3.26.0, several Twig language constructs trigger PHP string coercion on a Stringable operand without consulting SecurityPolicy::checkMethodAllowed(), allowing a sandboxed template author to invoke __toString() on objects reachable in the render context through conditional expressions, comparison operators, tests, template-loading tags, dynamic attribute names, spread arguments, the do tag, and the .. range operator. This issue is fixed in version 3.26.0.


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