{"id":"CVE-2012-4520","url":"https://www.cyber-defence.io/tools/cve/CVE-2012-4520","generatedAt":"2026-10-28T03:22:26.397Z","title":"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.","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.","published":"2012-11-18T23:55:01.000Z","lastModified":"2026-06-16T23:45:15.000Z","status":"Modified","sourceIdentifier":"secalert@redhat.com","cvss":{"version":"2.0","score":6.4,"severity":"MEDIUM","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:N"},"cwe":["CWE-20"],"affected":["djangoproject/django"],"epss":{"score":0.03665,"percentile":0.89565,"date":"2026-10-26","history":[]},"kev":{"listed":false},"exploits":{"count":0,"verified":false,"firstPublished":null,"source":"Exploit-DB (https://gitlab.com/exploit-database/exploitdb)","entries":[]},"verdict":{"level":"low","text":"Lower severity and a low EPSS score (3.67%). Track it; it rarely justifies an emergency change on its own."},"changes":[],"references":[{"url":"http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=691145","source":"secalert@redhat.com"},{"url":"http://lists.fedoraproject.org/pipermail/package-announce/2012-October/090666.html","source":"secalert@redhat.com"},{"url":"http://lists.fedoraproject.org/pipermail/package-announce/2012-October/090904.html","source":"secalert@redhat.com"},{"url":"http://lists.fedoraproject.org/pipermail/package-announce/2012-October/090970.html","source":"secalert@redhat.com"},{"url":"http://secunia.com/advisories/51033","tags":["Vendor Advisory"],"source":"secalert@redhat.com"},{"url":"http://secunia.com/advisories/51314","tags":["Vendor Advisory"],"source":"secalert@redhat.com"},{"url":"http://securitytracker.com/id?1027708","source":"secalert@redhat.com"},{"url":"http://ubuntu.com/usn/usn-1632-1","source":"secalert@redhat.com"},{"url":"http://ubuntu.com/usn/usn-1757-1","source":"secalert@redhat.com"},{"url":"http://www.debian.org/security/2013/dsa-2634","source":"secalert@redhat.com"},{"url":"http://www.openwall.com/lists/oss-security/2012/10/30/4","source":"secalert@redhat.com"},{"url":"http://www.osvdb.org/86493","source":"secalert@redhat.com"},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=865164","source":"secalert@redhat.com"},{"url":"https://github.com/django/django/commit/92d3430f12171f16f566c9050c40feefb830a4a3","source":"secalert@redhat.com"},{"url":"https://github.com/django/django/commit/9305c0e12d43c4df999c3301a1f0c742264a657e","source":"secalert@redhat.com"},{"url":"https://github.com/django/django/commit/b45c377f8f488955e0c7069cad3f3dd21910b071","source":"secalert@redhat.com"},{"url":"https://www.djangoproject.com/weblog/2012/oct/17/security/","tags":["Patch","Vendor Advisory"],"source":"secalert@redhat.com"},{"url":"http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=691145","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://lists.fedoraproject.org/pipermail/package-announce/2012-October/090666.html","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://lists.fedoraproject.org/pipermail/package-announce/2012-October/090904.html","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://lists.fedoraproject.org/pipermail/package-announce/2012-October/090970.html","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://secunia.com/advisories/51033","tags":["Vendor Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://secunia.com/advisories/51314","tags":["Vendor Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://securitytracker.com/id?1027708","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://ubuntu.com/usn/usn-1632-1","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://ubuntu.com/usn/usn-1757-1","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://www.debian.org/security/2013/dsa-2634","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://www.openwall.com/lists/oss-security/2012/10/30/4","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://www.osvdb.org/86493","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=865164","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://github.com/django/django/commit/92d3430f12171f16f566c9050c40feefb830a4a3","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://github.com/django/django/commit/9305c0e12d43c4df999c3301a1f0c742264a657e","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://github.com/django/django/commit/b45c377f8f488955e0c7069cad3f3dd21910b071","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://www.djangoproject.com/weblog/2012/oct/17/security/","tags":["Patch","Vendor Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"}],"sources":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2012-4520","epss":"https://www.first.org/epss/","kev":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","exploitdb":"https://www.exploit-db.com/"},"licence":"CC BY 4.0 — link back to the CVE Explorer if you publish the results; upstream data remains subject to its own terms."}