CVE-2026-59192: Cakephp twig-view unserialize Twig filter allows arbitrary object deserialization
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
- https://github.com/cakephp/twig-view/security/advisories/GHSA-48qj-5wxh-m8hc
- https://nvd.nist.gov/vuln/detail/CVE-2026-59192
- https://github.com/cakephp/twig-view/pull/119
- https://github.com/cakephp/twig-view/pull/120
- https://github.com/cakephp/twig-view/commit/65f5035ee65e76925242fdca2dc2bb0d732b6c1d
- https://github.com/cakephp/twig-view/commit/99a59407b138a0efff0ce3896cbf67e71a9c9cd3
- https://github.com/cakephp/twig-view/releases/tag/1.3.3
- https://github.com/cakephp/twig-view/releases/tag/2.1.2
- https://github.com/advisories/GHSA-48qj-5wxh-m8hc
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
