cakephp/twig-view · Security
Cakephp twig-view unserialize Twig filter allows arbitrary object deserialization
- GHSA ID
- GHSA-48qj-5wxh-m8hc
- CVE ID
- CVE-2026-59192
- Severity
- medium
- Published
- Updated
- CVSS v4
- 6.9 · 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
Description
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.
CWEs
- CWE-502 · Deserialization of Untrusted Data
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 ↗