CVE-2008-0252
CherryPy Malicious cookies allow access to files outside the session directory
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.
Exploit likelihood
What each source reports
NVD Score used
7.5
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.
- Record
CVE-2008-0252- CVSS 2.0
- 7.5 High
AV:N/AC:L/Au:N/C:P/I:P/A:P - Weakness
- CWE-22
- Updated
- 2026-11-02
CVE List No score
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.
- Record
CVE-2008-0252- Updated
- 2026-11-02
EUVDEUVD-2008-0001 No score
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.
- Record
EUVD-2008-0001- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-76x8-gg39-5jjg
8.7
CherryPy Malicious cookies allow access to files outside the session directory
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.
- Record
GHSA-76x8-gg39-5jjg- CVSS 4.0
- 8.7 High
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 - CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N - Weakness
- CWE-22
- Updated
- 2026-11-02
OSVGHSA-76x8-gg39-5jjg
8.7
CherryPy Malicious cookies allow access to files outside the session directory
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.
- Record
GHSA-76x8-gg39-5jjg- CVSS 4.0
- 8.7 High
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 - CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N - Weakness
- CWE-22
- Updated
- 2026-11-02
OSV No score
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.
- Record
CVE-2008-0252- Updated
- 2026-11-02
OSVDEBIAN-CVE-2008-0252 No score
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.
- Record
DEBIAN-CVE-2008-0252- Updated
- 2026-11-02
OSVPYSEC-2008-3 No score
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.
- Record
PYSEC-2008-3- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
cherrypyPyPI |
before 2.1.1 | 2.1.1 |
cherrypyPyPI |
3.0 up to 3.0.2 | 3.0.2 |
cherrypy3Debian:12 |
before 3.0.2-2 | 3.0.2-2 |
cherrypy3Debian:13 |
before 3.0.2-2 | 3.0.2-2 |
cherrypy3Debian:14 |
before 3.0.2-2 | 3.0.2-2 |
python-cherrypyDebian:4.0 |
before 2.2.1-3etch1, plus listed versions 2.2.1-3 |
2.2.1-3etch1 |
cherrypyPyPI |
before 2.1.1, plus listed versions 0.102.0.0-final2.0.0b2.1.02.1.0-beta |
2.1.1 |
cherrypyPyPI |
3.0 up to 3.0.2, plus listed versions 3.0.03.0.1 |
3.0.2 |
cherrypyPyPI |
before 2.1.1, 3.0 up to 3.0.2, plus listed versions 0.102.0.0-final2.0.0b2.1.02.1.0-beta3.0.03.0.1 |
2.1.13.0.2 |
History
| Recorded | Changed | Sources |
|---|---|---|
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2008-0252 is a high vulnerability (CVSS 7.5) in Cherrypy, published January 12, 2008. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 2.65%, the 85th percentile. Fixed in cherrypy 2.1.1.
References
cherrypy.org/changeset/1775
vupen.com/english/advisories/2008/0039
security.gentoo.org/glsa/glsa-200801-11.xml
securityfocus.com/bid/27181
debian.org/security/2008/dsa-1481
bugs.gentoo.org/show_bug.cgi?id=204829
Show 25 moreShow less
cherrypy.org/changeset/1776
cherrypy.org/changeset/1774
issues.rpath.com/browse/RPL-2127
securityfocus.com/archive/1/487001/100/0/threaded
redhat.com/archives/fedora-package-announce/2008-January/msg00297.html
secunia.com/advisories/28769
cherrypy.org/ticket/744
secunia.com/advisories/28353
secunia.com/advisories/28611
secunia.com/advisories/28354
secunia.com/advisories/28620
redhat.com/archives/fedora-package-announce/2008-January/msg00240.html
nvd.nist.gov/vuln/detail/CVE-2008-0252
github.com/cherrypy/cherrypy/commit/37b856eba6f207231c691dae2e5b24e072f86664
github.com/pypa/advisory-database/tree/main/vulns/cherrypy/PYSEC-2008-3.yaml
web.archive.org/web/20080129011723/http://secunia.com/advisories/28354
web.archive.org/web/20080312130713/http://secunia.com/advisories/28353
web.archive.org/web/20080328003510/http://secunia.com/advisories/28611
web.archive.org/web/20100122080212/http://www.vupen.com/english/advisories/2008/0039
web.archive.org/web/20110513223620/http://secunia.com/advisories/28769
web.archive.org/web/20111224161644/http://secunia.com/advisories/28620
web.archive.org/web/20151108024505/http://www.securityfocus.com/bid/27181
github.com/advisories/GHSA-76x8-gg39-5jjg
security-tracker.debian.org/tracker/CVE-2008-0252
github.com/cherrypy/cherrypy