Security mailing lists by PureSourceCode

CVE-2012-4520

MEDIUM 6.4CVSS 2.0

Django Allows Arbitrary URL Generation

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
18 Nov 2012
Last modified
16 Jun 2026
Assigned by
secalert@redhat.com
NVD status
Modified
Weakness
CWE-20
Also known as
GHSA-2655-q453-22f9PYSEC-2012-7
Sources
NVDJSONOSV GHSA-2655-q453-22f9JSONOSV PYSEC-2012-7JSON

Scores

SourceScored byVersionScoreVector / decision
OSV GitHub CVSS 4.0 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
OSV GitHub CVSS 3.1 HIGH 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
NVD nvd@nist.gov (Primary) CVSS 2.0 MEDIUM 6.4 AV:N/AC:L/Au:N/C:P/I:P/A:N

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD djangoproject django
cpe:2.3:a:djangoproject:django:1.3:*:*:*:*:*:*:*
= 1.3
NVD djangoproject django
cpe:2.3:a:djangoproject:django:1.3:alpha1:*:*:*:*:*:*
= 1.3
NVD djangoproject django
cpe:2.3:a:djangoproject:django:1.3:beta1:*:*:*:*:*:*
= 1.3
NVD djangoproject django
cpe:2.3:a:djangoproject:django:1.3.1:*:*:*:*:*:*:*
= 1.3.1
NVD djangoproject django
cpe:2.3:a:djangoproject:django:1.3.2:*:*:*:*:*:*:*
= 1.3.2
NVD djangoproject django
cpe:2.3:a:djangoproject:django:1.3.3:*:*:*:*:*:*:*
= 1.3.3
NVD djangoproject django
cpe:2.3:a:djangoproject:django:1.4:*:*:*:*:*:*:*
= 1.4
NVD djangoproject django
cpe:2.3:a:djangoproject:django:1.4.1:*:*:*:*:*:*:*
= 1.4.1
OSV PyPI django >= 1.3, < 1.3.4 1.3.4
OSV PyPI django >= 1.4, < 1.4.2 1.4.2
OSV PyPI django >= 1.3, < 1.3.4; >= 1.4, < 1.4.2 1.3.4, 1.4.2

References

History

  • 25 Nov 2026 20:17 UTC · NVD: first stored (published 18 Nov 2012)
  • 25 Nov 2026 20:12 UTC · OSV: first stored (published 18 Nov 2012)
  • 25 Nov 2026 20:11 UTC · OSV: first stored (published 17 May 2022)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.