cve.bz

CVE-2021-31542

7.5 highEPSS 5.3%

High (7.5). EPSS 5.3% chance of exploitation in the next 30 days. Fixed in django 2.2.21, 3.1.9, 3.2.1.

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.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
EPSS
5.3% chance of exploitation in the next 30 days; higher than 92% of CVEs (scores of 2026-10-31)
CWE
CWE-22
Published
Modified
Record from
the NVD, synced

Affected

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-rxjp-mfm9-w4wrPyPIdjango>=2.2 <2.2.212.2.21
GHSA-rxjp-mfm9-w4wrPyPIdjango>=3.0 <3.1.93.1.9
GHSA-rxjp-mfm9-w4wrPyPIdjango>=3.2 <3.2.13.2.1
PYSEC-2021-7PyPIdjango>=2.2 <2.2.21
>=3.1 <3.1.9
>=3.2 <3.2.1
2.2.21, 3.1.9, 3.2.1

References

Check your stackJSON