CVE-2011-4140: CSRF

Published 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.

Affected Software

24 affected components
pip/Django>=1.3<=1.3.1
pip/Django<=1.2.7
djangoproject Django<=1.2.6
djangoproject Django=0.91
djangoproject Django=0.95
djangoproject Django=0.95.1
djangoproject Django=0.96
djangoproject Django=1.0
djangoproject Django=1.0.1
djangoproject Django=1.0.2
djangoproject Django=1.1
djangoproject Django=1.1.0
djangoproject Django=1.1.2
djangoproject Django=1.1.3
djangoproject Django=1.2
djangoproject Django=1.2.1
djangoproject Django=1.2.1-2
djangoproject Django=1.2.2
djangoproject Django=1.2.3
djangoproject Django=1.2.4
djangoproject Django=1.2.5
djangoproject Django=1.3
djangoproject Django=1.3-alpha1
djangoproject Django=1.3-alpha2

Event History

Oct 19, 2011
CVE Published
via MITRE·10:00 AM
Data Sourced
via MITRE·10:00 AM
Description
Jul 23, 2018
Advisory Published
via GitHub·07:51 PM

Frequently Asked Questions

1

What is the severity of CVE-2011-4140?

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

2

How do I fix CVE-2011-4140?

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

3

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.

4

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.

5

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.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203