7.5
CWE
352
Advisory Published
Advisory Published
Updated

CVE-2011-4140: CSRF

First published: Wed Oct 19 2011(Updated: )

The CSRF protection mechanism in Django through 1.2.7 and 1.3.x through 1.3.1 does not properly handle web-server configurations supporting arbitrary HTTP Host headers, which allows remote attackers to trigger unauthenticated forged requests via vectors involving a DNS CNAME record and a web page containing JavaScript code.

Credit: cve@mitre.org cve@mitre.org

Affected SoftwareAffected VersionHow to fix
pip/Django>=1.3<=1.3.1
pip/Django<=1.2.7
Django<=1.2.6
Django=0.91
Django=0.95
Django=0.95.1
Django=0.96
Django=1.0
Django=1.0.1
Django=1.0.2
Django=1.1
Django=1.1.0
Django=1.1.2
Django=1.1.3
Django=1.2
Django=1.2.1
Django=1.2.1-2
Django=1.2.2
Django=1.2.3
Django=1.2.4
Django=1.2.5
Django=1.3
Django=1.3-alpha1
Django=1.3-alpha2

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.

Frequently Asked Questions

  • What is the severity of CVE-2011-4140?

    CVE-2011-4140 is classified as a medium severity vulnerability.

  • How do I fix CVE-2011-4140?

    To fix CVE-2011-4140, upgrade Django to version 1.3.2 or later.

  • What versions of Django are affected by CVE-2011-4140?

    CVE-2011-4140 affects Django versions from 0.91 to 1.3.1, including several intermediate versions.

  • Can CVE-2011-4140 lead to unauthorized access?

    Yes, CVE-2011-4140 can allow attackers to make unauthenticated forged requests, potentially leading to unauthorized access.

  • Is there a workaround for CVE-2011-4140 if I cannot upgrade?

    A potential workaround includes configuring your web server to sanitize HTTP Host headers, although upgrading is strongly recommended.

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