Live threats

All CVEs / Djangoproject

CVE-2015-0221Djangoproject Django

Medium 5.0 No auth needed

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Django.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
djangoprojectdjango≤ 1.4.17
djangoprojectdjango1.6
djangoprojectdjango1.6.1
djangoprojectdjango1.6.2
djangoprojectdjango1.6.3
djangoprojectdjango1.6.4
djangoprojectdjango1.6.5
djangoprojectdjango1.6.6
djangoprojectdjango1.6.7
djangoprojectdjango1.6.8
djangoprojectdjango1.6.9
djangoprojectdjango1.7
djangoprojectdjango1.7.1
djangoprojectdjango1.7.2
canonicalubuntu_linux10.04
canonicalubuntu_linux12.04
canonicalubuntu_linux14.04
canonicalubuntu_linux14.10

Official sources

References

Links published by the sources. Open them with care.