CVE-2015-3982: Django allows user sessions hijacking via an empty string in the session key
7.5
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.54632%
CWE
Published
5/17/2022
Updated
9/17/2024
KEV Status
No
Technology
Python
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| Django | pip | >= 1.8a1, < 1.8.2 | 1.8.2 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems directly from the session.flush() implementation in the cached_db backend. The commit diff shows the critical line change from setting _session_key to '' (vulnerable) to None (fixed). This incorrect key handling during session flushing allowed cookie collisions. The security advisory explicitly identifies this function as the root cause, and the patch confirms the fix occurs in this specific method.