{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2008-0252","id":"CVE-2008-0252","title":"CherryPy Malicious cookies allow access to files outside the session 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.","descriptionLong":"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.","published":"2008-01-12T02:00:00.000Z","updated":"2026-06-16T22:49:15.227Z","reserved":"2008-01-11T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"mitre","metric":{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","rating":"high","source":"GitHub"},"metrics":[{"version":"4.0","score":null,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N","rating":"high","source":"GitHub"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","rating":"high","source":"GitHub"},{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","rating":"high","source":"NVD"}],"rating":"high","products":[],"affectedProducts":[{"vendor":"n/a","product":"n/a","defaultStatus":null,"versions":[{"status":"affected","version":"n/a"}],"platforms":[]}],"packages":[{"ecosystem":"PyPI","name":"cherrypy","purl":"pkg:pypi/cherrypy","ranges":["<2.1.1",">=3.0 <3.0.2"],"fixed":["2.1.1","3.0.2"],"advisory":"GHSA-76x8-gg39-5jjg"}],"cwes":["CWE-22"],"aliases":["GHSA-76x8-gg39-5jjg","PYSEC-2008-3"],"references":[{"url":"http://www.cherrypy.org/changeset/1775","tags":["x_refsource_CONFIRM","x_transferred","Exploit","Patch","evidence","fix","web"]},{"url":"http://www.vupen.com/english/advisories/2008/0039","tags":["vdb-entry","x_refsource_VUPEN","x_transferred","advisory"]},{"url":"http://security.gentoo.org/glsa/glsa-200801-11.xml","tags":["vendor-advisory","x_refsource_GENTOO","x_transferred","advisory","web"]},{"url":"http://www.securityfocus.com/bid/27181","tags":["vdb-entry","x_refsource_BID","x_transferred","web"]},{"url":"http://www.debian.org/security/2008/dsa-1481","tags":["vendor-advisory","x_refsource_DEBIAN","x_transferred","advisory","web"]},{"url":"https://bugs.gentoo.org/show_bug.cgi?id=204829","tags":["x_refsource_CONFIRM","x_transferred","web"]},{"url":"http://www.cherrypy.org/changeset/1776","tags":["x_refsource_CONFIRM","x_transferred","Exploit","evidence","web"]},{"url":"http://www.cherrypy.org/changeset/1774","tags":["x_refsource_CONFIRM","x_transferred","Exploit","Patch","evidence","fix","web"]},{"url":"https://issues.rpath.com/browse/RPL-2127","tags":["x_refsource_CONFIRM","x_transferred","web"]},{"url":"http://www.securityfocus.com/archive/1/487001/100/0/threaded","tags":["mailing-list","x_refsource_BUGTRAQ","x_transferred","web"]},{"url":"https://www.redhat.com/archives/fedora-package-announce/2008-January/msg00297.html","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred","web"]},{"url":"http://secunia.com/advisories/28769","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","advisory"]},{"url":"http://www.cherrypy.org/ticket/744","tags":["x_refsource_CONFIRM","x_transferred","Exploit","evidence","web"]},{"url":"http://secunia.com/advisories/28353","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","advisory"]},{"url":"http://secunia.com/advisories/28611","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","advisory"]},{"url":"http://secunia.com/advisories/28354","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","Vendor Advisory","advisory"]},{"url":"http://secunia.com/advisories/28620","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","advisory"]},{"url":"https://www.redhat.com/archives/fedora-package-announce/2008-January/msg00240.html","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2008-0252","tags":["advisory"]},{"url":"https://github.com/cherrypy/cherrypy/commit/37b856eba6f207231c691dae2e5b24e072f86664","tags":["web"]},{"url":"https://github.com/cherrypy/cherrypy","tags":["package"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/cherrypy/PYSEC-2008-3.yaml","tags":["web"]},{"url":"https://web.archive.org/web/20080129011723/http://secunia.com/advisories/28354","tags":["web"]},{"url":"https://web.archive.org/web/20080312130713/http://secunia.com/advisories/28353","tags":["web"]},{"url":"https://web.archive.org/web/20080328003510/http://secunia.com/advisories/28611","tags":["web"]},{"url":"https://web.archive.org/web/20100122080212/http://www.vupen.com/english/advisories/2008/0039","tags":["web"]},{"url":"https://web.archive.org/web/20110513223620/http://secunia.com/advisories/28769","tags":["web"]},{"url":"https://web.archive.org/web/20111224161644/http://secunia.com/advisories/28620","tags":["web"]},{"url":"https://web.archive.org/web/20151108024505/http://www.securityfocus.com/bid/27181","tags":["web"]},{"url":"https://github.com/advisories/GHSA-76x8-gg39-5jjg","tags":["advisory"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.02647,"epssPercentile":0.85916,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2008-0252","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2008-0252","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2008-0252","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-76x8-gg39-5jjg","ok":true,"note":"GHSA-76x8-gg39-5jjg"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2008-0252","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}