Skip to main content

CakePHP TwigView EUVDEUVD-2026-123138

| CVE-2026-59192 MEDIUM
Deserialization of Untrusted Data (CWE-502)
2026-11-11 GitHub_M
6.9
CVSS 4.0 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify template using unserialize filter
  2. Delivery
    Submit crafted serialized PHP object
  3. Exploit
    Trigger arbitrary object instantiation
  4. Execution
    Chain magic methods via gadget
  5. Impact
    Execute 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 unserialize filter on data the attacker can control, and that a usable PHP gadget chain (a class with exploitable magic methods) is present in the loaded codebase to escalate object injection to code execution. These are significant limiters: the vulnerable filter is not exercised by a default CakePHP/TwigView install, so an app that never uses the unserialize filter - or never feeds untrusted input to it - is not exposed. The vendor states the only workaround is to not use the unserialize filter, and that updating is the fix. No authentication is implied by the CVSS vector (PR:N) and no user interaction is required (UI:N), but the practical precondition is developer use of this specific filter on untrusted input.

Impact

This is a CWE-502 deserialization flaw in the CakePHP TwigView plugin: the unserialize Twig filter called PHP's unserialize() with no allowed_classes restriction, enabling arbitrary PHP object injection and, given a suitable gadget chain, remote code execution. The signals are moderate and partly conflicting. The supplied CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N) scores 6.9 but rates only VI:L (low integrity, no confidentiality or availability impact), which understates a successful object-injection-to-RCE outcome while reflecting that impact is highly conditional on application usage. EPSS is not provided, the CVE is NOT in CISA KEV, and no weaponized public exploit is listed - only the vendor advisory, patch PRs, and a commit whose unit test (GadgetMarker::__wakeup) demonstrates object injection is possible pre-fix. The vuln.today decision label is 'this_month', consistent with a real but not emergency priority. The dominant limiter is that exploitation requires the application developer to actually use the unserialize filter on attacker-controlled input AND for a usable gadget chain to be present in loaded code - so despite the network, no-auth CVSS framing, real-world exploitability depends on non-default template design, not the default plugin installation.

Exploit ScenarioDerived

An application renders a Twig template that passes attacker-controlled input (e.g., a request parameter or cookie) through the unserialize filter. The attacker submits a crafted serialized PHP object; because no allowed_classes restriction exists, the object is instantiated and its magic methods (e.g., __wakeup/__destruct) fire, and if a gadget chain is present in the loaded codebase this escalates to remote code execution. No standalone weaponized PoC is published, though the patch's own unit test confirms object injection occurs pre-fix.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.6% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

twig-view 2.0.0, < 2.1.2
twig-view < 1.3.3

Affected Packages

euvd twig_view fix: 1.3.3, 2.1.2

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

Vendor (GitHub_M) PRIMARY 6.9 MEDIUM
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
vuln.today AI 8.1 HIGH

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.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

1
Patch available
Nov 11, 2026 - 05:31 EUVD

DescriptionCVE.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

EPSS Score
0.6%
Top 50% exploitable
Prevalence
Low
optional Twig templating plugin for CakePHP, limited and specialized adoption
Data Quality
6 sources
Confidence: High

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.6%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact· derived
Medium

Priority Score

35
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +34
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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.

CVE-2012-4399 HIGH POC
7.5 Oct 09

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

CVE-2016-4793 HIGH POC
7.5 Jan 23

The clientIp function in CakePHP 3.2.4 and earlier allows remote attackers to spoof their IP via the CLIENT-IP HTTP head

CVE-2015-8379 HIGH POC
8.8 Jan 26

CakePHP 2.x and 3.x before 3.1.5 might allow remote attackers to bypass the CSRF protection mechanism via the _method pa

CVE-2023-22727 CRITICAL
9.8 Jan 17

CakePHP is a development framework for PHP web apps. Rated critical severity (CVSS 9.8), this vulnerability is remotely

CVE-2026-79752 CRITICAL
9.2 Sep 17

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

CVE-2026-119419 CRITICAL
9.2 Oct 30

SQL injection in CakePHP 5.4.3 and earlier allows an attacker who can influence a collation name passed to the StringExp

CVE-2026-77635 CRITICAL
9.2 Aug 24

SQL injection in CakePHP's database layer allows attackers to inject arbitrary SQL when an application uses FunctionsBui

CVE-2026-119418 CRITICAL
9.2 Oct 30

SQL injection in CakePHP through 5.4.3 allows an attacker who can influence window-function query parameters to inject S

CVE-2026-77337 CRITICAL
9.1 Aug 24

Authentication bypass in the CakePHP Authentication plugin's CookieAuthenticator (versions before 2.11.2, 3.0.0-3.3.6, a

CVE-2026-77634 HIGH
8.2 Aug 24

Email header injection in CakePHP's Mailer component allows CRLF sequences embedded in custom header values to split SMT

CVE-2019-11458 HIGH
7.5 May 08

An issue was discovered in SmtpTransport in CakePHP 3.7.6. Rated high severity (CVSS 7.5), this vulnerability is remotel

CVE-2026-59191 MEDIUM
6.9 Nov 11

Arbitrary file read in the CakePHP TwigView plugin (composer package cakephp/twig-view) occurs when FileLoader::findTemp

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy