CyberRota Analysis
AI-GeneratedTwig versions prior to 3.26.0 are vulnerable due to improper handling of single quotes in template names, which allows attackers to inject arbitrary PHP expressions into the compiled cache file. This critical vulnerability could lead to remote code execution, posing significant risks to applications using affected versions. Developers and organizations utilizing Twig for PHP templating should prioritize upgrading to version 3.26.0 to mitigate this severe threat.
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. Prior to 3.26.0, Compiler::string() does not escape single quotes when a template name from a {% use %} tag is placed inside a PHP single-quoted string literal, allowing a crafted template name to terminate the string and inject arbitrary PHP expressions into the compiled cache file. This issue is fixed in version 3.26.0.
Related CVEs
Other vulnerabilities affecting the same vendor(s)