{"id":"CVE-2011-4140","sourceIdentifier":"cve@mitre.org","published":"2011-10-19T10:55:04.643","lastModified":"2026-06-16T23:34:30.070","vulnStatus":"Modified","cveTags":[],"descriptions":[{"lang":"en","value":"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."},{"lang":"es","value":"El mecanismo de protección ante CSRF de Django hasta la versión 1.2.7 y 1.3.x hasta la 1.3.1 no maneja apropiadamente las configuraciones del servidor web que soportan cabeceras HTTP Host arbitrarias, lo que permite a atacantes remotos provocar peticiones falsificadas sin autenticar a través de vectores que involucran un registro DNS CNAME y una página web que contenga código JavaScript."}],"affected":[{"source":"cve@mitre.org","affectedData":[{"vendor":"n/a","product":"n/a","versions":[{"version":"n/a","status":"affected"}]}]}],"metrics":{"cvssMetricV2":[{"source":"nvd@nist.gov","type":"Primary","cvssData":{"version":"2.0","vectorString":"AV:N/AC:M/Au:N/C:P/I:P/A:P","baseScore":6.8,"accessVector":"NETWORK","accessComplexity":"MEDIUM","authentication":"NONE","confidentialityImpact":"PARTIAL","integrityImpact":"PARTIAL","availabilityImpact":"PARTIAL"},"baseSeverity":"MEDIUM","exploitabilityScore":8.6,"impactScore":6.4,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":true}]},"weaknesses":[{"source":"nvd@nist.gov","type":"Primary","description":[{"lang":"en","value":"CWE-352"}]}],"configurations":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*","versionEndIncluding":"1.2.6","matchCriteriaId":"96EC0AAD-1199-4CDB-B599-A7959A160CB6"},{"vulnerable":true,"criteria":"cpe:2.3:a:djangoproject:django:0.91:*:*:*:*:*:*:*","matchCriteriaId":"C40AD94B-AC89-4404-973F-5E60468D06EA"},{"vulnerable":true,"criteria":"cpe:2.3:a:djangoproject:django:0.95:*:*:*:*:*:*:*","matchCriteriaId":"529CD787-1C98-4F20-8A3D-90BF2B0BD790"},{"vulnerable":true,"criteria":"cpe:2.3:a:djangoproject:django:0.95.1:*:*:*:*:*:*:*","matchCriteriaId":"65A952FB-3A74-4A39-8870-1F37059C9D12"},{"vulnerable":true,"criteria":"cpe:2.3:a:djangoproject:django:0.96:*:*:*:*:*:*:*","matchCriteriaId":"7E79CFED-F8BF-48E7-897D-D1FB508DC9E1"},{"vulnerable":true,"criteria":"cpe:2.3:a:djangoproject:django:1.0:*:*:*:*:*:*:*","matchCriteriaId":"F9023348-07A7-46E8-B45A-CC19563C5961"},{"vulnerable":true,"criteria":"cpe:2.3:a:djangoproject:django:1.0.1:*:*:*:*:*:*:*","matchCriteriaId":"883C9BEA-8B02-42F7-90BB-F31CBCBF8B1E"},{"vulnerable":true,"criteria":"cpe:2.3:a:djangoproject:django:1.0.2:*:*:*:*:*:*:*","matchCriteriaId":"59302184-7805-4D50-B25C-73E59DAA1E66"},{"vulnerable":true,"criteria":"cpe:2.3:a:djangoproject:django:1.1:*:*:*:*:*:*:*","matchCriteriaId":"56846659-96C8-497C-8404-3975E5B6385B"},{"vulnerable":true,"criteria":"cpe:2.3:a:djangoproject:django:1.1.0:*:*:*:*:*:*:*","matchCriteriaId":"2DAB4639-B81D-412A-A081-EFF46737CA5D"},{"vulnerable":true,"criteria":"cpe:2.3:a:djangoproject:django:1.1.2:*:*:*:*:*:*:*","matchCriteriaId":"BF068CD9-B33A-4C51-9FBA-CFDAE91E174E"},{"vulnerable":true,"criteria":"cpe:2.3:a:djangoproject:django:1.1.3:*:*:*:*:*:*:*","matchCriteriaId":"26D338D9-1504-4933-B833-BD7F1864E89D"},{"vulnerable":true,"criteria":"cpe:2.3:a:djangoproject:django:1.2:*:*:*:*:*:*:*","matchCriteriaId":"AD257D91-EF31-4103-9007-944603ABA271"},{"vulnerable":true,"criteria":"cpe:2.3:a:djangoproject:django:1.2.1:*:*:*:*:*:*:*","matchCriteriaId":"99387F31-9E04-4A73-A1C6-C05F96A8DB38"},{"vulnerable":true,"criteria":"cpe:2.3:a:djangoproject:django:1.2.1:2:*:*:*:*:*:*","matchCriteriaId":"F75FE4BB-2C64-404F-9347-25289556BE56"},{"vulnerable":true,"criteria":"cpe:2.3:a:djangoproject:django:1.2.2:*:*:*:*:*:*:*","matchCriteriaId":"064C9403-8A43-42C7-A1FD-03CC49A32FB1"},{"vulnerable":true,"criteria":"cpe:2.3:a:djangoproject:django:1.2.3:*:*:*:*:*:*:*","matchCriteriaId":"5BCDB95B-88F2-466A-A4F9-4C080183E39B"},{"vulnerable":true,"criteria":"cpe:2.3:a:djangoproject:django:1.2.4:*:*:*:*:*:*:*","matchCriteriaId":"17B99C62-A653-45C1-A061-05A8FAD52107"},{"vulnerable":true,"criteria":"cpe:2.3:a:djangoproject:django:1.2.5:*:*:*:*:*:*:*","matchCriteriaId":"DFA5071B-808F-490E-B407-37CD24ACCA47"},{"vulnerable":true,"criteria":"cpe:2.3:a:djangoproject:django:1.3:*:*:*:*:*:*:*","matchCriteriaId":"8F5428AE-6B63-4D27-BCC4-F228264A6F0E"},{"vulnerable":true,"criteria":"cpe:2.3:a:djangoproject:django:1.3:alpha1:*:*:*:*:*:*","matchCriteriaId":"06F122AC-B9BF-4E27-A7C0-F3E7B5E8A907"},{"vulnerable":true,"criteria":"cpe:2.3:a:djangoproject:django:1.3:alpha2:*:*:*:*:*:*","matchCriteriaId":"AF1504F2-968F-4E1A-A143-BE494E658DF0"}]}]}],"references":[{"url":"http://openwall.com/lists/oss-security/2011/09/11/1","source":"cve@mitre.org","tags":["Patch"]},{"url":"http://openwall.com/lists/oss-security/2011/09/13/2","source":"cve@mitre.org","tags":["Patch"]},{"url":"http://secunia.com/advisories/46614","source":"cve@mitre.org"},{"url":"http://www.debian.org/security/2011/dsa-2332","source":"cve@mitre.org"},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=737366","source":"cve@mitre.org","tags":["Patch"]},{"url":"https://hermes.opensuse.org/messages/14700881","source":"cve@mitre.org"},{"url":"https://www.djangoproject.com/weblog/2011/sep/09/","source":"cve@mitre.org","tags":["Patch","Vendor Advisory"]},{"url":"https://www.djangoproject.com/weblog/2011/sep/10/127/","source":"cve@mitre.org","tags":["Patch"]},{"url":"http://openwall.com/lists/oss-security/2011/09/11/1","source":"af854a3a-2127-422b-91ae-364da2661108","tags":["Patch"]},{"url":"http://openwall.com/lists/oss-security/2011/09/13/2","source":"af854a3a-2127-422b-91ae-364da2661108","tags":["Patch"]},{"url":"http://secunia.com/advisories/46614","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://www.debian.org/security/2011/dsa-2332","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=737366","source":"af854a3a-2127-422b-91ae-364da2661108","tags":["Patch"]},{"url":"https://hermes.opensuse.org/messages/14700881","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://www.djangoproject.com/weblog/2011/sep/09/","source":"af854a3a-2127-422b-91ae-364da2661108","tags":["Patch","Vendor Advisory"]},{"url":"https://www.djangoproject.com/weblog/2011/sep/10/127/","source":"af854a3a-2127-422b-91ae-364da2661108","tags":["Patch"]}]}