ADVISORIES

GitHub Advisory Database

GHSA-76x8-gg39-5jjg

CherryPy Malicious cookies allow access to files outside the session directory

Details

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

EcosystemPackageAffected versions
PyPIcherrypy
All versions before 2.1.1 (fixed in 2.1.1)
PyPIcherrypy
From 3.0 before 3.0.2 (fixed in 3.0.2)

References