{"answers":{"affected":"5 open source packages ship an affected version, including cherrypy. It affects 1 product.","exploited":"There is no known exploitation of CVE-2008-0252 in the wild and no public exploit code.","fix":"Upgrade cherrypy to a fixed version for your release line: 2.1.1 or 3.0.2.","what":"CVE-2008-0252 is a high-severity path traversal vulnerability in n/a, published on 12 Jan 2008. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2008-0252 and fix it if it is affected.\n\nWhat it is: CVE-2008-0252 is a high-severity path traversal vulnerability in n/a, published on 12 Jan 2008. 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-2008-0252 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- cherrypy (PyPI): affected all versions; fixed in 2.1.1, 3.0.2\n- cherrypy (PyPI): affected all versions; fixed in 2.1.1\n- cherrypy (PyPI): affected all versions; fixed in 2.1.1\n- cherrypy (PyPI): affected from 3.0; fixed in 3.0.2\n- cherrypy (PyPI): affected from 3.0; fixed in 3.0.2\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-2008-0252/ (Markdown: https://insights.sbomify.com/CVE-2008-0252/index.md)","id":"CVE-2008-0252","markdown":"https://insights.sbomify.com/CVE-2008-0252/index.md","name":"CVE-2008-0252","record":{"aliases":["DEBIAN-CVE-2008-0252","DSA-1481-1","GHSA-76x8-gg39-5jjg","PYSEC-2008-3"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_modify","data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"CherryPy web framework","requires_auth":"none","summary":"Remote attackers can create, delete, or read arbitrary files via crafted session cookies in CherryPy, requiring an upgrade to secure the application.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"cherrypy","vendor":"cherrypy"}],"cvss":{"score":7.5,"severity":"high","source":"nvd","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","version":"2.0"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"description":"Directory traversal vulnerability in the _get_file_path function in (1) lib/sessions.py in CherryPy 3.0.x up to 3.0.2, (2) filter/sessionfilter.py in CherryPy 2.1, and (3) filter/sessionfilter.py in CherryPy 2.x allows remote attackers to create or delete arbitrary files, and possibly read and write portions of arbitrary files, via a crafted session id in a cookie.","ecosystems":["PyPI"],"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":"CherryPy Malicious cookies allow access to files outside the session directory","id":"CVE-2008-0252","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"path_traversal","year":"2008"},"n_packages":5,"n_references":18,"next":{"headline":"SQL injection in n/a","id":"CVE-2008-0253"},"packages":[{"ecosystem":"PyPI","fixed":["2.1.1","3.0.2"],"introduced":["0","3.0"],"last_affected":[],"package":"cherrypy","purl":"pkg:pypi/cherrypy","source":"PYSEC-2008-3"},{"ecosystem":"PyPI","fixed":["2.1.1"],"introduced":["0"],"last_affected":[],"package":"cherrypy","purl":null,"source":"GHSA-76x8-gg39-5jjg"},{"ecosystem":"PyPI","fixed":["2.1.1"],"introduced":["0"],"last_affected":[],"package":"cherrypy","purl":"pkg:pypi/cherrypy","source":"GHSA-76x8-gg39-5jjg"},{"ecosystem":"PyPI","fixed":["3.0.2"],"introduced":["3.0"],"last_affected":[],"package":"cherrypy","purl":null,"source":"GHSA-76x8-gg39-5jjg"},{"ecosystem":"PyPI","fixed":["3.0.2"],"introduced":["3.0"],"last_affected":[],"package":"cherrypy","purl":"pkg:pypi/cherrypy","source":"GHSA-76x8-gg39-5jjg"}],"prev":{"headline":"File upload in n/a","id":"CVE-2008-0251"},"products":["n/a"],"published":"2008-01-12","related":[{"cvss_score":5,"headline":"CherryPy Directory traversal vulnerability","id":"CVE-2006-0847","kev_date_added":null,"published":"2006-02-22"}],"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":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"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)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-07","vendors":["n/a"]},"summary":"Remote attackers can create, delete, or read arbitrary files via crafted session cookies in CherryPy, requiring an upgrade to secure the application.","url":"https://insights.sbomify.com/CVE-2008-0252/"}