CVE-2026-59192 · Package
NO FIX YET · SEE WHAT TO DO
The TwigView plugin for CakePHP exposes an unserialize filter that accepts any class, so it can be used as a deserialization gadget. An attacker who can supply data to that filter may be able to execute remote code.
first public Jul 3, 2026 · 1 source
Could this affect your app?
Free first check from your website. Connect your repo for the full answer.
Applications that use the TwigView plugin in CakePHP and pass untrusted input into the unserialize filter in Twig templates. Applications that do not use TwigView, or that never feed user-controlled data to that filter, are less exposed.
Not affected if no-unserialize-filter-use, twigview-not-installed
Who cares cakephp, composer, php, twigview
composer.lock or with composer show.unserialize filter in Twig templates of the application.1.3.3 on the 1.x line.2.1.2 on the 2.x line.TwigView plugin for CakePHP provides wrappers for common View operations and extensions that expose CakePHP functions and jasny/twig-extensions helpers. Prior to versions 1.3.3 and 2.1.2, the unserialize filter has no restriction on which classes are allowed. This can used as a deserialization remote-code-execution gadget. This issue has been patched in versions 1.3.3 and 2.1.2.
Check it with your coding agent
It reads this page and tells you if your code is affected.
Are you affected?
Ask from here. InfraStack checks the affected versions against your stack and answers in your inbox.
InfraStack checks the affected versions against your stack and answers in Slack, with the evidence and the fix.
This page as .md · .json · CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
NVD data is provided by NIST and is public domain. Posts quoted belong to their authors.