CVE-2012-4520

Summary

CVECVE-2012-4520
StatePUBLISHED
Assignerredhat
Source PriorityCVE Program / NVD first with legacy fallback
Published2012-11-18 23:55:01 UTC
Updated2026-04-29 01:13:23 UTC
DescriptionThe 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.

Risk And Classification

Primary CVSS: v2.0 6.4 from [email protected]

AV:N/AC:L/Au:N/C:P/I:P/A:N

Problem Types: CWE-20 | n/a

CVSS v2.0 Breakdown

Access Vector
Network
Access Complexity
Low
Authentication
None
Confidentiality
Partial
Integrity
Partial
Availability
None

AV:N/AC:L/Au:N/C:P/I:P/A:N

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Application Djangoproject Django 1.3 All All All
Application Djangoproject Django 1.3 alpha1 All All
Application Djangoproject Django 1.3 beta1 All All
Application Djangoproject Django 1.3.1 All All All
Application Djangoproject Django 1.3.2 All All All
Application Djangoproject Django 1.3.3 All All All
Application Djangoproject Django 1.4 All All All
Application Djangoproject Django 1.4.1 All All All

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Na N/a affected n/a Not specified

References

ReferenceSourceLinkTags
[SECURITY] Fedora 16 Update: Django-1.3.4-1.fc16 af854a3a-2127-422b-91ae-364da2661108 lists.fedoraproject.org
Fixed a security issue related to password resets · django/django@92d3430 · GitHub af854a3a-2127-422b-91ae-364da2661108 github.com
865164 – (CVE-2012-4520) CVE-2012-4520 Django: Host header poisoning vulnerability af854a3a-2127-422b-91ae-364da2661108 bugzilla.redhat.com
Security releases issued | Weblog | Django af854a3a-2127-422b-91ae-364da2661108 www.djangoproject.com Patch, Vendor Advisory
Debian -- Security Information -- DSA-2634-1 python-django af854a3a-2127-422b-91ae-364da2661108 www.debian.org
www.osvdb.org/86493 af854a3a-2127-422b-91ae-364da2661108 www.osvdb.org
[SECURITY] Fedora 17 Update: Django-1.4.2-1.fc17 af854a3a-2127-422b-91ae-364da2661108 lists.fedoraproject.org
oss-security - Re: CVE Request: Django af854a3a-2127-422b-91ae-364da2661108 www.openwall.com
USN-1757-1: Django vulnerabilities | Ubuntu af854a3a-2127-422b-91ae-364da2661108 ubuntu.com
#691145 - python-django: CVE-2012-4520 - Debian Bug report logs af854a3a-2127-422b-91ae-364da2661108 bugs.debian.org
Django Host Header Filtering Bug Lets Remote Users Cuase Arbitrary URLs to be Displayed - SecurityTracker af854a3a-2127-422b-91ae-364da2661108 securitytracker.com
USN-1632-1: Django vulnerability | Ubuntu af854a3a-2127-422b-91ae-364da2661108 ubuntu.com
Fixed a security issue related to password resets · django/django@b45c377 · GitHub af854a3a-2127-422b-91ae-364da2661108 github.com
About Secunia Research | Flexera af854a3a-2127-422b-91ae-364da2661108 secunia.com Vendor Advisory
About Secunia Research | Flexera af854a3a-2127-422b-91ae-364da2661108 secunia.com Vendor Advisory
Fixed a security issue related to password resets · django/django@9305c0e · GitHub af854a3a-2127-422b-91ae-364da2661108 github.com
[SECURITY] Fedora 18 Update: python-django-1.4.2-1.fc18 af854a3a-2127-422b-91ae-364da2661108 lists.fedoraproject.org
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report