CVE-2012-4520

medium
Published 2022-05-17 · Modified 2023-11-08
CVSS v3
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
CVSS v2
6.4
VIR risk
6.4

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.

Predictions

Exploit likelihood
30%
Patch ETA

Heuristic predictions, AS-IS, for prioritization only.

Mitigations

vendor Authored 2026-05-27

Vendor advisory: debian — https://security-tracker.debian.org/tracker/CVE-2012-4520

vendor Authored 2026-05-27

Vendor advisory: secalert@redhat.com — https://www.djangoproject.com/weblog/2012/oct/17/security/

vendor Authored 2026-05-27

Vendor advisory: secalert@redhat.com — http://secunia.com/advisories/51314

vendor Authored 2026-05-27

Vendor advisory: secalert@redhat.com — http://secunia.com/advisories/51033

OS impact

OSVersionStatusFixed in
debian debianbookwormfixed1.4.2-1
debian debianbullseyefixed1.4.2-1
debian debianforkyfixed1.4.2-1
debian debiansidfixed1.4.2-1
debian debiantrixiefixed1.4.2-1

Package impact

EcosystemPackageVulnerableFixed
python PyPIdjango>=1.3,<1.3.41.3.4
python PyPIdjango>=1.4,<1.4.21.4.2
python PyPIdjango<92d3430f12171f16f566c9050c40feefb830a4a3||>=1.4,<1.4.29305c0e12d43c4df999c3301a1f0c742264a657e

Application impact

VendorProductVersionsFixed
djangoprojectdjango1.3
djangoprojectdjango1.3.1
djangoprojectdjango1.3.2
djangoprojectdjango1.3.3
djangoprojectdjango1.4
djangoprojectdjango1.4.1

References

CWEs

CWE-20

Verify integrity in audit chain (admin only). AS-IS.