CakePHP: View::element() is missing a path containment check
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 5.3.6, 5.2.13, 5.1.7, 4.6.4, 4.5.11
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- 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
- CVE published
- CISA SSVC assessment
Exploitation: none · Automatable: no · Technical impact: partial
- 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