Skip to content
Fencer Vulns
high 7.5

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 products
    not 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

Sources

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.