Skip to main content
← All vulnerabilities
CVE-2026-48820GHSA-WPVJ-HJCR-H3P2

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

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 5.3.6, 5.2.13, 5.1.7, 4.6.4, 4.5.11
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • cakephp cakephp

    From 5.3.0 · fixed in 5.3.6; From 5.2.0 · fixed in 5.2.13; From 5.0.0 · fixed in 5.1.7; From 4.6.0 · fixed in 4.6.4; fixed in 4.5.11

  • cakephp/cakephpPackagist

    From 5.3.0 · fixed in 5.3.6

  • cakephp/cakephpPackagist

    From 5.2.0 · fixed in 5.2.13

  • cakephp/cakephpPackagist

    From 5.0.0 · fixed in 5.1.7

  • cakephp/cakephpPackagist

    From 4.6.0 · fixed in 4.6.4

  • cakephp/cakephpPackagist

    fixed in 4.5.11

References 1

GitHub · cakephp/cakephp