CVE-2026-48820

CakePHP: View::element() is missing a path containment check

MEDIUM
6.3
CVSS Score
Published: June 17, 2026 at 09:19 PM UTC
Updated: June 23, 2026 at 05:34 PM UTC
1 product affected across 1 vendorCakephp

Using cakephp by cakephp?

Get instant alerts when new vulnerabilities affect cakephp - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM6.3
Exploit prediction
EPSS 0.3%
SSVC
No known exploit

Description

CakePHP is a rapid development framework for PHP. In versions 4.5.11 and earlier, 4.6.0 through 4.6.3, 5.0.0 through 5.1.6, 5.2.0 through 5.2.12, and 5.3.0 through 5.3.5, View::_getElementFileName() does not check that the resolved element path is within the application/plugin view template paths. When element names are created with specifically crafted user-supplied data this weakness can be leveraged to include other PHP files on the server. Patched releases are available in 5.3.6, 5.2.13, 5.1.7, 4.6.4, and 4.5.11.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 4.5.11v < 4.6.4v < 5.1.7v < 5.2.13v < 5.3.6
Affected range stops below 4.5.11, so it looks safe — our inference, not a vendor statement
Affected range stops below 4.6.4, so it looks safe — our inference, not a vendor statement
Affected range stops below 5.1.7, so it looks safe — our inference, not a vendor statement
Affected range stops below 5.2.13, so it looks safe — our inference, not a vendor statement
Affected range stops below 5.3.6, so it looks safe — our inference, not a vendor statement

Remediation

No guide yet

No remediation guidance has been written for this CVE yet, and no fixed version or vendor advisory is recorded against it.

References (1)

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

6.3MEDIUMGitHub_M
Vector?

Quick Info

StatusDEFERRED
CWE
CWE-98CWE-22

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card