CVE-2008-0252 json
CherryPy Malicious cookies allow access to files outside the session directory
published 2008-01-12 18 y ago modified 2026-06-16 4 mo ago also GHSA-76x8-gg39-5jjg , PYSEC-2008-3 , EUVD-2008-0001
- cvss
- 7.5
- version 3.1, GitHub
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 2.6%
- EPSS 2.6% chance of exploitation in 30 days, percentile 85%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- pypi cherrypy 2.1.1, 3.0.2
- cherrypy3 Debian 14, Debian 13, Debian 12 3.0.2-2
debian advisories DEBIAN-CVE-2008-0252
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2008-0252 updated
python-cherrypy directory traversal
-
Red Hat All currently supported Red Hat productsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
2.65% chance of exploitation in the next 30 days, higher than 85% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- cherrypy.org http://www.cherrypy.org/changeset/1775 referenced PoC, tagged "exploit" by a source, unverified
- cherrypy.org http://www.cherrypy.org/changeset/1774 referenced PoC, tagged "exploit" by a source, unverified
- cherrypy.org http://www.cherrypy.org/changeset/1776 referenced PoC, tagged "exploit" by a source, unverified
- cherrypy.org http://www.cherrypy.org/ticket/744 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 2.0 | 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
| GitHub | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | cherrypy | <2.1.1 >=3.0, <3.0.2 |
2.1.1 3.0.2 |
Classification
- Weakness
-
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory
References
-
cherrypy.org
/changeset/1775
web, exploit, patch
-
cherrypy.org
/changeset/1774
web, exploit, patch
-
github.com
/cherrypy/cherrypy/commit/37b856eba6f207231c691dae2e5b24e072f86664
web
-
cherrypy.org
/changeset/1776
web, exploit
-
cherrypy.org
/ticket/744
web, exploit
-
security.gentoo.org
/glsa/glsa-200801-11.xml
vendor-advisory, web, advisory
-
debian.org
/security/2008/dsa-1481
vendor-advisory, web, advisory
-
redhat.com
/archives/fedora-package-announce/2008-January/msg00297.html
vendor-advisory, web
-
redhat.com
/archives/fedora-package-announce/2008-January/msg00240.html
vendor-advisory, web
-
secunia.com
/advisories/28354
third-party-advisory, vendor-advisory, advisory
-
vupen.com
/english/advisories/2008/0039
vdb-entry, advisory
-
securityfocus.com
/bid/27181
vdb-entry, web
-
bugs.gentoo.org
/show_bug.cgi?id=204829
web
-
issues.rpath.com
/browse/RPL-2127
web
-
securityfocus.com
/archive/1/487001/100/0/threaded
mailing-list, web
-
secunia.com
/advisories/28769
third-party-advisory, advisory
-
secunia.com
/advisories/28353
third-party-advisory, advisory
-
secunia.com
/advisories/28611
third-party-advisory, advisory
-
secunia.com
/advisories/28620
third-party-advisory, advisory
-
nvd.nist.gov
/vuln/detail/CVE-2008-0252
advisory
-
github.com
/cherrypy/cherrypy
package
-
github.com
/pypa/advisory-database/tree/main/vulns/cherrypy/PYSEC-2008-3.yaml
web
-
web.archive.org
/web/20080129011723/http://secunia.com/advisories/28354
web
-
web.archive.org
/web/20080312130713/http://secunia.com/advisories/28353
web
-
web.archive.org
/web/20080328003510/http://secunia.com/advisories/28611
web
-
web.archive.org
/web/20100122080212/http://www.vupen.com/english/advisories/2008/0039
web
-
web.archive.org
/web/20110513223620/http://secunia.com/advisories/28769
web
-
web.archive.org
/web/20111224161644/http://secunia.com/advisories/28620
web
-
web.archive.org
/web/20151108024505/http://www.securityfocus.com/bid/27181
web
-
github.com
/advisories/GHSA-76x8-gg39-5jjg
advisory
Sources
- CVE List CVE-2008-0252
- GitHub Advisory GHSA-76x8-gg39-5jjg
- NVD CVE-2008-0252
- OSV PYSEC-2008-3
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.