Skip to content
OpenAdvisories
High · 7.5 CVE-2008-0252 EUVD-2008-0001GHSA-76x8-gg39-5jjgPYSEC-2008-3

CherryPy Malicious cookies allow access to files outside the session directory

Published Jan 12, 2008 · Updated Aug 7, 2024 · Assigned by mitre

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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 cherrypy3 3.0.2-2 —
Debian 13 cherrypy3 3.0.2-2 —
Debian 12 cherrypy3 3.0.2-2 —
Debian 4.0 python-cherrypy 2.2.1-3etch1 DSA-1481-1

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI cherrypy < 2.1.1 2.1.1 GHSA-76x8-gg39-5jjg
PyPI cherrypy >= 3.0, < 3.0.2 3.0.2 GHSA-76x8-gg39-5jjg
PyPI cherrypy < 2.1.1 · >= 3.0, < 3.0.2 2.1.1, 3.0.2 PYSEC-2008-3

Advisories 1

References