CVEvulnerability
CVE-2021-31542
7.5 HIGH
Official page ↗
- Status
- Modified
- Published
- 2021-05-05
- Last modified
- 2026-06-17
- Assigner
- [email protected]
- CVSS 3.1 ([email protected])
- 7.5 HIGH — CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- CVSS 2.0 ([email protected])
- 5.0 MEDIUM — AV:N/AC:L/Au:N/C:P/I:N/A:N
- Weaknesses
- CWE-22
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 configurations
• djangoproject django (>= 2.2 < 2.2.21)
• djangoproject django (>= 3.1 < 3.1.9)
• djangoproject django (>= 3.2 < 3.2.1)
• debian debian linux 9.0
• fedoraproject fedora 34
• fedoraproject fedora 35
Related
Weakness · CWE (1)
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory weakness
References
- http://www.openwall.com/lists/oss-security/2021/05/04/3 Mailing List, Patch, Third Party Advisory
- https://docs.djangoproject.com/en/3.2/releases/security/ Patch, Vendor Advisory
- https://github.com/django/django/commit/04ac1624bdc2fa737188401757cf95ced122d26d github.com
- https://github.com/django/django/commit/25d84d64122c15050a0ee739e859f22ddab5ac48 github.com
- https://github.com/django/django/commit/c98f446c188596d4ba6de71d1b77b4a6c5c2a007 github.com
- https://groups.google.com/forum/#%21forum/django-announce groups.google.com
- https://lists.debian.org/debian-lts-announce/2021/05/msg00005.html Mailing List, Third Party Advisory
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/B4SQG2EAF4WCI2SLRL6XRDJ3RPK3ZRDV/ lists.fedoraproject.org
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZVKYPHR3TKR2ESWXBPOJEKRO2OSJRZUE/ lists.fedoraproject.org
- https://security.netapp.com/advisory/ntap-20210618-0001/ Third Party Advisory
- https://www.djangoproject.com/weblog/2021/may/04/security-releases/ Release Notes, Vendor Advisory
- http://www.openwall.com/lists/oss-security/2021/05/04/3 Mailing List, Patch, Third Party Advisory
- https://docs.djangoproject.com/en/3.2/releases/security/ Patch, Vendor Advisory
- https://github.com/django/django/commit/04ac1624bdc2fa737188401757cf95ced122d26d github.com
- https://github.com/django/django/commit/25d84d64122c15050a0ee739e859f22ddab5ac48 github.com
- https://github.com/django/django/commit/c98f446c188596d4ba6de71d1b77b4a6c5c2a007 github.com
- https://groups.google.com/forum/#%21forum/django-announce groups.google.com
- https://lists.debian.org/debian-lts-announce/2021/05/msg00005.html Mailing List, Third Party Advisory
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/B4SQG2EAF4WCI2SLRL6XRDJ3RPK3ZRDV/ lists.fedoraproject.org
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZVKYPHR3TKR2ESWXBPOJEKRO2OSJRZUE/ lists.fedoraproject.org
- https://security.netapp.com/advisory/ntap-20210618-0001/ Third Party Advisory
- https://www.djangoproject.com/weblog/2021/may/04/security-releases/ Release Notes, Vendor Advisory