Skip to content
OpenAdvisories
High · 7.5 CVE-2012-4520 EUVD-2012-0006GHSA-2655-q453-22f9PYSEC-2012-7

Django Allows Arbitrary URL Generation

Published Nov 18, 2012 · Updated Aug 6, 2024 · Assigned by redhat

Description

The django.http.HttpRequest.get_host function in Django 1.3.x before 1.3.4 and 1.4.x before 1.4.2 allows remote attackers to generate and display arbitrary URLs via crafted username and password Host header values.

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.4.2-1 —
Debian 13 python-django 1.4.2-1 —
Debian 12 python-django 1.4.2-1 —
Debian 6.0 python-django 1.2.3-3+squeeze5 DSA-2634-1

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI django >= 1.3, < 1.3.4 1.3.4 GHSA-2655-q453-22f9
PyPI django >= 1.4, < 1.4.2 1.4.2 GHSA-2655-q453-22f9
PyPI django >= 1.3, < 1.3.4 · >= 1.4, < 1.4.2 1.3.4, 1.4.2 PYSEC-2012-7

Advisories 1

References