Incorrect default permissions in Django - CVE-2020-24583
Published: September 11, 2020
Vulnerability details
The vulnerability allows a remote attacker to escalate privileges on the system.
The vulnerability exists due to incorrect default permissions for files and folders that are set by the application when "FILE_UPLOAD_DIRECTORY_PERMISSIONS" mode was not applied to intermediate-level directories created in the process of uploading files. A remote attacker can view contents of files and directories.
Affected software
Arch Linux
Ubuntu
Fedora
py3-django (Alpine package)
py-django (Alpine package)
python3-django (Ubuntu package)
python-django
How to mitigate CVE-2020-24583
py-django (Alpine package) - update to 1.11.29-r1
python3-django (Ubuntu package) - update to 2:2.2.12-1ubuntu0.28
python-django - addressed in versions 2.2.16-1.fc31, 3.0.10-3.fc32, 3.0.10-3.fc33
External References
- https://docs.djangoproject.com/en/dev/releases/security/
- https://groups.google.com/forum/#!topic/django-announce/Gdqn58RqIDM
- https://groups.google.com/forum/#!topic/django-announce/zFCMdgUnutU
- https://usn.ubuntu.com/4479-1/
- https://www.djangoproject.com/weblog/2020/sep/01/security-releases/
- https://www.openwall.com/lists/oss-security/2020/09/01/2
Related Security Bulletins
- Multiple vulnerabilities in Django
- Arch Linux update for python-django
- Incorrect default permissions in py3-django (Alpine package)
- Incorrect default permissions in py-django (Alpine package)
- Ubuntu update for python-django
- Fedora 33 update for python-django
- Fedora 32 update for python-django
- Fedora 31 update for python-django