Skip to content
OpenAdvisories
High · 7.5 CVE-2015-5144 EUVD-2015-0005GHSA-q5qw-4364-5hhmPYSEC-2015-10

Django Vulnerable to HTTP Response Splitting Attack

Published Jul 14, 2015 · Updated Aug 6, 2024 · Assigned by mitre

Description

Django before 1.4.21, 1.5.x through 1.6.x, 1.7.x before 1.7.9, and 1.8.x before 1.8.3 uses an incorrect regular expression, which allows remote attackers to inject arbitrary headers and conduct HTTP response splitting attacks via a newline character in an (1) email message to the EmailValidator, a (2) URL to the URLValidator, or unspecified vectors to the (3) validate_ipv4_address or (4) validate_slug validator.

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.

ReleasePackageFixed inAdvisory
Debian 14 python-django 1.7.9-1 —
Debian 13 python-django 1.7.9-1 —
Debian 12 python-django 1.7.9-1 —
Debian 8 python-django 1.7.7-1+deb8u1 DSA-3305-1
Debian 7 python-django 1.4.5-1+deb7u12 DSA-3305-1
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Debian 6.0 python-django 1.2.3-3+squeeze13 DLA-272-1
ReleasePackageFixed inAdvisory
Ubuntu 14.04 LTS python-django 1.6.1-2ubuntu0.9 USN-2671-1
ReleasePackageFixed inAdvisory
SUSE OpenStack Cloud 5 python-Django 1.6.11-10.2 SUSE-SU-2015:1810-1
SUSE Enterprise Storage 2 python-Django 1.6.11-3.1 SUSE-SU-2016:0044-1
SUSE Enterprise Storage 1.0 python-Django 1.6.11-8.1 SUSE-SU-2015:1815-1

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI django < 1.4.21 1.4.21 GHSA-q5qw-4364-5hhm
PyPI django >= 1.5, < 1.7.9 1.7.9 GHSA-q5qw-4364-5hhm
PyPI django >= 1.8a1, < 1.8.3 1.8.3 GHSA-q5qw-4364-5hhm
PyPI django < 1.4.21 · >= 1.5, < 1.7.9 · >= 1.8, < 1.8.3 1.4.21, 1.7.9, 1.8.3 PYSEC-2015-10

Advisories 6

References