Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. Django
  4. ›
  5. CVE-2009-2659

CVE-2009-2659: Django Admin Media Handler Vulnerable to Directory Traversal

May 2, 2022 (updated September 16, 2024)

The Admin media handler in core/servers/basehttp.py in Django 1.0 and 0.96 does not properly map URL requests to expected “static media files,” which allows remote attackers to conduct directory traversal attacks and read arbitrary files via a crafted URL.

References

  • github.com/advisories/GHSA-9xg7-gg9m-rmq9
  • github.com/django/django
  • github.com/django/django/commit/da85d76fd6ca846f3b0ff414e042ddb5e62e2e69
  • github.com/django/django/commit/df7f917b7f51ba969faa49d000ffc79572c5dcb4
  • github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2009-3.yaml
  • nvd.nist.gov/vuln/detail/CVE-2009-2659
  • web.archive.org/web/20111211001428/http://www.securityfocus.com/bid/35859
  • www.redhat.com/archives/fedora-package-announce/2009-August/msg00055.html
  • www.redhat.com/archives/fedora-package-announce/2009-August/msg00069.html

Code Behaviors & Features

Detect and mitigate CVE-2009-2659 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 0.96.0 before 0.96.4, all versions starting from 1.0 before 1.0.3

Fixed versions

  • 0.96.4
  • 1.0.3

Solution

Upgrade to versions 0.96.4, 1.0.3 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Source file

pypi/Django/CVE-2009-2659.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:16:13 +0000.