{"schemaVersion":3,"id":"CVE-2012-4520","aliases":["GHSA-2655-q453-22f9","PYSEC-2012-7","DEBIAN-CVE-2012-4520"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2012-11-18T23:00:00.000Z","modified":"2024-08-06T20:42:53.672Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":6.4,"severity":"medium","version":"2.0","versionLabel":"v2.0","source":"NVD","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":6.4,"severity":"medium","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:N","exploitability":null,"impact":null,"computed":false},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Pypi","score":8.7,"severity":"high","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","exploitability":null,"impact":null,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Pypi","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","exploitability":10,"impact":6,"computed":true}]},"epss":{"probability":0.03665,"percentile":0.89511,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.03665},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.03665,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.03665,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.03665,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.03665,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.03665,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.03665,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.03665,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.03665,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.03665,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.03665,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.03665,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.03665,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.03665,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.03665,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.03665,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.03665,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.03665,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.03665,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.03665,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.03665,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.03665,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.03665,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.03665,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.03665,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.03665,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.03665,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.03665,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.03665,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.03665,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.03665,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.03665,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.03665,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.03665,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.03665,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.03665,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.03665,"percentile":0.89511}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.03665,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.03665,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.03665,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.03665,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.03665,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.03665,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.03665,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.03665,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.03665,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.03665,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.03665,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.03665,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.03665,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.03665,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.03665,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.03665,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.03665,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.03665,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.03665,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.03665,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.03665,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.03665,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.03665,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.03665,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.03665,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.03665,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.03665,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.03665,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.03665,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.03665,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.03665,"percentile":0.89511}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-20","name":"Improper Input Validation","description":"The product receives input or data, but it does\n        not validate or incorrectly validates that the input has the\n        properties that are required to process the data safely and\n        correctly.","type":"weakness","status":"Stable","abstraction":"Class","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/20.html"}],"affected":[{"vendor":"debian","product":"python-django","name":"python-django","label":"python-django","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/python-django","purlType":"deb","versions":[{"text":"< 1.4.2-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.4.2-1","eol":null,"hubHref":null},{"vendor":"djangoproject","product":"django","name":"django","label":"django","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"1.3","noFixRecorded":false,"fixedIn":null},{"text":"1.3:alpha1","noFixRecorded":false,"fixedIn":null},{"text":"1.3:beta1","noFixRecorded":false,"fixedIn":null},{"text":"1.3.1","noFixRecorded":false,"fixedIn":null},{"text":"1.3.2","noFixRecorded":false,"fixedIn":null},{"text":"1.3.3","noFixRecorded":false,"fixedIn":null},{"text":"1.4","noFixRecorded":false,"fixedIn":null},{"text":"1.4.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"1.3 | 1.3:alpha1 | 1.3:beta1 | 1.3.1 | 1.3.2 | 1.3.3 | 1.4 | 1.4.1","eol":{"isEol":true,"eolDate":"2013-02-26T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"1.3","label":"1.3","eolFrom":"2013-02-26T00:00:00.000Z","isLts":false,"isMaintained":false,"latestVersion":"1.3.7"},"product":{"name":"django","label":"Django","category":"framework"}},"hubHref":"/vendor/djangoproject/django"},{"vendor":"PyPI","product":"django","name":"django","label":"django","ecosystem":"PyPI","cpePart":null,"purl":"pkg:pypi/django","purlType":"pypi","versions":[{"text":"≥ 1.3, < 1.3.4","noFixRecorded":false,"fixedIn":null},{"text":"< 92d3430f12171f16f566c9050c40feefb830a4a3","noFixRecorded":false,"fixedIn":null},{"text":"≥ 1.4, < 1.4.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 1.3, < 1.3.4 | < 92d3430f12171f16f566c9050c40feefb830a4a3 | ≥ 1.4, < 1.4.2","eol":null,"hubHref":null}],"affectedCount":3,"eol":{"hasEol":true,"count":1},"references":[{"url":"http://www.openwall.com/lists/oss-security/2012/10/30/4","label":"www.openwall.com/lists/oss-security/2012/10/30/4","hostname":"www.openwall.com","tags":["Mailing List","X Refsource MLIST","WEB"]},{"url":"http://securitytracker.com/id?1027708","label":"securitytracker.com/id?1027708","hostname":"securitytracker.com","tags":["VDB Entry","X Refsource SECTRACK","WEB"]},{"url":"https://github.com/django/django/commit/b45c377f8f488955e0c7069cad3f3dd21910b071","label":"github.com/django/django/commit/b45c377f8f488955e0c7069cad3f3dd21910b071","hostname":"github.com","tags":["X Refsource CONFIRM","WEB","FIX"]},{"url":"http://www.osvdb.org/86493","label":"www.osvdb.org/86493","hostname":"www.osvdb.org","tags":["VDB Entry","X Refsource OSVDB","WEB"]},{"url":"http://secunia.com/advisories/51314","label":"secunia.com/advisories/51314","hostname":"secunia.com","tags":["Third Party Advisory","X Refsource SECUNIA","Vendor Advisory","Advisory"]},{"url":"http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=691145","label":"bugs.debian.org/cgi-bin/bugreport.cgi?bug=691145","hostname":"bugs.debian.org","tags":["X Refsource MISC","WEB"]},{"url":"http://lists.fedoraproject.org/pipermail/package-announce/2012-October/090970.html","label":"lists.fedoraproject.org/pipermail/package-announce/2012-October/090970.html","hostname":"lists.fedoraproject.org","tags":["Vendor Advisory","X Refsource FEDORA","WEB"]},{"url":"http://ubuntu.com/usn/usn-1757-1","label":"ubuntu.com/usn/usn-1757-1","hostname":"ubuntu.com","tags":["Vendor Advisory","X Refsource UBUNTU","WEB"]},{"url":"https://github.com/django/django/commit/92d3430f12171f16f566c9050c40feefb830a4a3","label":"github.com/django/django/commit/92d3430f12171f16f566c9050c40feefb830a4a3","hostname":"github.com","tags":["X Refsource CONFIRM","WEB","FIX"]},{"url":"http://www.debian.org/security/2013/dsa-2634","label":"www.debian.org/security/2013/dsa-2634","hostname":"www.debian.org","tags":["Vendor Advisory","X Refsource DEBIAN","WEB","Advisory"]},{"url":"https://www.djangoproject.com/weblog/2012/oct/17/security/","label":"www.djangoproject.com/weblog/2012/oct/17/security/","hostname":"www.djangoproject.com","tags":["X Refsource CONFIRM","Patch","Vendor Advisory","ARTICLE"]},{"url":"http://lists.fedoraproject.org/pipermail/package-announce/2012-October/090904.html","label":"lists.fedoraproject.org/pipermail/package-announce/2012-October/090904.html","hostname":"lists.fedoraproject.org","tags":["Vendor Advisory","X Refsource FEDORA","WEB"]},{"url":"https://github.com/django/django/commit/9305c0e12d43c4df999c3301a1f0c742264a657e","label":"github.com/django/django/commit/9305c0e12d43c4df999c3301a1f0c742264a657e","hostname":"github.com","tags":["X Refsource CONFIRM","WEB","FIX"]},{"url":"http://secunia.com/advisories/51033","label":"secunia.com/advisories/51033","hostname":"secunia.com","tags":["Third Party Advisory","X Refsource SECUNIA","Vendor Advisory","Advisory"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=865164","label":"bugzilla.redhat.com/show_bug.cgi?id=865164","hostname":"bugzilla.redhat.com","tags":["X Refsource MISC","WEB","REPORT"]},{"url":"http://lists.fedoraproject.org/pipermail/package-announce/2012-October/090666.html","label":"lists.fedoraproject.org/pipermail/package-announce/2012-October/090666.html","hostname":"lists.fedoraproject.org","tags":["Vendor Advisory","X Refsource FEDORA","WEB"]},{"url":"http://ubuntu.com/usn/usn-1632-1","label":"ubuntu.com/usn/usn-1632-1","hostname":"ubuntu.com","tags":["Vendor Advisory","X Refsource UBUNTU","WEB"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2012-4520","label":"nvd.nist.gov/vuln/detail/CVE-2012-4520","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://www.openwall.com/lists/oss-security/2012/10/30/4","label":"www.openwall.com/lists/oss-security/2012/10/30/4","hostname":"www.openwall.com","tags":["WEB"]},{"url":"https://www.djangoproject.com/weblog/2012/oct/17/security","label":"www.djangoproject.com/weblog/2012/oct/17/security","hostname":"www.djangoproject.com","tags":["WEB"]},{"url":"https://www.debian.org/security/2013/dsa-2634","label":"www.debian.org/security/2013/dsa-2634","hostname":"www.debian.org","tags":["WEB"]},{"url":"https://web.archive.org/web/20140417023920/http://securitytracker.com/id?1027708","label":"web.archive.org/web/20140417023920/http://securitytracker.com/id?1027708","hostname":"web.archive.org","tags":["WEB"]},{"url":"https://ubuntu.com/usn/usn-1757-1","label":"ubuntu.com/usn/usn-1757-1","hostname":"ubuntu.com","tags":["WEB"]},{"url":"https://ubuntu.com/usn/usn-1632-1","label":"ubuntu.com/usn/usn-1632-1","hostname":"ubuntu.com","tags":["WEB"]},{"url":"https://lists.fedoraproject.org/pipermail/package-announce/2012-October/090970.html","label":"lists.fedoraproject.org/pipermail/package-announce/2012-October/090970.html","hostname":"lists.fedoraproject.org","tags":["WEB"]},{"url":"https://lists.fedoraproject.org/pipermail/package-announce/2012-October/090904.html","label":"lists.fedoraproject.org/pipermail/package-announce/2012-October/090904.html","hostname":"lists.fedoraproject.org","tags":["WEB"]},{"url":"https://lists.fedoraproject.org/pipermail/package-announce/2012-October/090666.html","label":"lists.fedoraproject.org/pipermail/package-announce/2012-October/090666.html","hostname":"lists.fedoraproject.org","tags":["WEB"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2012-7.yaml","label":"github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2012-7.yaml","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/django/django","label":"github.com/django/django","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=691145","label":"bugs.debian.org/cgi-bin/bugreport.cgi?bug=691145","hostname":"bugs.debian.org","tags":["WEB"]},{"url":"https://github.com/advisories/GHSA-2655-q453-22f9","label":"github.com/advisories/GHSA-2655-q453-22f9","hostname":"github.com","tags":["Advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2012-4520","label":"security-tracker.debian.org/tracker/CVE-2012-4520","hostname":"security-tracker.debian.org","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":["DSA-2634-1"],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2012-11-18T23:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-06T20:42:53.672Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":26,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-19T17:29:51.296Z","stale":false,"partial":false}}