Twig
- ~2.16
- ~3.9.0, < 3.26.0
A sandbox bypass vulnerability has been identified in Twig versions 2.16.x and 3.9.0 prior to 3.26.0. This vulnerability arises when using a SourcePolicyInterface, allowing attackers with template rendering capabilities to exploit callback-accepting filters such as sort, filter, map, and reduce. The issue stems from a runtime check that fails to reference the current template source, enabling the bypass of sandbox restrictions and the execution of arbitrary code under certain conditions.
Exploitation of this vulnerability allows for a sandbox bypass, enabling the execution of arbitrary code in environments where the sandbox is enforced through a source policy.
Users can upgrade to Twig version 3.26.0 to address this vulnerability.
Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.