Unsafe deserialization in TwigView plugin for CakePHP
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Code execution
- Confidentiality · integrity · availability
- None · Low · None
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-502.
Summary
TwigView plugin for CakePHP (cakephp twig-view) is affected before 1.3.3 and from 2.0.0 before 2.1.2. Its unserialize filter does not restrict which classes may be deserialized, which is CWE-502. A remote attacker without privileges or user interaction can use it as a gadget for remote code execution.
Written with Claude Haiku 5.5 from the sources below · 2026-11-11
Description from the CNA
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
Remediation
Upgrade twig-view to version 1.3.3 or 2.1.2.
Written with Claude Haiku 5.5 from the sources below · 2026-11-11
- Fix · CNA twig-view (cakephp) Fixed in 1.3.3, 2.1.2
Timeline
- 2026-11-11 Threatist record created from CVE-2026-59192
- 2026-11-12 Priority changed: MEDIUM → LOW
- 2026-11-13 CISA SSVC decision points changed
References
Other 6
- https://github.com/cakephp/twig-view/security/advisories/GHSA-48qj-5wxh-m8hc
- https://github.com/cakephp/twig-view/pull/119
- https://github.com/cakephp/twig-view/pull/120
- 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
More cakephp vulnerabilities
- TI-2010-04068 The _validatePost function in libs/controller/components/security.php in CakePHP 1.3.x… CVSS 2.0HIGH 7.5
- TI-2026-82995 Cookie leakage in CakePHP HTTP client cookie domain matching CVSS 4.0MEDIUM 6.3
- TI-2026-19037 CakePHP PaginatorHelper::limitControl() vulnerable to reflected cross-site-scripting CVSS 3.1MEDIUM 5.4
- TI-2023-08901 Database Query::offset() and limit() vulnerable to SQL injection in cakephp CVSS 3.1CRITICAL 9.8
- TI-2026-54106 CakePHP: FunctionsBuilder::jsonValue() vulerable to SQL injection with PostgresDriver CVSS 4.0CRITICAL 9.2
- TI-2026-55232 CakePHP: Multiple methods in FunctionsBuilder vulnerable to SQL injection CVSS 4.0CRITICAL 9.2
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences