CVE-2021-31542

low
Published 2021-06-04 · Modified 2023-12-06
CVSS v3
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
CVSS v2
VIR risk
2.5

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.

Predictions

Exploit likelihood
30%
Patch ETA

Heuristic predictions, AS-IS, for prioritization only.

Mitigations

vendor Authored 2026-05-27

Vendor advisory: debian — https://security-tracker.debian.org/tracker/CVE-2021-31542

vendor Authored 2026-05-27

Vendor advisory: suse — https://www.suse.com/security/cve/CVE-2021-31542.html

OS impact

OSVersionStatusFixed in
arch archfixed3.2.1-1
suse slesaffected
debian debianbookwormfixed2:2.2.21-1
debian debianbullseyefixed2:2.2.21-1
debian debianforkyfixed2:2.2.21-1
debian debiansidfixed2:2.2.21-1
debian debiantrixiefixed2:2.2.21-1

Package impact

EcosystemPackageVulnerableFixed
python PyPIdjango>=2.2,<2.2.212.2.21
python PyPIdjango>=3.0,<3.1.93.1.9
python PyPIdjango>=3.2,<3.2.13.2.1

References

Verify integrity in audit chain (admin only). AS-IS.