CVE-2015-0221Djangoproject Django
Medium 5.0 No auth needed
Follow: this CVE · Djangoproject · Djangoproject Django We alert you by email or Slack (account required).
- Priority
- 45
- CVSS 2.0
- 5.0
- EPSS
- 4.5% probability of exploitation in 30 days · percentile 92
- Auth required
- No
- Published
- Jan 16, 2015
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-399
- Vector
AV:N/AC:L/Au:N/C:N/I:N/A:P
What happens
The django.views.static.serve view in Django before 1.4.18, 1.6.x before 1.6.10, and 1.7.x before 1.7.3 reads files an entire line at a time, which allows remote attackers to cause a denial of service (memory consumption) via a long line in a file.
What to do
- Apply the vendor's security update for Django.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | django |
< 1.4.18 |
1.4.18 |
pip install "django>=1.4.18" |
| PyPI | django |
≥ 1.6 < 1.6.10 |
1.6.10 |
pip install "django>=1.6.10" |
| PyPI | django |
≥ 1.7 < 1.7.3 |
1.7.3 |
pip install "django>=1.7.3" |
| PyPI | django |
< 1.4.18 |
1.4.18 |
pip install "django>=1.4.18" |
| PyPI | django |
≥ 1.5 < 1.6.10 |
1.6.10 |
pip install "django>=1.6.10" |
| PyPI | django |
≥ 1.7 < 1.7.3 |
1.7.3 |
pip install "django>=1.7.3" |
Per OSV / GitHub Advisories (GHSA-jhjg-w2cp-5j44, PYSEC-2015-6). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| djangoproject | django | ≤ 1.4.17 |
| djangoproject | django | 1.6 |
| djangoproject | django | 1.6.1 |
| djangoproject | django | 1.6.2 |
| djangoproject | django | 1.6.3 |
| djangoproject | django | 1.6.4 |
| djangoproject | django | 1.6.5 |
| djangoproject | django | 1.6.6 |
| djangoproject | django | 1.6.7 |
| djangoproject | django | 1.6.8 |
| djangoproject | django | 1.6.9 |
| djangoproject | django | 1.7 |
| djangoproject | django | 1.7.1 |
| djangoproject | django | 1.7.2 |
| canonical | ubuntu_linux | 10.04 |
| canonical | ubuntu_linux | 12.04 |
| canonical | ubuntu_linux | 14.04 |
| canonical | ubuntu_linux | 14.10 |
Official sources
References
Links published by the sources. Open them with care.
- advisories.mageia.org
- lists.fedoraproject.org
- lists.fedoraproject.org
- lists.fedoraproject.org
- lists.opensuse.org
- lists.opensuse.org
- secunia.com
- secunia.com
- secunia.com
- ubuntu.com Patch Vendor Advisory
- www.mandriva.com
- www.mandriva.com
- www.djangoproject.com Exploit Patch Vendor Advisory