GitHub Advisoryadvisory · PyPI

GHSA-76x8-gg39-5jjg CherryPy Malicious cookies allow access to files outside the session directory

HIGH Published 2022-05-01 Modified 2024-09-13 Official page ↗
Aliases
CVE-2008-0252
Ecosystem
PyPI
Packages
cherrypy
Severity
High
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Weaknesses
CWE-22
Reviewed
2024-04-01

Affected packages

• PyPI cherrypy: < 2.1.1 → fixed in 2.1.1 • PyPI cherrypy: >= 3.0, < 3.0.2 → fixed in 3.0.2

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.

Related

Alias · CVE (1)

  • CVE-2008-0252 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)… vulnerability

Weakness · CWE (1)

  • CWE-22 Improper Limitation of a Pathname to a Restricted Directory weakness

References