Lucene search
+L

2 matches found

Github Security Blog
Github Security Blog
added 2026/06/30 6:42 p.m.21 views

Twig: Sandbox `__toString()` policy bypass via dynamic mapping keys

Description This is a residual bypass of CVE-2026-47732 / GHSA-pr2w-4gpj-cpq4 left after the initial fix for unguarded toString calls. In 3.26.0 the sandbox visitor was extended to wrap every child node that its parent will string-coerce at runtime with CheckToStringNode, gated by the new...

9.1CVSS5.8AI score0.00234EPSS
SaveExploits0References5Affected Software1
OSV
OSV
added 2026/06/05 9:47 p.m.16 views

GHSA-PR2W-4GPJ-CPQ4 Twig: Sandbox: multiple `__toString()` policy bypasses via unguarded string coercion points

Description SandboxNodeVisitor enforces SecurityPolicy::checkMethodAllowed for implicit toString calls by wrapping selected AST nodes in CheckToStringNode. The set of wrapped nodes is incomplete, and several Twig language constructs still trigger PHP string coercion on a Stringable operand withou...

7.1CVSS5.5AI score0.0036EPSS
SaveExploits0References5
Rows per page
Query Builder