{"cve":"CVE-2012-4520","nvd":{"published":"2012-11-18T23:55:01.040","modified":"2026-06-16T23:45:15.110","status":"Modified","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.","cvss_v4":null,"cvss_v3":null,"cwes":["CWE-20"],"references":["http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=691145","http://lists.fedoraproject.org/pipermail/package-announce/2012-October/090666.html","http://lists.fedoraproject.org/pipermail/package-announce/2012-October/090904.html","http://lists.fedoraproject.org/pipermail/package-announce/2012-October/090970.html","http://secunia.com/advisories/51033"],"products":["djangoproject:django"],"source":"nvd","synced_at":"2026-10-19T20:25:53.526315492+00:00"},"epss":{"cve":"CVE-2012-4520","score":0.03665,"percentile":0.89643,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-2655-q453-22f9","url":"https://osv.dev/vulnerability/GHSA-2655-q453-22f9","summary":"Django Allows Arbitrary URL Generation","modified":"2024-09-18T19:08:46.313528Z","packages":[{"ecosystem":"PyPI","name":"django","purl":"pkg:pypi/django","ranges":[">=1.3 <1.3.4"],"fixed":["1.3.4"]},{"ecosystem":"PyPI","name":"django","purl":"pkg:pypi/django","ranges":[">=1.4 <1.4.2"],"fixed":["1.4.2"]}]},{"id":"PYSEC-2012-7","url":"https://osv.dev/vulnerability/PYSEC-2012-7","summary":"","modified":"2026-06-10T17:00:53.800785285Z","packages":[{"ecosystem":"PyPI","name":"django","purl":"pkg:pypi/django","ranges":[">=1.3 <1.3.4",">=1.4 <1.4.2"],"fixed":["1.3.4","1.4.2"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}