Live threats

All CVEs / Cherrypy

CVE-2008-0252Cherrypy

High 7.5 No auth needed

Priority
60
CVSS 2.0
7.5
EPSS
2.6%
probability of exploitation in 30 days · percentile 86
Auth required
No
Published
Jan 12, 2008
Updated
Jun 16, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-22
Vector
AV:N/AC:L/Au:N/C:P/I:P/A:P

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Cherrypy.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI cherrypy < 2.1.1 2.1.1 pip install "cherrypy>=2.1.1"
PyPI cherrypy ≥ 3.0 < 3.0.2 3.0.2 pip install "cherrypy>=3.0.2"
PyPI cherrypy < 2.1.1 2.1.1 pip install "cherrypy>=2.1.1"
PyPI cherrypy ≥ 3.0 < 3.0.2 3.0.2 pip install "cherrypy>=3.0.2"

Per OSV / GitHub Advisories (GHSA-76x8-gg39-5jjg, PYSEC-2008-3). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
cherrypycherrypy≤ 2.1.0
cherrypycherrypy≤ 3.0.2

Official sources

References

Links published by the sources. Open them with care.