{"id":"CVE-2026-48820","aliases":["CVE-2026-48820","GHSA-wpvj-hjcr-h3p2"],"related":[],"kind":"vulnerability","state":"published","title":"CakePHP: View::element() is missing a path containment check","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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"en","text":"### Impact\n`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.\n\n### Patches\nPatched releases are available in 5.3.6, 5.2.13, 5.1.7, 4.6.4, and 4.5.11.\n\n### Workarounds\nIf developers are not using user-supplied data in element names, no action is required.","format":"markdown","source":"ghsa"}],"published":"2026-06-17T21:19:44.238Z","modified":"2026-09-10T03:50:50.960Z","severity":{"scorer":"GitHub_M","scheme":"CVSS: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","score":6.3,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS: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","score":6.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS: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","rating":"MEDIUM"}],"cwes":["CWE-22","CWE-98"],"affected":[{"ranges":[{"version":">= 5.3.0, < 5.3.6","status":"affected"},{"version":">= 5.2.0, < 5.2.13","status":"affected"},{"version":">= 5.0.0, < 5.1.7","status":"affected"},{"version":">= 4.6.0, < 4.6.4","status":"affected"},{"version":"< 4.5.11","status":"affected"}],"vendor":"cakephp","product":"cakephp","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"5.3.0","status":"affected","fixed":"5.3.6"}],"ecosystem":"Packagist","package":"cakephp/cakephp","purl":"pkg:composer/cakephp/cakephp","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"5.2.0","status":"affected","fixed":"5.2.13"}],"ecosystem":"Packagist","package":"cakephp/cakephp","purl":"pkg:composer/cakephp/cakephp","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"5.0.0","status":"affected","fixed":"5.1.7"}],"ecosystem":"Packagist","package":"cakephp/cakephp","purl":"pkg:composer/cakephp/cakephp","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"4.6.0","status":"affected","fixed":"4.6.4"}],"ecosystem":"Packagist","package":"cakephp/cakephp","purl":"pkg:composer/cakephp/cakephp","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"4.5.11"}],"ecosystem":"Packagist","package":"cakephp/cakephp","purl":"pkg:composer/cakephp/cakephp","source":"ghsa"}],"references":[{"url":"https://github.com/cakephp/cakephp/security/advisories/GHSA-wpvj-hjcr-h3p2","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-48820","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/cakephp/cakephp","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-06-18T13:52:33.657Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-48820","url":"https://www.cve.org/CVERecord?id=CVE-2026-48820","licence":"CVE Terms of Use","modified":"2026-06-18T13:54:12.069Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-wpvj-hjcr-h3p2","url":"https://github.com/advisories/GHSA-wpvj-hjcr-h3p2","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:50.960Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-48820","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-48820","licence":"Public domain","modified":"2026-06-23T15:44:39.343Z"}],"updatedAt":"2026-11-25T22:59:25.004Z","epss":{"score":0.0037,"percentile":0.23002,"date":"2026-11-30T12:00:22.000Z"}}