All reports
Medium

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

Affected versions

Affected versions
>= 4.6.0, < 4.6.4
Fixed version
4.6.4
Affected versions
>= 5.3.0, < 5.3.6
Fixed version
5.3.6
Affected versions
>= 5.0.0, < 5.1.7
Fixed version
5.1.7
Affected versions
>= 5.2.0, < 5.2.13
Fixed version
5.2.13
Affected versions
< 4.5.11
Fixed version
4.5.11

Exploitation

CVE-2026-48820

Probability of exploitation in the next 30 days: 0.26%

FIRST EPSS · 2026-11-21

Description

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.

Links

Credits

  • zxcvbbq
  • get-wright
  • markstory
  • dereuromark