{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2012-4520","id":"CVE-2012-4520","title":"Django Allows Arbitrary URL Generation","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.","descriptionLong":"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:00:00.000Z","updated":"2026-04-10T03:42:28.861223Z","reserved":"2012-08-21T00:00:00.000Z","status":"PUBLISHED","rejected":false,"assigner":"redhat","metric":{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","rating":"high","source":"GitHub"},"metrics":[{"version":"4.0","score":null,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N","rating":"high","source":"GitHub"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","rating":"high","source":"GitHub"}],"rating":"high","products":[],"affectedProducts":[{"vendor":"n/a","product":"n/a","defaultStatus":null,"versions":[{"status":"affected","version":"n/a"}],"platforms":[]}],"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"],"advisory":"GHSA-2655-q453-22f9"}],"cwes":["CWE-20"],"aliases":["GHSA-2655-q453-22f9","PYSEC-2012-7"],"references":[{"url":"http://www.openwall.com/lists/oss-security/2012/10/30/4","tags":["mailing-list","x_refsource_MLIST","x_transferred","web"]},{"url":"http://securitytracker.com/id?1027708","tags":["vdb-entry","x_refsource_SECTRACK","x_transferred","web"]},{"url":"https://github.com/django/django/commit/b45c377f8f488955e0c7069cad3f3dd21910b071","tags":["x_refsource_CONFIRM","x_transferred","fix","web"]},{"url":"http://www.osvdb.org/86493","tags":["vdb-entry","x_refsource_OSVDB","x_transferred","web"]},{"url":"http://secunia.com/advisories/51314","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","advisory"]},{"url":"http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=691145","tags":["x_refsource_MISC","x_transferred","web"]},{"url":"http://lists.fedoraproject.org/pipermail/package-announce/2012-October/090970.html","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred","web"]},{"url":"http://ubuntu.com/usn/usn-1757-1","tags":["vendor-advisory","x_refsource_UBUNTU","x_transferred","web"]},{"url":"https://github.com/django/django/commit/92d3430f12171f16f566c9050c40feefb830a4a3","tags":["x_refsource_CONFIRM","x_transferred","fix","web"]},{"url":"http://www.debian.org/security/2013/dsa-2634","tags":["vendor-advisory","x_refsource_DEBIAN","x_transferred","advisory","web"]},{"url":"https://www.djangoproject.com/weblog/2012/oct/17/security/","tags":["x_refsource_CONFIRM","x_transferred","advisory","fix","article"]},{"url":"http://lists.fedoraproject.org/pipermail/package-announce/2012-October/090904.html","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred","web"]},{"url":"https://github.com/django/django/commit/9305c0e12d43c4df999c3301a1f0c742264a657e","tags":["x_refsource_CONFIRM","x_transferred","fix","web"]},{"url":"http://secunia.com/advisories/51033","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","advisory"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=865164","tags":["x_refsource_MISC","x_transferred","report","web"]},{"url":"http://lists.fedoraproject.org/pipermail/package-announce/2012-October/090666.html","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred","web"]},{"url":"http://ubuntu.com/usn/usn-1632-1","tags":["vendor-advisory","x_refsource_UBUNTU","x_transferred","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2012-4520","tags":["advisory"]},{"url":"https://www.openwall.com/lists/oss-security/2012/10/30/4","tags":["web"]},{"url":"https://www.djangoproject.com/weblog/2012/oct/17/security","tags":["web"]},{"url":"https://www.debian.org/security/2013/dsa-2634","tags":["web"]},{"url":"https://web.archive.org/web/20140417023920/http://securitytracker.com/id?1027708","tags":["web"]},{"url":"https://ubuntu.com/usn/usn-1757-1","tags":["web"]},{"url":"https://ubuntu.com/usn/usn-1632-1","tags":["web"]},{"url":"https://lists.fedoraproject.org/pipermail/package-announce/2012-October/090970.html","tags":["web"]},{"url":"https://lists.fedoraproject.org/pipermail/package-announce/2012-October/090904.html","tags":["web"]},{"url":"https://lists.fedoraproject.org/pipermail/package-announce/2012-October/090666.html","tags":["web"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2012-7.yaml","tags":["web"]},{"url":"https://github.com/django/django","tags":["package"]},{"url":"https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=691145","tags":["web"]},{"url":"https://github.com/advisories/GHSA-2655-q453-22f9","tags":["advisory"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.03736,"epssPercentile":0.90104,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2012-4520","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2012-4520","ok":false,"note":"unavailable (rate limited?)"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2012-4520","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-2655-q453-22f9","ok":true,"note":"GHSA-2655-q453-22f9"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2012-4520","ok":true,"note":"scored 2026-11-20"}],"aiTitle":false,"tech":["django"],"critical":[],"attention":null}