CVE-2026-48820
Received
Received - Intake
Path Traversal in CakePHP Framework
Publication date: 2026-06-17
Last updated on: 2026-06-17
Assigner: GitHub, Inc.
Description
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.
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| cakephp | cakephp | 4.5.11 |
| cakephp | cakephp | From 4.6.0 (inc) to 4.6.3 (inc) |
| cakephp | cakephp | From 5.0.0 (inc) to 5.1.6 (inc) |
| cakephp | cakephp | From 5.2.0 (inc) to 5.2.12 (inc) |
| cakephp | cakephp | From 5.3.0 (inc) to 5.3.5 (inc) |
| cakephp | cakephp | 5.3.6 |
| cakephp | cakephp | 5.2.13 |
| cakephp | cakephp | 5.1.7 |
| cakephp | cakephp | 4.6.4 |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-22 | The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory. |
| CWE-98 | The PHP application receives input from an upstream component, but it does not restrict or incorrectly restricts the input before its usage in "require," "include," or similar functions. |