Bug 2533279 - CVE-2026-46636 php-twig: Twig: Sandbox bypass allows unauthorized method calls [fedora-all]
Summary: CVE-2026-46636 php-twig: Twig: Sandbox bypass allows unauthorized method call...
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: php-twig
Version: rawhide
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
Assignee: Orphan Owner
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: {"flaws": ["1af30bc9-485b-48ff-beb7-0...
Depends On:
Blocks: CVE-2026-46636
TreeView+ depends on / blocked
 
Reported: 2026-09-14 18:26 UTC by Vladimir Vasilev
Modified: 2026-09-14 18:26 UTC (History)
2 users (show)

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


Attachments (Terms of Use)

Description Vladimir Vasilev 2026-09-14 18:26:36 UTC
Disclaimer: Community trackers are created by Red Hat Product Security team on a best effort basis. Package maintainers are required to ascertain if the flaw indeed affects their package, before starting the update process.

Twig is a template language for PHP. From version 1.0.0 to before version 3.27.0, SecurityPolicy::checkMethodAllowed() unconditionally whitelists all method calls on instances of Twig\Markup. Twig\Markup is not final, so subclasses inherit the bypass. An application that passes an object of a Markup-derived class into a sandboxed template (typically to mark a chunk of HTML as safe) inadvertently exposes every public method of that subclass to template authors, regardless of the configured allowedMethods list. This issue has been patched in version 3.27.0.


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