medium

CVE-2026-48820

Packagist · cakephp/cakephp

Summary

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

Severity
medium
EPSS
0.3% (p17)
CWE
CWE-22
Also known as
GHSA-wpvj-hjcr-h3p2
Published
2026-06-26
Updated
2026-06-26

Advisory details

Impact

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.

Patches

Patched releases are available in 5.3.6, 5.2.13, 5.1.7, 4.6.4, and 4.5.11.

Workarounds

If developers are not using user-supplied data in element names, no action is required.

References

Related advisories

Is your project exposed to this? Stateward checks every dependency on every pull request and flags it only if your code actually reaches it.

Check my repo

Summarize with AI

ChatGPTClaudePerplexity

Sources: CISA KEV (public domain), OSV.dev & GitHub Advisory Database (CC-BY-4.0), FIRST EPSS, NVD/CWE (public domain). Served live from the Stateward advisory database.