{"id":"CVE-2026-48820","published":"2026-06-17T21:19:44Z","modified":"2026-06-18T13:54:12Z","title":"CakePHP: View::element() is missing a path containment check","vendor":"cakephp","product":"cakephp","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.3,"severity":"MEDIUM","version":"4.0","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00258,"percentile":0.17809,"provenance":"source"},"cwes":[{"id":"CWE-98","name":"Improper Control of Filename for Include/Require Statement in PHP Program"},{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/cakephp/cakephp/security/advisories/GHSA-wpvj-hjcr-h3p2","tags":["x_refsource_CONFIRM"]}],"priority":{"score":8.0,"factors":[{"name":"EPSS percentile","points":3.56},{"name":"CVSS severity","points":4.41}]},"vendorSlug":"cakephp","affectedVersions":[{"vendor":"cakephp","product":"cakephp","versions":[">= 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"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-06-18T13:52:33.657255Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"cakephp/cakephp","vulnerableRanges":[">=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"],"patched":["5.3.6","5.2.13","5.1.7","4.6.4","4.5.11"],"from":["GHSA-wpvj-hjcr-h3p2"],"provenance":"source"}],"summary":{"text":"CakePHP's View::element() method, in the View component of the framework, is missing a path containment check: View::_getElementFileName() does not verify that a resolved element path stays within the application or plugin view template directories. The attack requires network access and element names built from crafted user-supplied data, with high attack complexity and a required precondition not further specified, and an attacker who exploits it can cause other PHP files on the server to be included.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:12:16Z"},"euvd":{"id":"EUVD-2026-37807","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2020-35239","published":"2021-01-20","fixed":"4.1.4","kev":false},{"cve":"CVE-2023-22727","published":"2023-01-17","fixed":"4.4.10","kev":false},{"cve":"CVE-2026-23643","published":"2026-01-16","fixed":"5.3.1","kev":false,"link":{"from":"CVE-2026-23643","to":"CVE-2026-48820","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:cakephp/cakephp","fromFixed":"5.3.1","toFixed":"5.3.6","daysApart":152}]}},{"cve":"CVE-2026-48820","published":"2026-06-17","fixed":"5.3.6","kev":false},{"cve":"CVE-2026-77634","published":"2026-08-24","fixed":"5.3.7","kev":false,"link":{"from":"CVE-2026-48820","to":"CVE-2026-77634","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:cakephp/cakephp","fromFixed":"5.1.7","toFixed":"5.1.9","daysApart":68},{"kind":"version-step","provenance":"source","package":"Packagist:cakephp/cakephp","fromFixed":"4.5.11","toFixed":"4.5.12","daysApart":68}]}},{"cve":"CVE-2026-77635","published":"2026-08-24","fixed":"5.3.7","kev":false,"link":{"from":"CVE-2026-48820","to":"CVE-2026-77635","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:cakephp/cakephp","fromFixed":"5.3.6","toFixed":"5.3.7","daysApart":68}]}},{"cve":"CVE-2026-79752","published":"2026-09-17","fixed":"5.3.7","kev":false,"link":{"from":"CVE-2026-48820","to":"CVE-2026-79752","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:cakephp/cakephp","fromFixed":"5.1.7","toFixed":"5.1.9","daysApart":92},{"kind":"version-step","provenance":"source","package":"Packagist:cakephp/cakephp","fromFixed":"4.5.11","toFixed":"4.5.12","daysApart":92}]}}],"package":"Packagist:cakephp/cakephp"}}