{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2012-4520","published":"2012-11-18T23:55:01.040000Z","last_modified":"2026-06-16T23:45:15.110000Z","status":"Modified","cvss":{"version":"2.0","score":6.4,"severity":"MEDIUM","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:N","source":"nvd@nist.gov","primary":true},"auth":false,"cwes":["CWE-20"],"cpes":[{"criteria":"cpe:2.3:a:djangoproject:django:1.3:*:*:*:*:*:*:*","part":"a","vendor":"djangoproject","product":"django","version":"1.3"},{"criteria":"cpe:2.3:a:djangoproject:django:1.3:alpha1:*:*:*:*:*:*","part":"a","vendor":"djangoproject","product":"django","version":"1.3"},{"criteria":"cpe:2.3:a:djangoproject:django:1.3:beta1:*:*:*:*:*:*","part":"a","vendor":"djangoproject","product":"django","version":"1.3"},{"criteria":"cpe:2.3:a:djangoproject:django:1.3.1:*:*:*:*:*:*:*","part":"a","vendor":"djangoproject","product":"django","version":"1.3.1"},{"criteria":"cpe:2.3:a:djangoproject:django:1.3.2:*:*:*:*:*:*:*","part":"a","vendor":"djangoproject","product":"django","version":"1.3.2"},{"criteria":"cpe:2.3:a:djangoproject:django:1.3.3:*:*:*:*:*:*:*","part":"a","vendor":"djangoproject","product":"django","version":"1.3.3"},{"criteria":"cpe:2.3:a:djangoproject:django:1.4:*:*:*:*:*:*:*","part":"a","vendor":"djangoproject","product":"django","version":"1.4"},{"criteria":"cpe:2.3:a:djangoproject:django:1.4.1:*:*:*:*:*:*:*","part":"a","vendor":"djangoproject","product":"django","version":"1.4.1"}],"cpes_truncated":false,"vendors":["djangoproject"],"products":["djangoproject/django"],"epss":{"score":0.03736,"percentile":0.90627,"date":"2026-11-27","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-2655-q453-22f9","ecosystem":"PyPI","name":"django","purl":"pkg:pypi/django","ranges":[{"introduced":"1.3","fixed":"1.3.4"}],"versions":["1.3","1.3.1","1.3.2","1.3.3"],"versions_truncated":false},{"advisory":"GHSA-2655-q453-22f9","ecosystem":"PyPI","name":"django","purl":"pkg:pypi/django","ranges":[{"introduced":"1.4","fixed":"1.4.2"}],"versions":["1.4","1.4.1"],"versions_truncated":false},{"advisory":"PYSEC-2012-7","ecosystem":"PyPI","name":"django","purl":"pkg:pypi/django","ranges":[{"introduced":"1.3","fixed":"1.3.4"},{"introduced":"1.4","fixed":"1.4.2"}],"versions":["1.3","1.3.1","1.3.2","1.3.3","1.4","1.4.1","1.2.1","1.2","1.1","1.0"],"versions_truncated":false}],"severity":"medium","priority_score":54,"links":{"html_es":"/es/cve/CVE-2012-4520/","html_en":"/en/cve/CVE-2012-4520/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2012-4520","cve_org":"https://www.cve.org/CVERecord?id=CVE-2012-4520"},"untrusted":{"vendor_name":"Djangoproject","product_name":"Django","desc_en":"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.","affected":[],"references":[{"url":"http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=691145","tags":[]},{"url":"http://lists.fedoraproject.org/pipermail/package-announce/2012-October/090666.html","tags":[]},{"url":"http://lists.fedoraproject.org/pipermail/package-announce/2012-October/090904.html","tags":[]},{"url":"http://lists.fedoraproject.org/pipermail/package-announce/2012-October/090970.html","tags":[]},{"url":"http://secunia.com/advisories/51033","tags":["Vendor Advisory"]},{"url":"http://secunia.com/advisories/51314","tags":["Vendor Advisory"]},{"url":"http://securitytracker.com/id?1027708","tags":[]},{"url":"http://ubuntu.com/usn/usn-1632-1","tags":[]},{"url":"http://ubuntu.com/usn/usn-1757-1","tags":[]},{"url":"http://www.debian.org/security/2013/dsa-2634","tags":[]},{"url":"http://www.openwall.com/lists/oss-security/2012/10/30/4","tags":[]},{"url":"http://www.osvdb.org/86493","tags":[]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=865164","tags":[]},{"url":"https://github.com/django/django/commit/92d3430f12171f16f566c9050c40feefb830a4a3","tags":[]},{"url":"https://github.com/django/django/commit/9305c0e12d43c4df999c3301a1f0c742264a657e","tags":[]},{"url":"https://github.com/django/django/commit/b45c377f8f488955e0c7069cad3f3dd21910b071","tags":[]},{"url":"https://www.djangoproject.com/weblog/2012/oct/17/security/","tags":["Patch","Vendor Advisory"]}]}}