Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify app passing user input to template loader
-
ExploitCraft path-traversal filename parameter
-
ExecutionSubmit request to include/extends resolution
-
ImpactRead arbitrary file contents off server
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK
2 techniques across 2 tactics: Discovery, Collection The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires the host application to supply un-validated, user-controlled data to FileLoader::findTemplate() - in practice, passing attacker-influenced input into Twig 'include' or 'extends' tags that resolve template paths. The flaw is therefore NOT triggerable against a default TwigView installation that only renders developer-defined templates; it depends on an insecure application coding pattern. The vendor's only complete fix is upgrading to 1.3.3 (1.x branch) or 2.1.2 (2.x branch); the stated workaround is to not supply user-controlled data to 'include' and 'extends' tags. Limiting factors: the application must forward untrusted input into template resolution, and impact is confined to file read (no write/code execution is claimed). |
| Impact | This is a medium-severity arbitrary file read (CWE-22 path traversal) in the CakePHP TwigView plugin, and the signals point to a real-but-conditional issue rather than a drop-everything emergency. The vendor CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N) with a 6.9 score indicates network-reachable, low-complexity, unauthenticated exploitation, but the GHSA advisory makes clear the flaw only manifests 'if FileLoader::findTemplate() is supplied un-validated user controlled data' - i.e., it requires the host application to pass attacker-influenced input into Twig include/extends template resolution, which is an insecure-usage condition, not a default state. The vuln.today priority is 'this_month' (not act_now/emergency), and there is no CISA KEV listing and no EPSS score in the provided data, so there is no evidence of active or widespread exploitation. No exploit code is referenced - only the advisory and release notes - so this is not a case of a weaponized public PoC. Net: a legitimate patch-this-cycle issue for teams running TwigView that pass user data into template names, but the real-world risk is gated by application-level coding patterns rather than being universally exploitable against default installs. Note the vendor rated confidentiality as VC:L whereas 'arbitrary files can be read' arguably warrants higher confidentiality impact - see assessed vector. |
| Exploit ScenarioDerived | An application using TwigView passes user-controlled input (e.g., a request parameter) into a Twig include/extends tag or directly into FileLoader::findTemplate(). A remote attacker supplies a crafted path-traversal value to read arbitrary files on the server, such as configuration files or credentials outside the template directory. No public exploit code is referenced; exploitation requires the application to insecurely forward user input into template resolution. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 11, 2026
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.
RemediationAI
Upgrade to TwigView 1.3.3 on the 1.x branch or 2.1.2 on the 2.x branch; these are the vendor-released fixed versions and the vendor describes upgrading as the complete fix, with the 1.x fix delivered as a backport in pull request 120 (https://github.com/cakephp/twig-view/releases/tag/1.3.3, https://github.com/cakephp/twig-view/releases/tag/2.1.2). The vendor's stated workaround for installations that cannot upgrade immediately is to not supply user-controlled data to the include and extends tags, which means auditing application code for template names derived from request parameters, headers, database content or other untrusted sources and replacing them with a fixed allowlist of developer-defined template identifiers; the trade-off is that any feature relying on user-selected templates or layouts (for example CMS-style theme or partial selection) will stop working or must be reimplemented against a strict allowlist. Because the flaw is only reachable through the host application's own template-resolution path, an allowlist of permitted template names in the calling code removes the exposure even on a vulnerable plugin version, but it must cover every call path that can reach FileLoader::findTemplate().
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 view-layer plugin that wraps common View operations and exposes CakePHP functions plus jasny/twig-extensions helpers to the Twig templating engine; the CPE cpe:2.3:a:cakephp:twig-view:*:*:*:*:*:*:*:* confirms the affected component is the plugin itself rather than CakePHP core or Twig upstream. FileLoader is the component that maps a template name to a concrete file on disk for the Twig environment, and the vendor rates the weakness as CWE-22 (Improper Limitation of a Pathname to a Restricted Directory, i.e. path traversal): when the template identifier passed to FileLoader::findTemplate() is not validated, it can resolve to a path outside the intended template root and the contents are returned as rendered template output or exposed through error output. The practical entry points are the Twig include and extends tags, which accept template names, so any application that lets user input reach those tags inherits the arbitrary file read. The GitHub Security Advisory GHSA-hq9r-72jq-2pxp documents the flaw and the two fixed branches; the exact source change is contained in the 2.1.2 release and in the 1.x backport pull request 120, but the diff-level root cause (which normalization or containment check was added) is not described in the available sources. There is no code execution or file write component claimed; impact is disclosure of files readable by the web server user.
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:L/VI:N/VA:N/SC:N/SI:N/SA:N
Network-reachable, no auth on the flaw itself (PR:N), and arbitrary file read warrants C:H; no integrity or availability impact, and real-world reach is gated by insecure app usage rather than CVSS complexity.
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, if FileLoader::findTemplate() is supplied un-validated user controlled data, arbitrary files can be read. 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
Path traversal exploits occur when applications use user-controlled input to construct file system paths 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
PHP object injection in the CakePHP TwigView plugin before 1.3.3 (1.x) and 2.1.2 (2.x) allows remote, unauthenticated at
EUVD-2026-123139
NVD
CVE.org
EPSS
GitHub
VulDB
Exploit-DB