{"id":"CVE-2008-0252","aliases":["DEBIAN-CVE-2008-0252","DSA-1481-1","EUVD-2008-0001","GHSA-76x8-gg39-5jjg","PYSEC-2008-3"],"status":"published","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.","severity":{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-07","score":0.02647,"percentile":0.85701,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-22"],"published":"2008-01-12T02:00:00Z","modified":"2026-10-23T17:47:26Z","fixes":[{"ecosystem":"PyPI","package":"cherrypy","fixed_in":["2.1.1","3.0.2"],"sources":["ghsa","osv"]},{"ecosystem":"Debian:12","package":"cherrypy3","fixed_in":["3.0.2-2"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"cherrypy3","fixed_in":["3.0.2-2"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"cherrypy3","fixed_in":["3.0.2-2"],"sources":["osv"]},{"ecosystem":"Debian:4.0","package":"python-cherrypy","fixed_in":["2.2.1-3etch1"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"PyPI","package":"cherrypy","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.1"}]}]},{"source":"ghsa","ecosystem":"PyPI","package":"cherrypy","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.0"},{"fixed":"3.0.2"}]}]},{"source":"osv","ecosystem":"Debian:12","package":"cherrypy3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.0.2-2"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"cherrypy3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.0.2-2"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"cherrypy3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.0.2-2"}]}]},{"source":"osv","ecosystem":"Debian:4.0","package":"python-cherrypy","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.2.1-3etch1"}]}],"versions":["2.2.1-3"]},{"source":"osv","ecosystem":"PyPI","package":"cherrypy","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.1"}]}],"versions":["0.10","2.0.0-final","2.0.0b","2.1.0","2.1.0-beta"]},{"source":"osv","ecosystem":"PyPI","package":"cherrypy","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.0"},{"fixed":"3.0.2"}]}],"versions":["3.0.0","3.0.1"]},{"source":"osv","ecosystem":"PyPI","package":"cherrypy","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.1"},{"introduced":"3.0"},{"fixed":"3.0.2"}]}],"versions":["0.10","2.0.0-final","2.0.0b","2.1.0","2.1.0-beta","3.0.0","3.0.1"]}],"products":[{"vendor":"cherrypy","product":"cherrypy"}],"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/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"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2008-0252","tags":["advisory"]},{"url":"https://github.com/cherrypy/cherrypy","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2008-0252","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.","status":"published","published":"2008-01-12T02:00:00Z","modified":"2024-08-07T07:39:34.2Z","updated_at":"2026-11-02T14:34:48.867091Z"}],"euvd":[{"id":"EUVD-2008-0001","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.","status":"published","published":"2008-01-12T02:00:00Z","modified":"2024-08-07T07:39:34Z","updated_at":"2026-11-03T01:39:07.248677Z"}],"ghsa":[{"id":"GHSA-76x8-gg39-5jjg","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.","status":"published","published":"2022-05-01T23:28:42Z","modified":"2024-09-13T18:02:57Z","cvss":[{"version":"4.0","score":8.7,"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","level":"high"},{"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","level":"high"}],"cwes":["CWE-22"],"updated_at":"2026-11-02T14:38:02.773864Z"}],"nvd":[{"id":"CVE-2008-0252","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.","status":"published","published":"2008-01-12T02:46:00Z","modified":"2026-06-16T22:49:15.227Z","cvss":[{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","level":"high","assessor":"primary"}],"cwes":["CWE-22"],"updated_at":"2026-11-02T14:01:24.89535Z"}],"osv":[{"id":"GHSA-76x8-gg39-5jjg","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.","status":"published","published":"2022-05-01T23:28:42Z","modified":"2024-09-13T18:23:05.485345Z","cvss":[{"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","level":"high"},{"version":"4.0","score":8.7,"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","level":"high"}],"cwes":["CWE-22"],"updated_at":"2026-11-02T15:46:40.657155Z"},{"id":"CVE-2008-0252","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.","status":"published","published":"2008-01-12T02:46:00Z","modified":"2026-04-10T03:39:35.388453Z","updated_at":"2026-11-02T15:43:57.178433Z"},{"id":"DEBIAN-CVE-2008-0252","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.","status":"published","published":"2008-01-12T02:46:00Z","modified":"2026-10-23T17:47:26.756964369Z","updated_at":"2026-11-02T15:45:23.411908Z"},{"id":"DSA-1481-1","title":"python-cherrypy - missing input sanitising","status":"published","published":"2008-02-05T00:00:00Z","modified":"2026-03-09T01:01:50.564517Z","updated_at":"2026-11-02T15:46:14.285228Z"},{"id":"PYSEC-2008-3","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.","status":"published","published":"2008-01-12T02:46:00Z","modified":"2026-06-10T17:00:43.536286545Z","updated_at":"2026-11-02T15:52:51.254177Z"}]}}
