Intel

AIKIDO-2024-10430

twig/twig is vulnerable to Exposed Dangerous Method or Function

Exposed Dangerous Method or FunctionCVE-2024-51754 Published Nov 8, 2024

21

Low Risk

This Affects:

phptwig/twig
1.38.0 - 3.14.0
Fixed in 3.14.1
Are you affected? Scan for Free

TL;DR

Affected versions of the package may expose restricted functions due to improper sandboxing. In sandbox mode, an attacker could exploit a vulnerability that allows calling the toString() method on an object, even if the __toString() method is restricted by the security policy. This issue could potentially lead to unauthorized access to sensitive data or allow the execution of malicious code, depending on what the toString() method reveals about the object or its internal state.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

twig/twig is vulnerable to Exposed Dangerous Method or Function in versions 1.38.0 - 3.14.0.

How to fix this

Upgrade the twig/twig library to the patch version.