CVE-2018-14574: Django Django Open Redirect Vulnerability
MODERATECVE-2018-14574 is a MODERATE (CVSS 6.1) django open redirect vulnerability (CWE-601: URL Redirection to Untrusted Site ('Open Redirect')) affecting Django libraries in the PyPI ecosystem. The issue involves django open redirect. Remediation is available by upgrading affected packages to version 2.0.8, 1.11.15.
CVE-2018-14574 at a Glance
Security Impact
CVSS: 6.1
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N).
How to Fix CVE-2018-14574
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>=2.0.8
pip install Django>=1.11.15
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-2018-14574, 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 2.0.8), 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-601: URL Redirection to Untrusted Site ('Open Redirect'), where the web application accepts a user-controlled input that specifies a link to an external site, and uses that link in a redirect. 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-2018-14574 Affected Django Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
Django
|
PyPI |
≥ 2.0
< 2.0.8
|
2.0.8
|
|
Django
|
PyPI |
≥ 1.11
< 1.11.15
|
1.11.15
|
References
Frequently Asked Questions
What is CVE-2018-14574?
Which Django versions are affected?
What version fixes CVE-2018-14574?
Is Django affected?
What is the CVSS score of CVE-2018-14574?
What CWE is associated with CVE-2018-14574?
How can I check PyPI dependencies for CVE-2018-14574?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-5hg3-6c2f-f3wr",
"modified" : "2024-09-17T15:06:31Z",
"published" : "2018-10-04T21:58:46Z",
"aliases" : [ "CVE-2018-14574" ],
"summary" : "Django open redirect",
"details" : "`django.middleware.common.CommonMiddleware` in Django 1.11.x before 1.11.15 and 2.0.x before 2.0.8 has an Open Redirect.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "Django"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.0"
}, {
"fixed" : "2.0.8"
} ]
} ]
}, {
"package" : {
"ecosystem" : "PyPI",
"name" : "Django"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.11"
}, {
"fixed" : "1.11.15"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2018-14574"
}, {
"type" : "WEB",
"url" : "https://github.com/django/django/commit/6fffc3c6d420e44f4029d5643f38d00a39b08525"
}, {
"type" : "WEB",
"url" : "https://github.com/django/django/commit/c4e5ff7fdb5fce447675e90291fd33fddd052b3c"
}, {
"type" : "WEB",
"url" : "https://github.com/django/django/commit/d6eaee092709aad477a9894598496c6deec532ff"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2019:0265"
}, {
"type" : "ADVISORY",
"url" : "https://github.com/advisories/GHSA-5hg3-6c2f-f3wr"
}, {
"type" : "WEB",
"url" : "https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2018-2.yaml"
}, {
"type" : "WEB",
"url" : "https://usn.ubuntu.com/3726-1"
}, {
"type" : "WEB",
"url" : "https://web.archive.org/web/20190901075632/http://www.securitytracker.com/id/1041403"
}, {
"type" : "WEB",
"url" : "https://web.archive.org/web/20200227115315/http://www.securityfocus.com/bid/104970"
}, {
"type" : "WEB",
"url" : "https://www.debian.org/security/2018/dsa-4264"
}, {
"type" : "WEB",
"url" : "https://www.djangoproject.com/weblog/2018/aug/01/security-releases"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-601" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2020-06-16T21:16:20Z",
"nvd_published_at" : null
}
}