Twig View
Monthly
Arbitrary file read in the CakePHP TwigView plugin (composer package cakephp/twig-view) occurs when FileLoader::findTemplate() is handed un-validated, user-controlled data, allowing an attacker to break out of the configured template directory and read files the PHP process can access. Every 1.x release before 1.3.3 and every 2.x release before 2.1.2 is affected, but exploitation is conditional: the host application must forward attacker-influenced input into template resolution, such as Twig include or extends tags, so a default installation that only renders developer-defined templates is not exposed. The issue is medium severity, needs no authentication per the assessed vector (AV:N/PR:N/UI:N), and no public exploit code was identified at time of analysis.
PHP object injection in the CakePHP TwigView plugin before 1.3.3 (1.x) and 2.1.2 (2.x) allows remote, unauthenticated attackers to influence data passed to a template's unserialize filter, potentially instantiating arbitrary PHP objects and escalating to remote code execution if a viable gadget chain exists in the application's codebase. The flaw is CWE-502: the Twig unserialize filter called PHP's unserialize() without an allowed_classes restriction. No public exploit code has been identified at time of analysis and no CISA KEV entry is present; exploitation is limited to applications that actually invoke the filter on attacker-controlled input and have a usable PHP gadget chain loaded.
Arbitrary file read in the CakePHP TwigView plugin (composer package cakephp/twig-view) occurs when FileLoader::findTemplate() is handed un-validated, user-controlled data, allowing an attacker to break out of the configured template directory and read files the PHP process can access. Every 1.x release before 1.3.3 and every 2.x release before 2.1.2 is affected, but exploitation is conditional: the host application must forward attacker-influenced input into template resolution, such as Twig include or extends tags, so a default installation that only renders developer-defined templates is not exposed. The issue is medium severity, needs no authentication per the assessed vector (AV:N/PR:N/UI:N), and no public exploit code was identified at time of analysis.
PHP object injection in the CakePHP TwigView plugin before 1.3.3 (1.x) and 2.1.2 (2.x) allows remote, unauthenticated attackers to influence data passed to a template's unserialize filter, potentially instantiating arbitrary PHP objects and escalating to remote code execution if a viable gadget chain exists in the application's codebase. The flaw is CWE-502: the Twig unserialize filter called PHP's unserialize() without an allowed_classes restriction. No public exploit code has been identified at time of analysis and no CISA KEV entry is present; exploitation is limited to applications that actually invoke the filter on attacker-controlled input and have a usable PHP gadget chain loaded.