Improper access control in Twig - CVE-2024-51754
Published: November 6, 2024 / Updated: May 20, 2026
Twig
Detailed vulnerability description
The vulnerability allows a remote user to disclose sensitive information.
The vulnerability exists due to improper access control in the sandbox when processing objects in an array or an argument list. A remote privileged user can place an object in an array or argument list to disclose sensitive information.
The issue occurs when __toString() is invoked even though that method is not allowed by the security policy.