Skip to content
OpenAdvisories
High · 7.5 CVE-2011-4140 EUVD-2011-0010GHSA-h95j-h2rv-qrg4PYSEC-2011-5

Django Cross-Site Request Forgery vulnerability

Published Oct 19, 2011 · Updated Aug 7, 2024 · Assigned by mitre

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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 python-django 1.3.1-1 —
Debian 13 python-django 1.3.1-1 —
Debian 12 python-django 1.3.1-1 —
Debian 6.0 python-django 1.2.3-3+squeeze2 DSA-2332-1
Debian 5.0 python-django 1.0.2-1+lenny3 DSA-2332-1

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI django <= 1.2.7 — GHSA-h95j-h2rv-qrg4
PyPI django >= 1.3, <= 1.3.1 — GHSA-h95j-h2rv-qrg4
PyPI django < 1.2.7 · >= 1.3, < 1.3.1 1.2.7, 1.3.1 PYSEC-2011-5

Advisories 1

References