AgentbeamBeta
Open-source package vulnerability · Composer (PHP)

CVE-2026-59192: Cakephp twig-view unserialize Twig filter allows arbitrary object deserialization

mediumCVSS 4.0 6.9GHSA-48qj-5wxh-m8hc

Impact The unserialize filter has no restriction on which classes are allowed. This can be used as a deserialization remote-code-execution gadget. Patches 1.3.3 and 2.1.2 contain a fix for this issue. The fix may impact backwards compatibility if you are relying on deserializing PHP objects in your templates. Workarounds Don't use the unserialize filter.

Published Nov 24, 2026

Affected packages

cakephp/twig-view

Ecosystem
Composer (PHP)
Affected
< 1.3.3
Fixed in
1.3.3
Check
composer show cakephp/twig-view

cakephp/twig-view

Ecosystem
Composer (PHP)
Affected
>= 2.0.0, < 2.1.2
Fixed in
2.1.2
Check
composer show cakephp/twig-view

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

Impact

The unserialize filter has no restriction on which classes are allowed. This can be used as a deserialization remote-code-execution gadget.

Patches

1.3.3 and 2.1.2 contain a fix for this issue. The fix may impact backwards compatibility if you are relying on deserializing PHP objects in your templates.

Workarounds

Don't use the unserialize filter.

Credited to edorian.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology

More Composer (PHP) vulnerabilities

All Composer (PHP) entries