CVE-2011-4138Djangoproject Django
Medium 5.0 No auth needed
Follow: this CVE · Djangoproject · Djangoproject Django We alert you by email or Slack (account required).
- Priority
- 45
- CVSS 2.0
- 5.0
- EPSS
- 2.4% probability of exploitation in 30 days · percentile 85
- Auth required
- No
- Published
- Oct 19, 2011
- Updated
- Jun 16, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-20
- Vector
AV:N/AC:L/Au:N/C:P/I:N/A:N
What happens
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.
What to do
- Apply the vendor's security update for Django.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | django |
< 1.2.7 |
1.2.7 |
pip install "django>=1.2.7" |
| PyPI | django |
≥ 1.3 < 1.3.1 |
1.3.1 |
pip install "django>=1.3.1" |
| PyPI | django |
< 1.2.7 |
1.2.7 |
pip install "django>=1.2.7" |
| PyPI | django |
≥ 1.3 < 1.3.1 |
1.3.1 |
pip install "django>=1.3.1" |
Per OSV / GitHub Advisories (GHSA-wxg3-mfph-qg9w, PYSEC-2011-3). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| djangoproject | django | ≤ 1.2.6 |
| djangoproject | django | 0.91 |
| djangoproject | django | 0.95 |
| djangoproject | django | 0.95.1 |
| djangoproject | django | 0.96 |
| djangoproject | django | 1.0 |
| djangoproject | django | 1.0.1 |
| djangoproject | django | 1.0.2 |
| djangoproject | django | 1.1 |
| djangoproject | django | 1.1.0 |
| djangoproject | django | 1.1.2 |
| djangoproject | django | 1.1.3 |
| djangoproject | django | 1.2 |
| djangoproject | django | 1.2.1 |
| djangoproject | django | 1.2.1 |
| djangoproject | django | 1.2.2 |
| djangoproject | django | 1.2.3 |
| djangoproject | django | 1.2.4 |
| djangoproject | django | 1.2.5 |
| djangoproject | django | 1.3 |
| djangoproject | django | 1.3 |
| djangoproject | django | 1.3 |
Official sources
References
Links published by the sources. Open them with care.
- openwall.com Patch
- openwall.com Patch
- secunia.com
- www.debian.org
- bugzilla.redhat.com Patch
- hermes.opensuse.org
- www.djangoproject.com Patch Vendor Advisory
- www.djangoproject.com Patch