Skip to main content

CakePHP TwigView EUVDEUVD-2026-123139

| CVE-2026-59191 MEDIUM
Path Traversal (CWE-22)
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 app passing user input to template loader
  2. Exploit
    Craft path-traversal filename parameter
  3. Execution
    Submit request to include/extends resolution
  4. Impact
    Read 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.

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

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

Alert me

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

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

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

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.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/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
Low
Vulnerable system: Integrity
None
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, 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

EPSS Score
0.5%
Top 58% exploitable
Prevalence
Low
optional Twig view plugin for the niche CakePHP PHP framework
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.5%
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

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

Attack Technique

Path traversal exploits occur when applications use user-controlled input to construct file system paths 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-59192 MEDIUM
6.9 Nov 11

PHP object injection in the CakePHP TwigView plugin before 1.3.3 (1.x) and 2.1.2 (2.x) allows remote, unauthenticated at

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