CVE-2011-4140
Description
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.
Severity
not scored
CVSS v3
not scored
Exploit chance (EPSS)
1.093%
chance of exploitation in the next 30 days
higher than 66% of scored CVEs · 2026-11-17
CISA KEV
Not listed
Public exploit code
None public
Exploit references (NVD and CNA): 0
Metasploit modules: 0
Nuclei templates: 0
Weakness
- CWE-352: Cross-Site Request Forgery
Timeline
- 2011-10-19Published by the CNA10:00 UTC
- 2018-07-23GitHub advisory published (GHSA-h95j-h2rv-qrg4)2469 days after publication
Exploit and advisory records
GitHub advisory GHSA-h95j-h2rv-qrg4, affected packages:
| Ecosystem | Package | Vulnerable range | Patched |
|---|---|---|---|
| PyPI | django | <= 1.2.7 | |
| PyPI | django | >= 1.3, <= 1.3.1 |
Affected products
| Vendor | Product |
|---|---|
| djangoproject | django |
References
- http://openwall.com/lists/oss-security/2011/09/11/1
- http://openwall.com/lists/oss-security/2011/09/13/2
- https://bugzilla.redhat.com/show_bug.cgi?id=737366
- https://www.djangoproject.com/weblog/2011/sep/09/
- https://www.djangoproject.com/weblog/2011/sep/10/127/
- http://www.debian.org/security/2011/dsa-2332
- https://hermes.opensuse.org/messages/14700881
- http://secunia.com/advisories/46614
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2011-4140'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2011-4140'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2011-4140'curl 'https://api.contrastcyber.com/cve_products/CVE-2011-4140'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).