MEDIUM5.3
PYSEC-2021-6
Quick fix
PYSEC-2021-6 — django: upgrade to the fixed version with the command below.
pip install --upgrade 'django>=2.2.20'Details
In Django 2.2 before 2.2.20, 3.0 before 3.0.14, and 3.1 before 3.1.8, MultiPartParser allowed directory traversal via uploaded files with suitably crafted file names. Built-in upload handlers were not affected by this vulnerability.
Are you affected?
Enter the version of the package you're using.
Affected packages
References
- https://groups.google.com/g/django-announce/c/ePr5j-ngdPU[WEB]
- https://www.djangoproject.com/weblog/2021/apr/06/security-releases/[ARTICLE]
- https://docs.djangoproject.com/en/3.1/releases/security/[WEB]
- https://lists.debian.org/debian-lts-announce/2021/04/msg00008.html[WEB]
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZVKYPHR3TKR2ESWXBPOJEKRO2OSJRZUE/[WEB]
- https://github.com/advisories/GHSA-xgxc-v2qg-chmh[ADVISORY]