7.5
CWE
20
Advisory Published
CVE Published
Advisory Published
Updated

CVE-2012-4520: Input Validation

First published: Wed Oct 10 2012(Updated: )

It was reported that Django's built-in parsing of the Host header was incorrectly handling username/password information (in django.http.HttpRequest.get_host()). This could allow a remote attacker to cause parts of Django, in particular the password-reset mechanism, to generate and display arbitrary URLs to end-users. Acknowledgements: Red Hat would like to thank the upstream Django project for reporting this vulnerability.

Credit: secalert@redhat.com secalert@redhat.com

Affected SoftwareAffected VersionHow to fix
pip/django>=1.4<1.4.2
1.4.2
pip/django>=1.3<1.3.4
1.3.4
Djangoproject Django=1.3
Djangoproject Django=1.3-alpha1
Djangoproject Django=1.3-beta1
Djangoproject Django=1.3.1
Djangoproject Django=1.3.2
Djangoproject Django=1.3.3
Djangoproject Django=1.4
Djangoproject Django=1.4.1
redhat/Django<1.3.4
1.3.4
redhat/Django<1.4.2
1.4.2
debian/python-django
2:2.2.28-1~deb11u2
3:3.2.19-1+deb12u1
3:4.2.16-1

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Reference Links

Frequently Asked Questions

  • What is the severity of CVE-2012-4520?

    CVE-2012-4520 is classified as a medium-severity vulnerability in Django.

  • How can I fix CVE-2012-4520?

    To fix CVE-2012-4520, upgrade Django to version 1.4.2 or 1.3.4 or later.

  • Which versions of Django are affected by CVE-2012-4520?

    Django versions 1.3 to 1.4.1 and earlier versions of 1.3 are affected by CVE-2012-4520.

  • What type of attack does CVE-2012-4520 enable?

    CVE-2012-4520 allows remote attackers to exploit the incorrect handling of the Host header, potentially affecting authentication mechanisms.

  • Are there any specific components of Django vulnerable due to CVE-2012-4520?

    Yes, particularly the password-reset mechanism in Django is vulnerable due to CVE-2012-4520.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203