CVE-2021-31542
CVE-2021-31542
This page contains facts from public vulnerability sources. Check the original advisory before updating.
In Django 2.2 before 2.2.21, 3.1 before 3.1.9, and 3.2 before 3.2.1, MultiPartParser, UploadedFile, and FieldFile allowed directory traversal via uploaded files with suitably crafted file names.
CVSS 7.5 · High · EPSS 5.3% · Fix available
- Published
- Updated
Affected products and versions
n/a
- Versions
- n/a: Affected
No fix published
python-django Debian:12
- Affected ranges
- ECOSYSTEM: < 2:2.2.21-1
Update to 2:2.2.21-1
python-django Debian:13
- Affected ranges
- ECOSYSTEM: < 2:2.2.21-1
Update to 2:2.2.21-1
python-django Debian:14
- Affected ranges
- ECOSYSTEM: < 2:2.2.21-1
Update to 2:2.2.21-1
django PyPI
- Versions
- 2.2
- 2.2.1
- 2.2.10
- 2.2.11
- 2.2.12
- 2.2.13
- 2.2.14
- 2.2.15
- 2.2.16
- 2.2.17
- 2.2.18
- 2.2.19
- 2.2.2
- 2.2.20
- 2.2.3
- 2.2.4
- 2.2.5
- 2.2.6
- 2.2.7
- 2.2.8
- 2.2.9
- Affected ranges
- ECOSYSTEM: ≥ 2.2, < 2.2.21
Update to 2.2.21
django PyPI
- Versions
- 3.0
- 3.0.1
- 3.0.10
- 3.0.11
- 3.0.12
- 3.0.13
- 3.0.14
- 3.0.2
- 3.0.3
- 3.0.4
- 3.0.5
- 3.0.6
- 3.0.7
- 3.0.8
- 3.0.9
- 3.1
- 3.1.1
- 3.1.2
- 3.1.3
- 3.1.4
- 3.1.5
- 3.1.6
- 3.1.7
- 3.1.8
- 3.1a1
- 3.1b1
- 3.1rc1
- Affected ranges
- ECOSYSTEM: ≥ 3.0, < 3.1.9
Update to 3.1.9
django PyPI
- Versions
- 3.2
- Affected ranges
- ECOSYSTEM: ≥ 3.2, < 3.2.1
Update to 3.2.1
django PyPI
- Versions
- 2.2
- 2.2.1
- 2.2.2
- 2.2.3
- 2.2.4
- 2.2.5
- 2.2.6
- 2.2.7
- 2.2.8
- 2.2.9
- 2.2.10
- 2.2.11
- 2.2.12
- 2.2.13
- 2.2.14
- 2.2.15
- 2.2.16
- 2.2.17
- 2.2.18
- 2.2.19
- 2.2.20
- 3.1
- 3.1.1
- 3.1.2
- 3.1.3
- 3.1.4
- 3.1.5
- 3.1.6
- 3.1.7
- 3.1.8
- 3.2
- Affected ranges
- ECOSYSTEM: ≥ 2.2, < 2.2.21 ∪ ≥ 3.1, < 3.1.9 ∪ ≥ 3.2, < 3.2.1
Update to 2.2.21; Update to 3.1.9; Update to 3.2.1
python-django Ubuntu:Pro:14.04:LTS
- Versions
- 1.5.4-1ubuntu1
- 1.6-1
- 1.6.1-1
- 1.6.1-2
- 1.6.1-2ubuntu0.1
- 1.6.1-2ubuntu0.2
- 1.6.1-2ubuntu0.3
- 1.6.1-2ubuntu0.4
- 1.6.1-2ubuntu0.5
- 1.6.1-2ubuntu0.6
- 1.6.1-2ubuntu0.8
- 1.6.1-2ubuntu0.9
- 1.6.1-2ubuntu0.10
- 1.6.1-2ubuntu0.11
- 1.6.1-2ubuntu0.12
- 1.6.1-2ubuntu0.13
- 1.6.1-2ubuntu0.14
- 1.6.1-2ubuntu0.15
- 1.6.1-2ubuntu0.16
- 1.6.11-0ubuntu1
- 1.6.11-0ubuntu1.1
- 1.6.11-0ubuntu1.2
- 1.6.11-0ubuntu1.3
- 1.6.11-0ubuntu1.3+esm1
- 1.6.11-0ubuntu1.3+esm2
- Affected ranges
- ECOSYSTEM: < 1.6.11-0ubuntu1.3+esm3
Update to 1.6.11-0ubuntu1.3+esm3
python-django Ubuntu:Pro:16.04:LTS
- Versions
- 1.7.9-1ubuntu5
- 1.8.5-2ubuntu1
- 1.8.7-1ubuntu1
- 1.8.7-1ubuntu2
- 1.8.7-1ubuntu3
- 1.8.7-1ubuntu4
- 1.8.7-1ubuntu5
- 1.8.7-1ubuntu5.1
- 1.8.7-1ubuntu5.2
- 1.8.7-1ubuntu5.4
- 1.8.7-1ubuntu5.5
- 1.8.7-1ubuntu5.6
- 1.8.7-1ubuntu5.7
- 1.8.7-1ubuntu5.8
- 1.8.7-1ubuntu5.9
- 1.8.7-1ubuntu5.10
- 1.8.7-1ubuntu5.11
- 1.8.7-1ubuntu5.12
- 1.8.7-1ubuntu5.13
- 1.8.7-1ubuntu5.14
- 1.8.7-1ubuntu5.15
- Affected ranges
- ECOSYSTEM: < 1.8.7-1ubuntu5.15+esm1
Update to 1.8.7-1ubuntu5.15+esm1
python-django Ubuntu:18.04:LTS
- Versions
- 1:1.11.4-1ubuntu1
- 1:1.11.6-1ubuntu1
- 1:1.11.9-1ubuntu1
- 1:1.11.11-1ubuntu1
- 1:1.11.11-1ubuntu1.1
- 1:1.11.11-1ubuntu1.2
- 1:1.11.11-1ubuntu1.3
- 1:1.11.11-1ubuntu1.4
- 1:1.11.11-1ubuntu1.5
- 1:1.11.11-1ubuntu1.6
- 1:1.11.11-1ubuntu1.7
- 1:1.11.11-1ubuntu1.8
- 1:1.11.11-1ubuntu1.9
- 1:1.11.11-1ubuntu1.10
- 1:1.11.11-1ubuntu1.11
- 1:1.11.11-1ubuntu1.12
- Affected ranges
- ECOSYSTEM: < 1:1.11.11-1ubuntu1.13
Update to 1:1.11.11-1ubuntu1.13
python-django Ubuntu:20.04:LTS
- Versions
- 1:1.11.22-1ubuntu1
- 2:2.2.6-1ubuntu1
- 2:2.2.9-2ubuntu1
- 2:2.2.10-1
- 2:2.2.10-1ubuntu1
- 2:2.2.11-1
- 2:2.2.12-1
- 2:2.2.12-1ubuntu0.1
- 2:2.2.12-1ubuntu0.2
- 2:2.2.12-1ubuntu0.3
- 2:2.2.12-1ubuntu0.4
- 2:2.2.12-1ubuntu0.5
- Affected ranges
- ECOSYSTEM: < 2:2.2.12-1ubuntu0.6
Update to 2:2.2.12-1ubuntu0.6
Original sources
- https://groups.google.com/forum/#%21forum/django-announce
- https://docs.djangoproject.com/en/3.2/releases/security/
- http://www.openwall.com/lists/oss-security/2021/05/04/3
- https://www.djangoproject.com/weblog/2021/may/04/security-releases/
- https://lists.debian.org/debian-lts-announce/2021/05/msg00005.html
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZVKYPHR3TKR2ESWXBPOJEKRO2OSJRZUE/
- https://security.netapp.com/advisory/ntap-20210618-0001/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/B4SQG2EAF4WCI2SLRL6XRDJ3RPK3ZRDV/
- https://github.com/django/django/commit/04ac1624bdc2fa737188401757cf95ced122d26d
- https://github.com/django/django/commit/25d84d64122c15050a0ee739e859f22ddab5ac48
- https://github.com/django/django/commit/c98f446c188596d4ba6de71d1b77b4a6c5c2a007
- https://nvd.nist.gov/vuln/detail/CVE-2021-31542