CVE-2011-4138 json
Django Might Allow CSRF Requests via URL Verification
published 2011-10-19 15 y ago modified 2026-06-16 4 mo ago also GHSA-wxg3-mfph-qg9w , PYSEC-2011-3 , EUVD-2011-0008
- cvss
- 7.5
- version 3.1, GitHub
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 2.4%
- EPSS 2.4% chance of exploitation in 30 days, percentile 84%
- public exploits
- 0
- none known
Summary
The verify_exists functionality in the URLField implementation in Django before 1.2.7 and 1.3.x before 1.3.1 originally tests a URL's validity through a HEAD request, but then uses a GET request for the new target URL in the case of a redirect, which might allow remote attackers to trigger arbitrary GET requests with an unintended source IP address via a crafted Location header.
Patch / fix
- pypi django 1.2.7, 1.3.1
- python-django Debian 14, Debian 13, Debian 12 1.3.1-1
debian advisories DEBIAN-CVE-2011-4138
- github.com/django/django@1a76dbe commit
- github.com/django/django@7268f8a commit
- bugzilla.redhat.com/show_bug.cgi?id=737366 patch
- openwall.com/lists/oss-security/2011/09/11/1 patch
- djangoproject.com/weblog/2011/sep/10/127/ patch
- openwall.com/lists/oss-security/2011/09/13/2 patch
- djangoproject.com/weblog/2011/sep/09/ advisory
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2011-4138 updated cvss 4.3
Django: v1.3.1, v1.2.7 multiple security flaws
-
Red Hat All currently supported Red Hat productsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
2.41% chance of exploitation in the next 30 days, higher than 84% of all scored CVEs (FIRST EPSS, 2026-11-09).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 2.0 | 5.0 | AV:N/AC:L/Au:N/C:P/I:N/A:N |
| GitHub | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | django | <1.2.7 >=1.3, <1.3.1 |
1.2.7 1.3.1 |
Classification
- Weakness
-
- CWE-20 Improper Input Validation
- Technology feeds
References
-
bugzilla.redhat.com
/show_bug.cgi?id=737366
web, patch, report
-
openwall.com
/lists/oss-security/2011/09/11/1
mailing-list, web, patch
-
djangoproject.com
/weblog/2011/sep/10/127/
patch, article
-
openwall.com
/lists/oss-security/2011/09/13/2
mailing-list, web, patch
-
djangoproject.com
/weblog/2011/sep/09/
patch, vendor-advisory, article
-
github.com
/django/django/commit/1a76dbefdfc60e2d5954c0ba614c3d054ba9c3f0
web
-
github.com
/django/django/commit/7268f8af86186518821d775c530d5558fd726930
web
-
hermes.opensuse.org
/messages/14700881
vendor-advisory, web
-
debian.org
/security/2011/dsa-2332
vendor-advisory, web, advisory
-
secunia.com
/advisories/46614
third-party-advisory, advisory
-
nvd.nist.gov
/vuln/detail/CVE-2011-4138
advisory
-
github.com
/django/django
package
-
github.com
/pypa/advisory-database/tree/main/vulns/django/PYSEC-2011-3.yaml
web
-
djangoproject.com
/weblog/2011/sep/09
web
-
djangoproject.com
/weblog/2011/sep/10/127
web
-
github.com
/advisories/GHSA-wxg3-mfph-qg9w
advisory
Sources
- CVE List CVE-2011-4138
- GitHub Advisory GHSA-wxg3-mfph-qg9w
- NVD CVE-2011-4138
- OSV PYSEC-2011-3
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.