Vulnerability · Published May 5, 2021 · Assigned by mitre
CVE-2021-31542
High 7.5
In plain English
A high-severity security flaw in the python-django package (Debian). There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 5.3% (higher than 93% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS NVD)7.5High
Exploit odds (30 days)5.3%top 7.3% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | python-django | 2:2.2.21-1 | DEBIAN-CVE-2021-31542 |
| Debian:13 | python-django | 2:2.2.21-1 | DEBIAN-CVE-2021-31542 |
| Debian:14 | python-django | 2:2.2.21-1 | DEBIAN-CVE-2021-31542 |
| PyPI | django | 2.2.21 | GHSA-rxjp-mfm9-w4wr |
| PyPI | django | 2.2.21, 3.1.9, 3.2.1 | PYSEC-2021-7 |
| PyPI | django | 3.1.9 | GHSA-rxjp-mfm9-w4wr |
| PyPI | django | 3.2.1 | GHSA-rxjp-mfm9-w4wr |
Affected products (as reported)
References
- 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/
- [debian-lts-announce] 20210506 [SECURITY] [DLA 2651-1] python-django security update mailing-list
- FEDORA-2021-01044b8a59 vendor-advisory
- https://security.netapp.com/advisory/ntap-20210618-0001/
- FEDORA-2022-e7fd530688 vendor-advisory
- https://github.com/django/django/commit/04ac1624bdc2fa737188401757cf95ced122d26d
- https://github.com/django/django/commit/25d84d64122c15050a0ee739e859f22ddab5ac48
- https://github.com/django/django/commit/c98f446c188596d4ba6de71d1b77b4a6c5c2a007