CVE-2012-4520

CVE-2012-4520 is a medium-severity vulnerability in Djangoproject Django with a CVSS 2.0 base score of 6.4. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-20.

Key facts

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.

Frequently asked questions

What is 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.
How severe is CVE-2012-4520?
CVE-2012-4520 has a CVSS 2.0 base score of 6.4, rated medium severity.
Is CVE-2012-4520 being actively exploited?
It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 4% (88th percentile), an estimate of the probability of exploitation in the next 30 days.
What products are affected by CVE-2012-4520?
CVE-2012-4520 primarily affects Djangoproject Django. In total, 8 product configurations (CPEs) are listed as vulnerable; see the affected-products list for the exact versions.
How do I fix CVE-2012-4520?
Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround.
When was CVE-2012-4520 published?
CVE-2012-4520 was published on 2012-11-18 and last updated on 2026-06-16.

References

Affected products (8)

More vulnerabilities in Djangoproject Django

All CVEs affecting Djangoproject Django →

Other CWE-20 (Improper Input Validation) vulnerabilities

Browse all CWE-20 (Improper Input Validation) vulnerabilities →