CVE-2015-5143: Django Django Denial-of-service By Filling Session Vulnerability
HIGHCVE-2015-5143 is a HIGH (CVSS 7.5) django denial-of-service by filling session vulnerability (CWE-770: Allocation of Resources Without Limits or Throttling) affecting Django libraries in the PyPI ecosystem. The issue involves django denial-of-service by filling session store. Remediation is available by upgrading affected packages to version 1.4.21, 1.7.9, 1.8.3.
CVE-2015-5143 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:N/A:H).
How to Fix CVE-2015-5143
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.21
pip install Django>=1.7.9
pip install Django>=1.8.3
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-2015-5143, 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.21), 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-770: Allocation of Resources Without Limits or Throttling, where the product allocates a reusable resource or group of resources on behalf of an actor without imposing any intended restrictions on the size or number of resources that can be allocated. 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-2015-5143 Affected Django Versions
3 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
Django
|
PyPI |
< 1.4.21
|
1.4.21
|
|
Django
|
PyPI |
≥ 1.5
< 1.7.9
|
1.7.9
|
|
Django
|
PyPI |
≥ 1.8
< 1.8.3
|
1.8.3
|
References
Frequently Asked Questions
What is CVE-2015-5143?
Which Django versions are affected?
What version fixes CVE-2015-5143?
Is Django affected?
What is the CVSS score of CVE-2015-5143?
What CWE is associated with CVE-2015-5143?
How can I check PyPI dependencies for CVE-2015-5143?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-h582-2pch-3xv3",
"modified" : "2024-09-18T14:45:44Z",
"published" : "2019-07-05T21:10:39Z",
"aliases" : [ "CVE-2015-5143" ],
"summary" : "Django Denial-of-service by filling session store",
"details" : "The session backends in Django before 1.4.21, 1.5.x through 1.6.x, 1.7.x before 1.7.9, and 1.8.x before 1.8.3 allows remote attackers to cause a denial of service (session store consumption) via multiple requests with unique session keys.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "Django"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.4.21"
} ]
} ]
}, {
"package" : {
"ecosystem" : "PyPI",
"name" : "Django"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.5"
}, {
"fixed" : "1.7.9"
} ]
} ]
}, {
"package" : {
"ecosystem" : "PyPI",
"name" : "Django"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.8"
}, {
"fixed" : "1.8.3"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2015-5143"
}, {
"type" : "WEB",
"url" : "https://github.com/django/django/commit/1828f4341ec53a8684112d24031b767eba557663"
}, {
"type" : "WEB",
"url" : "https://github.com/django/django/commit/2e47f3e401c29bc2ba5ab794d483cb0820855fb9"
}, {
"type" : "WEB",
"url" : "https://github.com/django/django/commit/66d12d1ababa8f062857ee5eb43276493720bf16"
}, {
"type" : "ADVISORY",
"url" : "https://github.com/advisories/GHSA-h582-2pch-3xv3"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/django/django"
}, {
"type" : "WEB",
"url" : "https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2015-20.yaml"
}, {
"type" : "WEB",
"url" : "https://security.gentoo.org/glsa/201510-06"
}, {
"type" : "WEB",
"url" : "https://www.djangoproject.com/weblog/2015/jul/08/security-releases"
}, {
"type" : "WEB",
"url" : "http://lists.fedoraproject.org/pipermail/package-announce/2015-November/172084.html"
}, {
"type" : "WEB",
"url" : "http://lists.opensuse.org/opensuse-updates/2015-10/msg00043.html"
}, {
"type" : "WEB",
"url" : "http://lists.opensuse.org/opensuse-updates/2015-10/msg00046.html"
}, {
"type" : "WEB",
"url" : "http://rhn.redhat.com/errata/RHSA-2015-1678.html"
}, {
"type" : "WEB",
"url" : "http://rhn.redhat.com/errata/RHSA-2015-1686.html"
}, {
"type" : "WEB",
"url" : "http://www.debian.org/security/2015/dsa-3305"
}, {
"type" : "WEB",
"url" : "http://www.oracle.com/technetwork/topics/security/bulletinoct2015-2511968.html"
}, {
"type" : "WEB",
"url" : "http://www.ubuntu.com/usn/USN-2671-1"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-770" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2020-06-16T21:38:54Z",
"nvd_published_at" : null
}
}