{"id":"PYSEC-2012-7","details":"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.","aliases":["CVE-2012-4520","GHSA-2655-q453-22f9"],"modified":"2023-11-08T03:57:07.952074Z","published":"2012-11-18T23:55:00Z","references":[{"type":"FIX","url":"https://github.com/django/django/commit/9305c0e12d43c4df999c3301a1f0c742264a657e"},{"type":"WEB","url":"http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=691145"},{"type":"WEB","url":"http://www.osvdb.org/86493"},{"type":"ARTICLE","url":"https://www.djangoproject.com/weblog/2012/oct/17/security/"},{"type":"WEB","url":"http://securitytracker.com/id?1027708"},{"type":"WEB","url":"http://lists.fedoraproject.org/pipermail/package-announce/2012-October/090666.html"},{"type":"ADVISORY","url":"http://secunia.com/advisories/51314"},{"type":"ADVISORY","url":"http://secunia.com/advisories/51033"},{"type":"FIX","url":"https://github.com/django/django/commit/b45c377f8f488955e0c7069cad3f3dd21910b071"},{"type":"WEB","url":"http://www.openwall.com/lists/oss-security/2012/10/30/4"},{"type":"REPORT","url":"https://bugzilla.redhat.com/show_bug.cgi?id=865164"},{"type":"FIX","url":"https://github.com/django/django/commit/92d3430f12171f16f566c9050c40feefb830a4a3"},{"type":"WEB","url":"http://lists.fedoraproject.org/pipermail/package-announce/2012-October/090904.html"},{"type":"WEB","url":"http://lists.fedoraproject.org/pipermail/package-announce/2012-October/090970.html"},{"type":"WEB","url":"http://ubuntu.com/usn/usn-1632-1"},{"type":"ADVISORY","url":"http://www.debian.org/security/2013/dsa-2634"},{"type":"WEB","url":"http://ubuntu.com/usn/usn-1757-1"}],"affected":[{"package":{"name":"django","ecosystem":"PyPI","purl":"pkg:pypi/django"},"ranges":[{"type":"GIT","repo":"https://github.com/django/django","events":[{"introduced":"0"},{"fixed":"9305c0e12d43c4df999c3301a1f0c742264a657e"},{"fixed":"b45c377f8f488955e0c7069cad3f3dd21910b071"},{"fixed":"92d3430f12171f16f566c9050c40feefb830a4a3"}]},{"type":"ECOSYSTEM","events":[{"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"],"database_specific":{"source":"https://github.com/pypa/advisory-database/blob/main/vulns/django/PYSEC-2012-7.yaml"}}],"schema_version":"1.7.3"}