CVE-2026-48820
MEDIUM 6.3CVSS 4.0CakePHP: View::element() is missing a path containment check
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.
- Published
- 17 Jun 2026
- Last modified
- 10 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Deferred
- Weakness
- CWE-22
- Also known as
- GHSA-wpvj-hjcr-h3p2
- Sources
- NVDJSONOSV GHSA-wpvj-hjcr-h3p2JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 4.0 | MEDIUM 6.3 | CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | Packagist | cakephp/cakephp | >= 5.3.0, < 5.3.6 | 5.3.6 |
| OSV | Packagist | cakephp/cakephp | >= 5.2.0, < 5.2.13 | 5.2.13 |
| OSV | Packagist | cakephp/cakephp | >= 5.0.0, < 5.1.7 | 5.1.7 |
| OSV | Packagist | cakephp/cakephp | >= 4.6.0, < 4.6.4 | 4.6.4 |
| OSV | Packagist | cakephp/cakephp | < 4.5.11 | 4.5.11 |
References
- https://github.com/cakephp/cakephp/security/advisories/GHSA-wpvj-hjcr-h3p2 · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-48820 · ADVISORY
- https://github.com/cakephp/cakephp · PACKAGE
History
- 25 Nov 2026 21:03 UTC · NVD: first stored (published 17 Jun 2026)
- 25 Nov 2026 20:15 UTC · OSV: first stored (published 26 Jun 2026)