CVE-2014-3730: Django Django Allows Open Redirects Vulnerability
HIGHCVE-2014-3730 is a HIGH (CVSS 7.5) django allows open redirects vulnerability (CWE-20: Improper Input Validation) affecting Django libraries in the PyPI ecosystem. The issue involves django allows open redirects. Remediation is available by upgrading affected packages to version 1.4.13, 1.5.8, 1.6.5, 1.7b4.
CVE-2014-3730 at a Glance
Security Impact
CVSS: 7.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N).
How to Fix CVE-2014-3730
To remediate this vulnerability, upgrade all affected Django dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install Django>=1.4.13
pip install Django>=1.5.8
pip install Django>=1.6.5
pip install Django>=1.7b4
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show Django
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2014-3730, inspect your installed packages using pip:
pip show Django
Analyze the terminal output to locate any version of Django in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.4.13), your application is affected.
Note: The pip show Django command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-20: Improper Input Validation, where the product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. In Django, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2014-3730 Affected Django Versions
4 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
Django
|
PyPI |
≥ 1.4
< 1.4.13
|
1.4.13
|
|
Django
|
PyPI |
≥ 1.5
< 1.5.8
|
1.5.8
|
|
Django
|
PyPI |
≥ 1.6
< 1.6.5
|
1.6.5
|
|
Django
|
PyPI |
≥ 1.7a1
< 1.7b4
|
1.7b4
|
References
Frequently Asked Questions
What is CVE-2014-3730?
Which Django versions are affected?
What version fixes CVE-2014-3730?
Is Django affected?
What is the CVSS score of CVE-2014-3730?
What CWE is associated with CVE-2014-3730?
How can I check PyPI dependencies for CVE-2014-3730?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-vq3h-3q7v-9prw",
"modified" : "2024-09-18T19:43:07Z",
"published" : "2022-05-14T02:09:43Z",
"aliases" : [ "CVE-2014-3730" ],
"summary" : "Django Allows Open Redirects",
"details" : "The `django.util.http.is_safe_url` function in Django 1.4 before 1.4.13, 1.5 before 1.5.8, 1.6 before 1.6.5, and 1.7 before 1.7b4 does not properly validate URLs, which allows remote attackers to conduct open redirect attacks via a malformed URL, as demonstrated by \"http:\\\\\\djangoproject.com.\"",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:P"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "Django"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.4"
}, {
"fixed" : "1.4.13"
} ]
} ]
}, {
"package" : {
"ecosystem" : "PyPI",
"name" : "Django"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.5"
}, {
"fixed" : "1.5.8"
} ]
} ]
}, {
"package" : {
"ecosystem" : "PyPI",
"name" : "Django"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.6"
}, {
"fixed" : "1.6.5"
} ]
} ]
}, {
"package" : {
"ecosystem" : "PyPI",
"name" : "Django"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.7a1"
}, {
"fixed" : "1.7b4"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2014-3730"
}, {
"type" : "WEB",
"url" : "https://github.com/django/django/commit/601107524523bca02376a0ddc1a06c6fdb8f22f3"
}, {
"type" : "WEB",
"url" : "https://github.com/django/django/commit/7feb54bbae3f637ab3c4dd4831d4385964f574df"
}, {
"type" : "WEB",
"url" : "https://github.com/django/django/commit/ad32c218850ad40972dcef57beb460f8c979dd6d"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/django/django"
}, {
"type" : "WEB",
"url" : "https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2014-20.yaml"
}, {
"type" : "WEB",
"url" : "https://web.archive.org/web/20200228171223/http://www.securityfocus.com/bid/67410"
}, {
"type" : "WEB",
"url" : "https://www.djangoproject.com/weblog/2014/may/14/security-releases-issued"
}, {
"type" : "WEB",
"url" : "http://lists.opensuse.org/opensuse-updates/2014-09/msg00023.html"
}, {
"type" : "WEB",
"url" : "http://secunia.com/advisories/61281"
}, {
"type" : "WEB",
"url" : "http://ubuntu.com/usn/usn-2212-1"
}, {
"type" : "WEB",
"url" : "http://www.debian.org/security/2014/dsa-2934"
}, {
"type" : "WEB",
"url" : "http://www.openwall.com/lists/oss-security/2014/05/14/10"
}, {
"type" : "WEB",
"url" : "http://www.openwall.com/lists/oss-security/2014/05/15/3"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-20" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2023-08-15T22:09:31Z",
"nvd_published_at" : "2014-05-16T15:55:00Z"
}
}