Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify template using unserialize filter
-
DeliverySubmit crafted serialized PHP object
-
ExploitTrigger arbitrary object instantiation
-
ExecutionChain magic methods via gadget
-
ImpactExecute code in application context
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A08:2025 - Software or Data Integrity Failures
ASVS 5.0
V1 - Encoding and Sanitization Safe deserialization, type allowlists
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires that an application template actually invokes the TwigView |
| Impact | This is a CWE-502 deserialization flaw in the CakePHP TwigView plugin: the |
| Exploit ScenarioDerived | An application renders a Twig template that passes attacker-controlled input (e.g., a request parameter or cookie) through the |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 11, 2026
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.
RemediationAI
Vendor-released patch: upgrade to 1.3.3 for the 1.x branch or 2.1.2 for the 2.x branch as described in GHSA-48qj-5wxh-m8hc. The vendor's stated workaround is to not use the unserialize filter; audit application templates and remove |unserialize usage, particularly where the input can be attacker-controlled, until the upgrade is applied. Be aware that the fix may impact backwards compatibility if templates rely on deserializing PHP objects, because the patched filter calls unserialize() with allowed_classes set to false and emits a deprecation warning, so templates that hydrate objects through this filter will no longer behave as before. The supplied advisory states that updating is the fix and gives no other workaround.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
TwigView is a CakePHP plugin that provides wrappers for common View operations and extensions exposing CakePHP functions and jasny/twig-extensions helpers. Its UtilsExtension registered a Twig unserialize filter that directly called PHP's unserialize() with no class allowlist, which is the CWE-502 root cause: PHP object injection can cause magic methods such as __wakeup or __destruct to run on attacker-chosen classes, and if the loaded codebase contains a gadget chain, that can lead to code execution. The supplied upstream fix changes the filter to call unserialize($value, ['allowed_classes' => false]) and emits a deprecation warning; the vendor notes this may break backwards compatibility for templates that rely on deserializing PHP objects. The supplied evidence does not describe any trigger beyond a template invoking the filter on attacker-controlled data, and there is no indication that a default CakePHP/TwigView installation exercises this filter automatically.
Know when Cakephp gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
Network-reachable deserialization needing no attacker privileges, but AC:H because it depends on the app using the unserialize filter on untrusted input and a viable gadget chain existing; object injection enables full RCE impact.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
1DescriptionCVE.org
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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Insecure deserialization occurs when an application converts serialized data (a stream of bytes representing an object's state) back into a living object without proper validation.
The Xml class in CakePHP 2.1.x before 2.1.5 and 2.2.x before 2.2.1 allows remote attackers to read arbitrary files via X
The clientIp function in CakePHP 3.2.4 and earlier allows remote attackers to spoof their IP via the CLIENT-IP HTTP head
CakePHP 2.x and 3.x before 3.1.5 might allow remote attackers to bypass the CSRF protection mechanism via the _method pa
CakePHP is a development framework for PHP web apps. Rated critical severity (CVSS 9.8), this vulnerability is remotely
SQL injection in the CakePHP PHP framework (versions prior to 4.5.12, 4.6.5, 5.1.9, 5.2.14, and 5.3.7) allows unauthenti
SQL injection in CakePHP 5.4.3 and earlier allows an attacker who can influence a collation name passed to the StringExp
SQL injection in CakePHP's database layer allows attackers to inject arbitrary SQL when an application uses FunctionsBui
SQL injection in CakePHP through 5.4.3 allows an attacker who can influence window-function query parameters to inject S
Authentication bypass in the CakePHP Authentication plugin's CookieAuthenticator (versions before 2.11.2, 3.0.0-3.3.6, a
Email header injection in CakePHP's Mailer component allows CRLF sequences embedded in custom header values to split SMT
An issue was discovered in SmtpTransport in CakePHP 3.7.6. Rated high severity (CVSS 7.5), this vulnerability is remotel
Arbitrary file read in the CakePHP TwigView plugin (composer package cakephp/twig-view) occurs when FileLoader::findTemp
EUVD-2026-123138
NVD
CVE.org
EPSS
GitHub
VulDB
Exploit-DB