CyberRota Analysis
AI-GeneratedVersions 3.24.0 to 3.26.0 of the Twig template engine for PHP are vulnerable due to a flaw in the CoreExtension::getAttribute() method, which has the sandbox argument hardcoded to false. This allows attackers with write access to a sandboxed template to bypass property and method policy checks, potentially exposing sensitive data through public properties or getters. Developers and organizations using affected Twig versions should prioritize upgrading to version 3.26.0 to mitigate this risk.
Public Exploit Signal
A public exploit, PoC, GitHub repository or Metasploit reference was detected for this CVE.
Note: these links are listed for security research and verification purposes only.
Original NVD Description
Twig is a template language for PHP. From 3.24.0 until 3.26.0, object-destructuring assignment compiles CoreExtension::getAttribute() with the sandbox argument hardcoded to false, disabling property and method policy checks and allowing an attacker with write access to a sandboxed Twig template to read public properties or invoke public getters on objects passed to the template engine. This issue is fixed in version 3.26.0.
Related CVEs
Other vulnerabilities affecting the same vendor(s)