NIST deprecates RSA-2048 from 2030. Find every one of them before attackers do.
🐍
🐍 PyPI
Not in CISA KEV
HIGH severity

CVE-2008-0252 — cherrypy

HIGHFix: cherrypy/cherrypy@37b856e

CVE-2008-0252 is a high-severity (CVSS 7.5) Path Traversal vulnerability in cherrypy. 4 public exploit or proof-of-concept references are indexed, so weaponization risk is real. A fix is available for cherrypy — see the affected versions and patch details below.

CherryPy Malicious cookies allow access to files outside the session directory

Also known asGHSA-76x8-gg39-5jjgPYSEC-2008-3
Published
Updated
Affected
2 pkgs
Patched
2 / 2
Exploits
4 known
Exploitation data as of Nov 3, 2026 · OSV.dev, NVD, FIRST.org (EPSS)

EPSS Exploitation Probability

via FIRST.org ↗
2.7%probability of exploitation in next 30 days
Lower Risk0.00%
Lower risk than most CVEs86th percentile — riskier than 86% of all scored CVEsHighest risk
2.15%2.57%3.00%3.42%2.8%2.7%May 26Sep 26Nov 26

Probability of exploitation in the next 30 days, from FIRST.org EPSS.

How urgent is this, really

Where this sits among everything scored

Real-World Exposure

2 pkgs affected
🐍cherrypy🐍cherrypy

Real-time download stats are indexed for npm and PyPI packages. This vulnerability affects PyPI packages — download data is not available via public APIs for these ecosystems.

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.

Affected Packages

2 total 2 fixed
EcosystemPackageVulnerable rangeFix
🐍PyPIcherrypyall versions2.1.1pip install --upgrade 'cherrypy==2.1.1'
🐍PyPIcherrypy≥ 3.0&&< 3.0.23.0.2pip install --upgrade 'cherrypy==3.0.2'

Affected Products

1 product · 2 configurations
Application
cherrypycherrypy
≤ 3.0.2
range
Exploits & PoCs
4

Research use only. For defensive security, authorized penetration testing, and academic research only. Never execute exploit code against systems without explicit written authorization.

Detection & mitigation playbook

Open-source dependency
  1. Detect

    Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for cherrypy, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.

  2. Fix

    Update cherrypy to 2.1.1 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2008-0252 is resolved across your whole dependency graph.

  3. Workarounds

    Resolve every user-supplied path to its canonical form and reject anything that escapes the intended directory, and run the component under an account that has no read or write access outside the directory it legitimately serves.

Frequently Asked Questions

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.
O3 Security · Impact-Aware SCA

Is CVE-2008-0252 in your dependencies?

Find it across PyPI, including transitive dependencies.

CVE-2008-0252: cherrypy Path Traversal — Fixed in 2.1.1