{"id":"GHSA-48qj-5wxh-m8hc","summary":"Cakephp twig-view unserialize Twig filter allows arbitrary object deserialization","details":"### Impact\nThe `unserialize` filter has no restriction on which classes are allowed. This can be used as a deserialization remote-code-execution gadget.\n\n### Patches\n1.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.\n\n### Workarounds\nDon't use the `unserialize` filter.","aliases":["CVE-2026-59192"],"modified":"2026-11-24T18:00:04.190752283Z","published":"2026-11-24T17:42:51Z","database_specific":{"nvd_published_at":"2026-11-11T05:19:49Z","cwe_ids":["CWE-502"],"severity":"MODERATE","github_reviewed":true,"github_reviewed_at":"2026-11-24T17:42:51Z"},"references":[{"type":"WEB","url":"https://github.com/cakephp/twig-view/security/advisories/GHSA-48qj-5wxh-m8hc"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-59192"},{"type":"WEB","url":"https://github.com/cakephp/twig-view/pull/119"},{"type":"WEB","url":"https://github.com/cakephp/twig-view/pull/120"},{"type":"WEB","url":"https://github.com/cakephp/twig-view/commit/65f5035ee65e76925242fdca2dc2bb0d732b6c1d"},{"type":"WEB","url":"https://github.com/cakephp/twig-view/commit/99a59407b138a0efff0ce3896cbf67e71a9c9cd3"},{"type":"PACKAGE","url":"https://github.com/cakephp/twig-view"},{"type":"WEB","url":"https://github.com/cakephp/twig-view/releases/tag/1.3.3"},{"type":"WEB","url":"https://github.com/cakephp/twig-view/releases/tag/2.1.2"}],"affected":[{"package":{"name":"cakephp/twig-view","ecosystem":"Packagist","purl":"pkg:composer/cakephp/twig-view"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.3.3"}]}],"versions":["1.0.0","1.0.0-RC1","1.0.0-RC2","1.0.0-beta1","1.0.0-beta2","1.0.1","1.0.2","1.1.0","1.1.1","1.2.0","1.3.0","1.3.1","1.3.2"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/11/GHSA-48qj-5wxh-m8hc/GHSA-48qj-5wxh-m8hc.json"}},{"package":{"name":"cakephp/twig-view","ecosystem":"Packagist","purl":"pkg:composer/cakephp/twig-view"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.0.0"},{"fixed":"2.1.2"}]}],"versions":["2.0.0","2.0.1","2.0.2","2.0.3","2.1.0","2.1.1"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/11/GHSA-48qj-5wxh-m8hc/GHSA-48qj-5wxh-m8hc.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"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"}]}