GitHub Advisoryadvisory · PyPI
GHSA-9xg7-gg9m-rmq9 Django Admin Media Handler Vulnerable to Directory Traversal
HIGH
Official page ↗
- Aliases
- CVE-2009-2659
- Ecosystem
- PyPI
- Packages
- Django
- 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-02-08
Affected packages
• PyPI Django: >= 0.96.0, < 0.96.4 → fixed in 0.96.4
• PyPI Django: >= 1.0, < 1.0.3 → fixed in 1.0.3
Description
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.
Related
Alias · CVE (1)
- CVE-2009-2659 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… vulnerability
Weakness · CWE (1)
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory weakness
References
- https://nvd.nist.gov/vuln/detail/CVE-2009-2659 advisory
- https://github.com/django/django/commit/da85d76fd6ca846f3b0ff414e042ddb5e62e2e69 web
- https://github.com/django/django/commit/df7f917b7f51ba969faa49d000ffc79572c5dcb4 web
- https://github.com/django/django package
- https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2009-3.yaml web
- https://web.archive.org/web/20111211001428/http://www.securityfocus.com/bid/35859 web
- https://www.redhat.com/archives/fedora-package-announce/2009-August/msg00055.html web
- https://www.redhat.com/archives/fedora-package-announce/2009-August/msg00069.html web
- http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=539134 web
- http://code.djangoproject.com/changeset/11353 web
- http://www.djangoproject.com/weblog/2009/jul/28/security web
- http://www.openwall.com/lists/oss-security/2009/07/29/2 web