CVE-2008-0252:
CherryPy Malicious cookies allow access to files outside the session directory
7.5
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.85249%
CWE
Published
5/1/2022
Updated
9/13/2024
KEV Status
No
Technology
Python
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
cherrypy | pip | >= 0, < 2.1.1 | 2.1.1 |
cherrypy | pip | >= 3.0, < 3.0.2 | 3.0.2 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from the _get_file_path function in both 3.0.x (lib/sessions.py) and 2.x (filter/sessionfilter.py) implementations. The GitHub patch shows the 3.0.x version added a critical os.path.normpath check to prevent directory traversal, confirming the original function lacked this validation. CVE/GHSA descriptions explicitly name these files/functions, and the vulnerability type (CWE-22) directly maps to insecure path construction using untrusted input (session IDs). The 2.x equivalent in sessionfilter.py is inferred to have the same flaw based on vulnerability descriptions covering both major versions.