CVE-2015-5964: Django Denial-of-service Possibility Vulnerability
MODERATECVE-2015-5964 is a MODERATE (CVSS 7.5) denial-of-service possibility vulnerability (General Security Weakness) affecting Django libraries in the PyPI ecosystem. The issue involves denial-of-service possibility in logout() view by filling session store. Remediation is available by upgrading affected packages to version 1.7.10, 1.4.22.
CVE-2015-5964 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-5964
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.7.10
pip install Django>=1.4.22
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-5964, 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.7.10), 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 General Security Weakness. 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-5964 Affected Django Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
Django
|
PyPI |
≥ 1.7
< 1.7.10
|
1.7.10
|
|
Django
|
PyPI |
≥ 1.4
< 1.4.22
|
1.4.22
|
References
Frequently Asked Questions
What is CVE-2015-5964?
Which Django versions are affected?
What version fixes CVE-2015-5964?
Is Django affected?
What is the CVSS score of CVE-2015-5964?
What CWE is associated with CVE-2015-5964?
How can I check PyPI dependencies for CVE-2015-5964?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-x38m-486c-2wr9",
"modified" : "2024-09-18T19:59:52Z",
"published" : "2022-05-17T03:16:12Z",
"aliases" : [ "CVE-2015-5964" ],
"summary" : "Denial-of-service possibility in logout() view by filling session store",
"details" : "The (1) `contrib.sessions.backends.base.SessionBase.flush` and (2) `cache_db.SessionStore.flush` functions in Django 1.7.x before 1.7.10, 1.4.x before 1.4.22, and possibly other versions create empty sessions in certain circumstances, which allows remote attackers to cause a denial of service (session store consumption) via unspecified vectors.",
"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/E:U"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "Django"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.7"
}, {
"fixed" : "1.7.10"
} ]
} ]
}, {
"package" : {
"ecosystem" : "PyPI",
"name" : "Django"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.4"
}, {
"fixed" : "1.4.22"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2015-5964"
}, {
"type" : "WEB",
"url" : "https://github.com/django/django/commit/2f5485346ee6f84b4e52068c04e043092daf55f7"
}, {
"type" : "WEB",
"url" : "https://github.com/django/django/commit/575f59f9bc7c59a5e41a081d1f5f55fc859c5012"
}, {
"type" : "WEB",
"url" : "https://github.com/django/django/commit/8cc41ce7a7a8f6bebfdd89d5ab276cd0109f4fc5"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/django/django"
}, {
"type" : "WEB",
"url" : "https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2015-23.yaml"
}, {
"type" : "WEB",
"url" : "https://web.archive.org/web/20150906124157/http://www.securityfocus.com/bid/76440"
}, {
"type" : "WEB",
"url" : "https://web.archive.org/web/20150923161048/http://www.securitytracker.com/id/1033318"
}, {
"type" : "WEB",
"url" : "https://web.archive.org/web/20200228051814/http://www.securityfocus.com/bid/76440"
}, {
"type" : "WEB",
"url" : "https://www.djangoproject.com/weblog/2015/aug/18/security-releases"
}, {
"type" : "WEB",
"url" : "http://lists.fedoraproject.org/pipermail/package-announce/2015-November/172084.html"
}, {
"type" : "WEB",
"url" : "http://rhn.redhat.com/errata/RHSA-2015-1766.html"
}, {
"type" : "WEB",
"url" : "http://rhn.redhat.com/errata/RHSA-2015-1767.html"
}, {
"type" : "WEB",
"url" : "http://rhn.redhat.com/errata/RHSA-2015-1894.html"
}, {
"type" : "WEB",
"url" : "http://www.debian.org/security/2015/dsa-3338"
}, {
"type" : "WEB",
"url" : "http://www.oracle.com/technetwork/topics/security/bulletinoct2015-2511968.html"
}, {
"type" : "WEB",
"url" : "http://www.ubuntu.com/usn/USN-2720-1"
} ],
"database_specific" : {
"cwe_ids" : [ ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2024-04-29T16:38:00Z",
"nvd_published_at" : "2015-08-24T14:59:00Z"
}
}