Skip to content
OpenAdvisories
High · 7.5 CVE-2014-0480 EUVD-2014-0012GHSA-f7cm-ccfp-3q4rPYSEC-2014-4

Django Incorrectly Validates URLs

Published Aug 26, 2014 · Updated Aug 6, 2024 · Assigned by debian

Description

The core.urlresolvers.reverse function in Django before 1.4.14, 1.5.x before 1.5.9, 1.6.x before 1.6.6, and 1.7 before release candidate 3 does not properly validate URLs, which allows remote attackers to conduct phishing attacks via a // (slash slash) in a URL, which triggers a scheme-relative URL to be generated.

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.6.6-1 —
Debian 13 python-django 1.6.6-1 —
Debian 12 python-django 1.6.6-1 —
Debian 7 python-django 1.4.5-1+deb7u8 DSA-3010-1
Debian 6.0 python-django 1.2.3-3+squeeze11 DLA-65-1
ReleasePackageFixed inAdvisory
Ubuntu 14.04 LTS python-django 1.6.1-2ubuntu0.4 USN-2347-1

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI django < 1.4.14 1.4.14 GHSA-f7cm-ccfp-3q4r
PyPI django >= 1.5, < 1.5.9 1.5.9 GHSA-f7cm-ccfp-3q4r
PyPI django >= 1.6, < 1.6.6 1.6.6 GHSA-f7cm-ccfp-3q4r
PyPI django < 1.4.14 · >= 1.5, < 1.5.9 · >= 1.6, < 1.6.6 1.4.14, 1.5.9, 1.6.6 PYSEC-2014-4

Advisories 3

References