Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. Django
  4. ›
  5. CVE-2011-4140

CVE-2011-4140: Django Cross-Site Request Forgery vulnerability

July 23, 2018 (updated September 16, 2024)

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.

References

  • bugzilla.redhat.com/show_bug.cgi?id=737366
  • github.com/advisories/GHSA-h95j-h2rv-qrg4
  • github.com/django/django
  • github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2011-5.yaml
  • hermes.opensuse.org/messages/14700881
  • nvd.nist.gov/vuln/detail/CVE-2011-4140
  • web.archive.org/web/20140806062902/http://secunia.com/advisories/46614
  • www.djangoproject.com/weblog/2011/sep/09
  • www.djangoproject.com/weblog/2011/sep/10/127

Code Behaviors & Features

Detect and mitigate CVE-2011-4140 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions up to 1.2.7, all versions starting from 1.3 up to 1.3.1

Solution

Unfortunately, there is no solution available yet.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-352: Cross-Site Request Forgery (CSRF)

Source file

pypi/Django/CVE-2011-4140.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:54 +0000.