cakephp/twig-view is vulnerable to Deserialization of Untrusted Data
69
CVE Score
Medium
Deserialization of Untrusted Data
The unserialize Twig filter in the twig-view plugin deserializes input without restricting which PHP classes may be instantiated. When a template applies this filter to attacker-controlled data, the deserialization can be abused as a remote-code-execution gadget through crafted serialized objects. This lets an attacker trigger unintended object instantiation and magic methods while a view is rendered. The fix disables object instantiation by passing ['allowed_classes' => false] to unserialize and deprecates the serialize and unserialize filters.
Upgrade the cakephp/twig-view library to the patch version.
You are affected if you are using a version that falls within the vulnerable range and your templates apply the unserialize filter to untrusted data.
1.0.0 - 1.3.2
Fixed in 1.3.32.0.0 - 2.1.1
Fixed in 2.1.2cakephp/twig-view is vulnerable to Deserialization of Untrusted Data in versions 1.0.0 - 1.3.2 and 2.0.0 - 2.1.1.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.