{"id":"CVE-2026-59192","kind":"vulnerability","aliases":["CVE-2026-59192"],"related":[],"title":"TwigView for CakePHP: unserialize filter lets attackers run code","description":"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.","summary":"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.","severity":"medium","cvss":6.9,"epss":null,"exploited":false,"exploited_at":null,"products":[],"ecosystems":[],"tags":["cakephp","composer","package","php","twigview"],"not_affected_if":["no-unserialize-filter-use","twigview-not-installed"],"how_to_check":"- Check the installed TwigView version in `composer.lock` or with `composer show`.\n- Look for use of the `unserialize` filter in Twig templates of the application.","fix":"- Upgrade TwigView to `1.3.3` on the 1.x line.\n- Upgrade TwigView to `2.1.2` on the 2.x line.","status":"open","published_at":"2026-11-11T05:19:49+00:00","first_seen_at":"2026-11-11T05:25:39+00:00","triaged_at":"2026-11-11T05:26:42+00:00","updated_at":"2026-11-11T05:26:42+00:00","category":"package","confidence":0.6,"triage":{"at":"2026-11-11T05:26:42Z","model":"claude-haiku-5-5","output":{"fix":"- Upgrade TwigView to `1.3.3` on the 1.x line.\n- Upgrade TwigView to `2.1.2` on the 2.x line.","reach":"unknown","title":"TwigView for CakePHP: unserialize filter lets attackers run code","impact":"high","summary":"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.","audience":"developers","category":"package","nicknames":[],"who_cares":["cakephp","twigview","php","composer"],"confidence":0.6,"fix_status":"available","needs_auth":"unknown","worst_case":"Remote code execution on the server through deserialization gadget","analyst_note":"Confirm from the NVD or vendor advisory whether untrusted input reaches the unserialize filter remotely and whether authentication is required.","how_to_check":"- Check the installed TwigView version in `composer.lock` or with `composer show`.\n- Look for use of the `unserialize` filter in Twig templates of the application.","plain_action":"","product_name":"","needs_analyst":true,"not_affected_if":["twigview-not-installed","no-unserialize-filter-use"],"who_is_affected":"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.","user_interaction":"unknown","product_ecosystem":"","needs_special_setup":"yes","severity_if_unknown":"unknown"},"cost_usd":0.000744,"input_tokens":4649,"output_tokens":558,"severity_before":"medium"},"analyst_status":null,"analyst_note":null,"search":"'-2026':11A,14A '-59192':12A,15A '1.3.3':81C,113C '2.1.2':83C,115C 'abl':54B 'accept':31B 'allow':94C 'attack':7A,44B 'cakephp':3A,16B,25B,62C,73C 'class':33B,92C 'code':9A,58B,103C 'common':66C 'compos':17B 'cve':10A,13A 'data':48B 'deseri':41B,100C 'execut':56B,104C 'expos':26B,72C 'extens':70C 'filter':5A,29B,51B,86C 'function':74C 'gadget':42B,105C 'helper':77C 'issu':107C 'jasny/twig-extensions':76C 'let':6A 'may':52B 'oper':68C 'packag':18B 'patch':110C 'php':19B 'plugin':23B,60C 'prior':78C 'provid':63C 'remot':57B,102C 'remote-code-execut':101C 'restrict':89C 'run':8A 'suppli':47B 'twigview':1A,20B,22B,59C 'unseri':4A,28B,85C 'use':38B,97C 'version':80C,112C 'view':67C 'wrapper':64C","nicknames":[],"mitigations":[],"who_affected":"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.","tier":"C","verified":{},"analyst_revisit_at":null,"fix_status":"available","audience":"developers","plain_action":null,"pkeys":[],"ptokens":[],"labels":["cakephp","composer","medium","package","php","twigview"],"campaign_type":null,"search_a":"'-2026':11A,14A '-59192':12A,15A 'attack':7A 'cakephp':3A 'code':9A 'cve':10A,13A 'filter':5A 'let':6A 'run':8A 'twigview':1A 'unseri':4A","search_b":"'abl':54B 'accept':31B 'attack':44B 'cakephp':16B,25B 'class':33B 'code':58B 'compos':17B 'data':48B 'deseri':41B 'execut':56B 'expos':26B 'filter':29B,51B 'gadget':42B 'may':52B 'packag':18B 'php':19B 'plugin':23B 'remot':57B 'suppli':47B 'twigview':20B,22B 'unseri':28B 'use':38B","search_c":"'1.3.3':81C,113C '2.1.2':83C,115C 'allow':94C 'cakephp':62C,73C 'class':92C 'code':103C 'common':66C 'deseri':100C 'execut':104C 'expos':72C 'extens':70C 'filter':86C 'function':74C 'gadget':105C 'helper':77C 'issu':107C 'jasny/twig-extensions':76C 'oper':68C 'patch':110C 'plugin':60C 'prior':78C 'provid':63C 'remot':102C 'remote-code-execut':101C 'restrict':89C 'twigview':59C 'unseri':85C 'use':97C 'version':80C,112C 'view':67C 'wrapper':64C","cause_entry":null,"cause_path":null,"disclosures_checked_at":null,"first_public_at":"2026-07-03T03:02:02+00:00","kev":null,"cvss_vector":"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","cvss_by":"security-advisories@github.com","poc_count":0,"sources":[{"source":"nvd","external_id":"CVE-2026-59192","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-59192","severity":null,"published_at":"2026-11-11T05:19:49+00:00","modified_at":"2026-11-11T05:19:49+00:00","first_seen_at":"2026-11-11T05:25:39+00:00","fetched_at":"2026-11-11T05:25:39+00:00","note":null}],"documents":[{"id":122854,"url":"https://github.com/cakephp/twig-view/commit/99a59407b138a0efff0ce3896cbf67e71a9c9cd3","title":"Patch: github.com","kind":"other","source":"nvd","publisher":"vendor","text":null,"published_at":null,"relation":"fix","confidence":null,"note":"Patch: github.com"},{"id":122851,"url":"https://github.com/cakephp/twig-view/releases/tag/1.3.3","title":"Release notes: github.com","kind":"release","source":"nvd","publisher":"vendor","text":null,"published_at":null,"relation":"fix","confidence":null,"note":"Release notes: github.com"},{"id":122852,"url":"https://github.com/cakephp/twig-view/releases/tag/2.1.2","title":"Release notes: github.com","kind":"release","source":"nvd","publisher":"vendor","text":null,"published_at":null,"relation":"fix","confidence":null,"note":"Release notes: github.com"},{"id":122857,"url":"https://github.com/cakephp/twig-view/security/advisories/GHSA-48qj-5wxh-m8hc","title":"Vendor advisory: github.com","kind":"vendor","source":"nvd","publisher":"vendor","text":null,"published_at":"2026-07-03T03:02:02+00:00","relation":"advisory","confidence":null,"note":"Vendor advisory: github.com"}],"disclosures":[],"exploit_sources":[],"notice":"Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai"}