CVE-2020-24584:
Django Incorrect Default Permissions
7.5
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.80909%
CWE
Published
3/18/2021
Updated
11/18/2024
KEV Status
No
Technology
Python
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
django | pip | >= 2.2, < 2.2.16 | 2.2.16 |
django | pip | >= 3.0, < 3.0.10 | 3.0.10 |
django | pip | >= 3.1, < 3.1.1 | 3.1.1 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from intermediate directory permissions in the filesystem cache. The commit diff shows the fix involved wrapping os.makedirs() with umask(0o077) in _createdir. This function's original implementation didn't account for Python 3.7+'s behavior where os.makedirs() doesn't apply mode to existing intermediate directories when exist_ok=True. The direct modification of this function in the security patch confirms its role in the vulnerability.