ADVISORIES

Vulnerability

CVE-2012-4520

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.

4 advisories report this vulnerability, across 2 ecosystems.

Medium severity All Debian 2PyPI 2

Advisories

  • DEBIAN-CVE-2012-4520

    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.

    CVE-2012-4520 Debian Updated 18 November 2026
  • DSA-2634-1

    python-django - several vulnerabilities

    CVE-2012-4520CVE-2013-0305CVE-2013-0306CVE-2013-1665 Debian Updated 20 November 2026
  • GHSA-2655-q453-22f9

    Django Allows Arbitrary URL Generation

    High CVE-2012-4520 PyPI Updated 18 September 2024
  • PYSEC-2012-7

    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.

    CVE-2012-4520 PyPI Updated 10 June 2026

References