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.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | python-django | 1.1-1 | — |
| Debian 13 | python-django | 1.1-1 | — |
| Debian 12 | python-django | 1.1-1 | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | django | >= 0.96.0, < 0.96.4 | 0.96.4 | GHSA-9xg7-gg9m-rmq9 |
| PyPI | django | >= 1.0, < 1.0.3 | 1.0.3 | GHSA-9xg7-gg9m-rmq9 |
| PyPI | django | < 1.1 | 1.1 | PYSEC-2009-3 |
References
- [oss-security] 20090729 CVE Request (django) mailing-list
- 35859 vdb-entry
- http://code.djangoproject.com/changeset/11353
- http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=539134
- FEDORA-2009-8169 vendor-advisory
- 36137 third-party-advisory
- 36153 third-party-advisory
- FEDORA-2009-8177 vendor-advisory
- http://www.djangoproject.com/weblog/2009/jul/28/security/