{"dataType": "CVE_RECORD", "containers": {"adp": [{"metrics": [{"other": {"type": "Unknown", "content": {"data": "{\"description\":\"not yet assigned\"}"}}}], "affected": [{"vendor": "debian", "product": "python-django", "versions": [{"status": "affected", "version": "0", "lessThan": "1.4.2-1", "versionType": "deb"}], "platforms": ["bookworm", "forky", "sid", "trixie"], "defaultStatus": "unaffected"}, {"vendor": "debian", "product": "python-django-doc", "versions": [{"status": "affected", "version": "0", "lessThan": "1.4.2-1", "versionType": "deb"}], "platforms": ["bookworm", "forky", "sid", "trixie"], "defaultStatus": "unaffected"}], "references": [{"url": "https://security-tracker.debian.org/tracker/CVE-2012-4520"}], "descriptions": [{"lang": "en", "value": "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."}], "providerMetadata": {"orgId": "79363d38-fa19-49d1-9214-5f28da3f3ac5", "shortName": "debian", "dateUpdated": "2013-02-27T00:00:00.000Z", "x_subShortName": "debian"}}, {"metrics": [{"cvssV3_1": {"scope": "UNCHANGED", "version": "3.1", "baseScore": 7.5, "attackVector": "NETWORK", "baseSeverity": "HIGH", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N", "integrityImpact": "HIGH", "userInteraction": "NONE", "attackComplexity": "LOW", "availabilityImpact": "NONE", "privilegesRequired": "NONE", "confidentialityImpact": "NONE"}}, {"cvssV4_0": {"version": "4.0", "baseScore": 8.7, "attackVector": "NETWORK", "baseSeverity": "HIGH", "vectorString": "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", "userInteraction": "NONE", "attackComplexity": "LOW", "attackRequirements": "NONE", "privilegesRequired": "NONE", "subIntegrityImpact": "NONE", "vulnIntegrityImpact": "HIGH", "subAvailabilityImpact": "NONE", "vulnAvailabilityImpact": "NONE", "subConfidentialityImpact": "NONE", "vulnConfidentialityImpact": "NONE"}}, {"other": {"type": "Unknown", "content": {"data": "{\"description\":\"HIGH\"}"}}}], "affected": [{"vendor": "pypi", "product": "django", "versions": [{"status": "affected", "version": "1.3", "lessThan": "1.3.4", "versionType": "custom"}, {"status": "affected", "version": "1.4", "lessThan": "1.4.2", "versionType": "custom"}, {"status": "affected", "version": "1.0"}, {"status": "affected", "version": "1.1"}, {"status": "affected", "version": "1.2"}, {"status": "affected", "version": "1.2.1"}], "defaultStatus": "unaffected"}], "references": [{"url": "http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=691145"}, {"url": "http://lists.fedoraproject.org/pipermail/package-announce/2012-October/090666.html"}, {"url": "http://lists.fedoraproject.org/pipermail/package-announce/2012-October/090904.html"}, {"url": "http://lists.fedoraproject.org/pipermail/package-announce/2012-October/090970.html"}, {"url": "http://secunia.com/advisories/51033"}, {"url": "http://secunia.com/advisories/51314"}, {"url": "http://securitytracker.com/id?1027708"}, {"url": "http://ubuntu.com/usn/usn-1632-1"}, {"url": "http://ubuntu.com/usn/usn-1757-1"}, {"url": "http://www.debian.org/security/2013/dsa-2634"}, {"url": "http://www.openwall.com/lists/oss-security/2012/10/30/4"}, {"url": "http://www.osvdb.org/86493"}, {"url": "https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=691145"}, {"url": "https://bugzilla.redhat.com/show_bug.cgi?id=865164"}, {"url": "https://github.com/advisories/GHSA-2655-q453-22f9"}, {"url": "https://github.com/django/django"}, {"url": "https://github.com/django/django/commit/92d3430f12171f16f566c9050c40feefb830a4a3"}, {"url": "https://github.com/django/django/commit/9305c0e12d43c4df999c3301a1f0c742264a657e"}, {"url": "https://github.com/django/django/commit/b45c377f8f488955e0c7069cad3f3dd21910b071"}, {"url": "https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2012-7.yaml"}, {"url": "https://lists.fedoraproject.org/pipermail/package-announce/2012-October/090666.html"}, {"url": "https://lists.fedoraproject.org/pipermail/package-announce/2012-October/090904.html"}, {"url": "https://lists.fedoraproject.org/pipermail/package-announce/2012-October/090970.html"}, {"url": "https://nvd.nist.gov/vuln/detail/CVE-2012-4520"}, {"url": "https://ubuntu.com/usn/usn-1632-1"}, {"url": "https://ubuntu.com/usn/usn-1757-1"}, {"url": "https://web.archive.org/web/20140417023920/http://securitytracker.com/id?1027708"}, {"url": "https://www.debian.org/security/2013/dsa-2634"}, {"url": "https://www.djangoproject.com/weblog/2012/oct/17/security"}, {"url": "https://www.djangoproject.com/weblog/2012/oct/17/security/"}, {"url": "https://www.openwall.com/lists/oss-security/2012/10/30/4"}], "descriptions": [{"lang": "en", "value": "Django Allows Arbitrary URL Generation"}, {"lang": "en", "value": "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."}, {"lang": "en", "value": "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."}], "providerMetadata": {"orgId": "28c92f92-d60d-412d-b760-e73465c3df22", "shortName": "pypi", "dateUpdated": "2012-11-18T23:55:00Z", "x_subShortName": "pypi"}}], "cna": {"metrics": [{"format": "CVSS", "cvssV2_0": {"version": "2.0", "baseScore": 6.4, "accessVector": "NETWORK", "vectorString": "AV:N/AC:L/Au:N/C:P/I:P/A:N", "authentication": "NONE", "integrityImpact": "PARTIAL", "accessComplexity": "LOW", "availabilityImpact": "NONE", "confidentialityImpact": "PARTIAL"}}], "affected": [{"cpes": ["cpe:2.3:a:djangoproject:django:1.3.1:*:*:*:*:*:*:*", "cpe:2.3:a:djangoproject:django:1.3.2:*:*:*:*:*:*:*", "cpe:2.3:a:djangoproject:django:1.3.3:*:*:*:*:*:*:*", "cpe:2.3:a:djangoproject:django:1.3:*:*:*:*:*:*:*", "cpe:2.3:a:djangoproject:django:1.3:alpha1:*:*:*:*:*:*", "cpe:2.3:a:djangoproject:django:1.3:beta1:*:*:*:*:*:*", "cpe:2.3:a:djangoproject:django:1.4.1:*:*:*:*:*:*:*", "cpe:2.3:a:djangoproject:django:1.4:*:*:*:*:*:*:*"], "vendor": "djangoproject", "product": "django", "versions": [{"status": "affected", "version": "1.3"}, {"status": "affected", "version": "1.3.1"}, {"status": "affected", "version": "1.3.2"}, {"status": "affected", "version": "1.3.3"}, {"status": "affected", "version": "1.4"}, {"status": "affected", "version": "1.4.1"}], "defaultStatus": "unaffected"}], "references": [{"url": "https://www.djangoproject.com/weblog/2012/oct/17/security/", "tags": ["patch", "vendor-advisory"]}, {"url": "http://secunia.com/advisories/51033", "tags": ["vendor-advisory"]}, {"url": "http://secunia.com/advisories/51314", "tags": ["vendor-advisory"]}, {"url": "http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=691145"}, {"url": "http://lists.fedoraproject.org/pipermail/package-announce/2012-October/090666.html"}, {"url": "http://lists.fedoraproject.org/pipermail/package-announce/2012-October/090904.html"}, {"url": "http://lists.fedoraproject.org/pipermail/package-announce/2012-October/090970.html"}, {"url": "http://securitytracker.com/id?1027708"}, {"url": "http://ubuntu.com/usn/usn-1632-1"}, {"url": "http://ubuntu.com/usn/usn-1757-1"}, {"url": "http://www.debian.org/security/2013/dsa-2634"}, {"url": "http://www.openwall.com/lists/oss-security/2012/10/30/4"}, {"url": "http://www.osvdb.org/86493"}, {"url": "https://bugzilla.redhat.com/show_bug.cgi?id=865164"}, {"url": "https://github.com/django/django/commit/92d3430f12171f16f566c9050c40feefb830a4a3"}, {"url": "https://github.com/django/django/commit/9305c0e12d43c4df999c3301a1f0c742264a657e"}, {"url": "https://github.com/django/django/commit/b45c377f8f488955e0c7069cad3f3dd21910b071"}], "descriptions": [{"lang": "en", "value": "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."}, {"lang": "es", "value": "La función django.http.HttpRequest.get_host en Django v1.3.x antes de v1.3.4 y v1.4.x antes de v1.4.2, permite a atacantes remotos generar y mostrar URLs de su elección a través de nombre de usuario y contraseña de la cabecera Host manipulados."}], "problemTypes": [{"descriptions": [{"lang": "en", "cweId": "CWE-20", "description": "CWE-20"}]}], "providerMetadata": {"orgId": "00000000-0000-4000-A000-000000000003", "shortName": "nvd", "dateUpdated": "2012-11-18T23:55:01Z", "x_subShortName": "nvd"}}}, "cveMetadata": {"cveId": "CVE-2012-4520", "state": "PUBLISHED", "dateUpdated": "2025-04-11T00:51:21Z", "assignerOrgId": "53f830b8-0a3f-465b-8143-3b8a9948e749", "datePublished": "2012-11-18T23:55:01Z", "assignerShortName": "redhat"}, "dataVersion": "5.0"}