{"answers":{"affected":"2 open source packages ship an affected version, including cakephp/cakephp. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2006-5031 exists.","fix":"Upgrade cakephp/cakephp to 1.1.8.3544 or later.","what":"CVE-2006-5031 is a medium-severity path traversal vulnerability in n/a, published on 27 Sep 2006. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2006-5031 and fix it if it is affected.\n\nWhat it is: CVE-2006-5031 is a medium-severity path traversal vulnerability in n/a, published on 27 Sep 2006. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2006-5031 exists.\n\nAffected packages and fixed versions:\n- cakephp/cakephp (Packagist): affected from 1.0.1.2708; fixed in 1.1.8.3544\n- cakephp/cakephp (Packagist): affected from 1.0.1.2708; fixed in 1.1.8.3544\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-2006-5031/ (Markdown: https://insights.sbomify.com/CVE-2006-5031/index.md)","id":"CVE-2006-5031","markdown":"https://insights.sbomify.com/CVE-2006-5031/index.md","name":"CVE-2006-5031","record":{"aliases":["DEBIAN-CVE-2006-5031","GHSA-rw73-xmpv-j5x2"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"CakePHP framework","requires_auth":"none","summary":"Remote attackers can read arbitrary files via directory traversal in the vendors.php script, exposing sensitive data.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"cakephp","vendor":"cakephp"}],"cvss":{"score":5,"severity":"medium","source":"nvd","vector":"AV:N/AC:L/Au:N/C:P/I:N/A:N","version":"2.0"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"description":"Directory traversal vulnerability in app/webroot/js/vendors.php in Cake Software Foundation CakePHP before 1.1.8.3544 allows remote attackers to read arbitrary files via a .. (dot dot) in the file parameter, followed by a filename ending with \"%00\" and a .js filename.","ecosystems":["Packagist"],"exploits":{"exploitdb":1,"first_seen":"2006-09-22","github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[{"date":"2006-09-22","kind":"exploitdb","ref":"28645","stars":null,"title":"CakePHP 1.1.7.3363 - 'Vendors.php' Directory Traversal"}],"tier":"weaponised"},"has_fix":true,"headline":"CakePHP directory traversal vulnerability allows remote attackers to read arbitrary files","id":"CVE-2006-5031","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Packagist","product":null,"products":[],"type":"path_traversal","year":"2006"},"n_packages":2,"n_references":5,"next":{"headline":"Code injection in n/a","id":"CVE-2006-5032"},"packages":[{"ecosystem":"Packagist","fixed":["1.1.8.3544"],"introduced":["1.0.1.2708"],"last_affected":[],"package":"cakephp/cakephp","purl":null,"source":"GHSA-rw73-xmpv-j5x2"},{"ecosystem":"Packagist","fixed":["1.1.8.3544"],"introduced":["1.0.1.2708"],"last_affected":[],"package":"cakephp/cakephp","purl":"pkg:composer/cakephp/cakephp","source":"GHSA-rw73-xmpv-j5x2"}],"prev":{"headline":"SQL injection in n/a","id":"CVE-2006-5030"},"products":["n/a"],"published":"2006-09-27","related":[{"cvss_score":9.8,"headline":"Database Query::offset() and limit() vulnerable to SQL injection in cakephp","id":"CVE-2023-22727","kev_date_added":null,"published":"2023-01-17"},{"cvss_score":8.8,"headline":"CakePHP allows method override parameters to bypass CSRF checks","id":"CVE-2020-35239","kev_date_added":null,"published":"2021-01-20"},{"cvss_score":8.8,"headline":"CakePHP might allow remote attackers to bypass CSRF protection mechanism via the _method parameter","id":"CVE-2015-8379","kev_date_added":null,"published":"2016-01-26"},{"cvss_score":7.5,"headline":"Unsafe deserialization in SmtpTransport in CakePHP","id":"CVE-2019-11458","kev_date_added":null,"published":"2019-05-08"},{"cvss_score":7.5,"headline":"CakePHP allows remote attackers to spoof their IP","id":"CVE-2016-4793","kev_date_added":null,"published":"2017-01-23"},{"cvss_score":5.4,"headline":"CakePHP PaginatorHelper::limitControl() vulnerable to reflected cross-site-scripting","id":"CVE-2026-23643","kev_date_added":null,"published":"2026-01-16"},{"cvss_score":5.1,"headline":"CakePHP: Open redirect weakness via backslash bypass","id":"CVE-2026-55590","kev_date_added":null,"published":"2026-07-09"}],"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":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"attribution","licence":"GPL-2.0-or-later","name":"Exploit-DB"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-07","vendors":["n/a"]},"summary":"Remote attackers can read arbitrary files via directory traversal in the vendors.php script, exposing sensitive data.","url":"https://insights.sbomify.com/CVE-2006-5031/"}