CVE-2021-31542
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.
02 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.
03 Exploitation and scoring
- Exploitation
- Not assessed. CISA has not published an exploitation assessment for this record, and it is not in the KEV catalog. That is an absence of assessment, not a finding of no risk.
- SSVC decision
- Not assessed by CISA
- EPSS probability
- 5.33% probability of exploitation activity in the next 30 days.
- EPSS percentile
- Equal to or higher than the score of 92.1% of scored records. A rank, not a probability.
- NVD base score
- 7.5 (CVSS v3.x), scored by the NVD independently of the CNA.
- NVD CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- NVD analysis status
- Modified. NVD last modified this record on 2026-06-17.
- Red Hat severity
- Moderate. Red Hat's rating for its own products, not a CVSS rating.
Exploit-prediction scores from FIRST. Independent scoring and analysis status from the NVD. Vendor severity from Red Hat. Exploitation assessment and catalog membership from CISA.
04 Metadata
- Published
- 2021-05-05 00:00Z5 YR AGO
- Last updated
- 2024-08-03 23:03Z2 YR AGO
- Reserved
- 2021-04-22
- Assigning CNA
- mitre
- Record state
- PUBLISHED
- Severity
- Not rated by the issuing CNA
- CNA CVSS vector
- Not published by the issuing CNA
- Weaknesses
- CWE-22Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')Base
- Data version
- 5.1
- Document digest
- e0121e1a915e03043c3f5065f874a117b7ba96288a11f0679d17e652e8fefad7
05 Affected products
06 References
- groups.google.comhttps://groups.google.com/forum/#%21forum/django-announce
- docs.djangoproject.comhttps://docs.djangoproject.com/en/3.2/releases/security/
- www.openwall.comhttp://www.openwall.com/lists/oss-security/2021/05/04/3
- www.djangoproject.comhttps://www.djangoproject.com/weblog/2021/may/04/security-releases/
- lists.debian.org[debian-lts-announce] 20210506 [SECURITY] [DLA 2651-1] python-django security updatehttps://lists.debian.org/debian-lts-announce/2021/05/msg00005.html
- lists.fedoraproject.orgFEDORA-2021-01044b8a59https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZVKYPHR3TKR2ESWXBPOJEKRO2OSJRZUE/
- security.netapp.comhttps://security.netapp.com/advisory/ntap-20210618-0001/
- lists.fedoraproject.orgFEDORA-2022-e7fd530688https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/B4SQG2EAF4WCI2SLRL6XRDJ3RPK3ZRDV/
- github.comhttps://github.com/django/django/commit/04ac1624bdc2fa737188401757cf95ced122d26d
- github.comhttps://github.com/django/django/commit/25d84d64122c15050a0ee739e859f22ddab5ac48
- github.comhttps://github.com/django/django/commit/c98f446c188596d4ba6de71d1b77b4a6c5c2a007
07 Fixed in
Arch Linux
- python-django Fixed in 3.2.1-1
Source: Arch Linux Security Tracker, the Arch Linux security team. Reformatted by exploit.cc.
Debian 12
- python-django Fixed in 2:2.2.21-1
Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.
Debian 13
- python-django Fixed in 2:2.2.21-1
Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.
Debian 14
- python-django Fixed in 2:2.2.21-1
Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.
Ubuntu 18.04 LTS
- python-django Fixed in 1:1.11.11-1ubuntu1.13
Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.
Ubuntu 20.04 LTS
- python-django Fixed in 2:2.2.12-1ubuntu0.6
Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.
Ubuntu Pro 14.04 LTS
- python-django Fixed in 1.6.11-0ubuntu1.3+esm3Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro
Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.
Ubuntu Pro 16.04 LTS
- python-django Fixed in 1.8.7-1ubuntu5.15+esm1Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro
Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.
A release or ecosystem missing from this list has no record here. It may be unaffected or not covered by the source. Source notices and licences.