# CVE-2026-48820: CakePHP: View::element() is missing a path containment check

- Severity: Medium 6.3 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.37%, higher than 23% of CVEs (2026-11-30)
- Published: 2026-06-17T21:19:44.238Z
- Modified: 2026-09-10T03:50:50.960Z
- Also known as: GHSA-wpvj-hjcr-h3p2
- Weaknesses: CWE-22, CWE-98
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- cakephp cakephp: >= 5.3.0, < 5.3.6; >= 5.2.0, < 5.2.13; >= 5.0.0, < 5.1.7; >= 4.6.0, < 4.6.4; < 4.5.11
- cakephp/cakephp (Packagist): from 5.3.0 before 5.3.6; from 5.2.0 before 5.2.13; from 5.0.0 before 5.1.7; from 4.6.0 before 4.6.4; before 4.5.11

## Every score

- GitHub_M: CVSS:4.0 6.3 Medium `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`
- GitHub: CVSS:4.0 Medium `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`

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

## Sources

- CVE List: [CVE-2026-48820](https://www.cve.org/CVERecord?id=CVE-2026-48820), CVE Terms of Use, modified 2026-06-18
- GitHub Advisory Database: [GHSA-wpvj-hjcr-h3p2](https://github.com/advisories/GHSA-wpvj-hjcr-h3p2), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-48820](https://nvd.nist.gov/vuln/detail/CVE-2026-48820), Public domain, modified 2026-06-23

---

Page: https://cve.day/CVE-2026-48820 · Whole record: https://cve.day/CVE-2026-48820.json · Rebuilt by cve.day 2026-11-25T22:59:25.004Z
