{"answers":{"affected":"10 open source packages ship an affected version, including cakephp/cakephp.","exploited":"There is no known exploitation of CVE-2026-48820 in the wild and no public exploit code.","fix":"Upgrade cakephp/cakephp to a fixed version for your release line: 4.5.11, 4.6.4, 5.1.7 or 5.2.13.","what":"CVE-2026-48820 is a medium-severity path traversal vulnerability in cakephp, published on 17 Jun 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-48820 and fix it if it is affected.\n\nWhat it is: CVE-2026-48820 is a medium-severity path traversal vulnerability in cakephp, published on 17 Jun 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-48820 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- cakephp/cakephp (Packagist): affected all versions; fixed in 4.5.11\n- cakephp/cakephp (Packagist): affected all versions; fixed in 4.5.11\n- cakephp/cakephp (Packagist): affected from 4.6.0; fixed in 4.6.4\n- cakephp/cakephp (Packagist): affected from 4.6.0; fixed in 4.6.4\n- cakephp/cakephp (Packagist): affected from 5.0.0; fixed in 5.1.7\n- cakephp/cakephp (Packagist): affected from 5.0.0; fixed in 5.1.7\n- cakephp/cakephp (Packagist): affected from 5.2.0; fixed in 5.2.13\n- cakephp/cakephp (Packagist): affected from 5.2.0; fixed in 5.2.13\n- cakephp/cakephp (Packagist): affected from 5.3.0; fixed in 5.3.6\n- cakephp/cakephp (Packagist): affected from 5.3.0; fixed in 5.3.6\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-48820/ (Markdown: https://insights.sbomify.com/CVE-2026-48820/index.md)","id":"CVE-2026-48820","markdown":"https://insights.sbomify.com/CVE-2026-48820/index.md","name":"CVE-2026-48820","record":{"aliases":["CLSA-2026-1783904619","DEBIAN-CVE-2026-48820","GHSA-wpvj-hjcr-h3p2","UBUNTU-CVE-2026-48820"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution","data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"PHP web framework","requires_auth":"none","summary":"Attackers can exploit missing path checks in CakePHP's View::element() to include arbitrary PHP files, potentially leading to code execution or data disclosure.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":6.3,"severity":"medium","source":"cna","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","version":"4.0"},"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"}],"description":"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.","ecosystems":["Packagist"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"CakePHP: View::element() is missing a path containment check","id":"CVE-2026-48820","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Packagist","product":null,"products":[],"type":"path_traversal","year":"2026"},"n_packages":10,"n_references":1,"next":{"headline":"Shaarli: DOM-based Cross-Site Scripting (XSS) in Thumbnail Synchronizer","id":"CVE-2026-48821"},"packages":[{"ecosystem":"Packagist","fixed":["4.5.11"],"introduced":["0"],"last_affected":[],"package":"cakephp/cakephp","purl":null,"source":"GHSA-wpvj-hjcr-h3p2"},{"ecosystem":"Packagist","fixed":["4.5.11"],"introduced":["0"],"last_affected":[],"package":"cakephp/cakephp","purl":"pkg:composer/cakephp/cakephp","source":"GHSA-wpvj-hjcr-h3p2"},{"ecosystem":"Packagist","fixed":["4.6.4"],"introduced":["4.6.0"],"last_affected":[],"package":"cakephp/cakephp","purl":null,"source":"GHSA-wpvj-hjcr-h3p2"},{"ecosystem":"Packagist","fixed":["4.6.4"],"introduced":["4.6.0"],"last_affected":[],"package":"cakephp/cakephp","purl":"pkg:composer/cakephp/cakephp","source":"GHSA-wpvj-hjcr-h3p2"},{"ecosystem":"Packagist","fixed":["5.1.7"],"introduced":["5.0.0"],"last_affected":[],"package":"cakephp/cakephp","purl":null,"source":"GHSA-wpvj-hjcr-h3p2"},{"ecosystem":"Packagist","fixed":["5.1.7"],"introduced":["5.0.0"],"last_affected":[],"package":"cakephp/cakephp","purl":"pkg:composer/cakephp/cakephp","source":"GHSA-wpvj-hjcr-h3p2"},{"ecosystem":"Packagist","fixed":["5.2.13"],"introduced":["5.2.0"],"last_affected":[],"package":"cakephp/cakephp","purl":null,"source":"GHSA-wpvj-hjcr-h3p2"},{"ecosystem":"Packagist","fixed":["5.2.13"],"introduced":["5.2.0"],"last_affected":[],"package":"cakephp/cakephp","purl":"pkg:composer/cakephp/cakephp","source":"GHSA-wpvj-hjcr-h3p2"},{"ecosystem":"Packagist","fixed":["5.3.6"],"introduced":["5.3.0"],"last_affected":[],"package":"cakephp/cakephp","purl":null,"source":"GHSA-wpvj-hjcr-h3p2"},{"ecosystem":"Packagist","fixed":["5.3.6"],"introduced":["5.3.0"],"last_affected":[],"package":"cakephp/cakephp","purl":"pkg:composer/cakephp/cakephp","source":"GHSA-wpvj-hjcr-h3p2"}],"prev":{"headline":"Hey API: `buildClientParams` template: prototype chain substitution via unknown `$\u003cslot\u003e___proto__` key","id":"CVE-2026-48819"},"products":["cakephp"],"published":"2026-06-17","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-06-18","vendors":["cakephp"]},"summary":"Attackers can exploit missing path checks in CakePHP's View::element() to include arbitrary PHP files, potentially leading to code execution or data disclosure.","url":"https://insights.sbomify.com/CVE-2026-48820/"}