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.
References
Link Resource
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
https://github.com/django/django/commit/25d84d64122c15050a0ee739e859f22ddab5ac48
https://github.com/django/django/commit/c98f446c188596d4ba6de71d1b77b4a6c5c2a007
https://groups.google.com/forum/#%21forum/django-announce
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/
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZVKYPHR3TKR2ESWXBPOJEKRO2OSJRZUE/
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
https://github.com/django/django/commit/25d84d64122c15050a0ee739e859f22ddab5ac48
https://github.com/django/django/commit/c98f446c188596d4ba6de71d1b77b4a6c5c2a007
https://groups.google.com/forum/#%21forum/django-announce
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/
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZVKYPHR3TKR2ESWXBPOJEKRO2OSJRZUE/
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
Configurations

Configuration 1 (hide)

OR cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*
cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*
cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*

Configuration 2 (hide)

OR cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*
cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*
cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:*

History

21 Nov 2024, 06:05

Type Values Removed Values Added
References () http://www.openwall.com/lists/oss-security/2021/05/04/3 - Mailing List, Patch, Third Party Advisory () http://www.openwall.com/lists/oss-security/2021/05/04/3 - Mailing List, Patch, Third Party Advisory
References () https://docs.djangoproject.com/en/3.2/releases/security/ - Patch, Vendor Advisory () https://docs.djangoproject.com/en/3.2/releases/security/ - Patch, Vendor Advisory
References () https://github.com/django/django/commit/04ac1624bdc2fa737188401757cf95ced122d26d - () https://github.com/django/django/commit/04ac1624bdc2fa737188401757cf95ced122d26d -
References () https://github.com/django/django/commit/25d84d64122c15050a0ee739e859f22ddab5ac48 - () https://github.com/django/django/commit/25d84d64122c15050a0ee739e859f22ddab5ac48 -
References () https://github.com/django/django/commit/c98f446c188596d4ba6de71d1b77b4a6c5c2a007 - () https://github.com/django/django/commit/c98f446c188596d4ba6de71d1b77b4a6c5c2a007 -
References () https://groups.google.com/forum/#%21forum/django-announce - () https://groups.google.com/forum/#%21forum/django-announce -
References () https://lists.debian.org/debian-lts-announce/2021/05/msg00005.html - Mailing List, Third Party Advisory () https://lists.debian.org/debian-lts-announce/2021/05/msg00005.html - Mailing List, Third Party Advisory
References () https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/B4SQG2EAF4WCI2SLRL6XRDJ3RPK3ZRDV/ - () https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/B4SQG2EAF4WCI2SLRL6XRDJ3RPK3ZRDV/ -
References () https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZVKYPHR3TKR2ESWXBPOJEKRO2OSJRZUE/ - () https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZVKYPHR3TKR2ESWXBPOJEKRO2OSJRZUE/ -
References () https://security.netapp.com/advisory/ntap-20210618-0001/ - Third Party Advisory () https://security.netapp.com/advisory/ntap-20210618-0001/ - Third Party Advisory
References () https://www.djangoproject.com/weblog/2021/may/04/security-releases/ - Release Notes, Vendor Advisory () https://www.djangoproject.com/weblog/2021/may/04/security-releases/ - Release Notes, Vendor Advisory

07 Dec 2023, 22:15

Type Values Removed Values Added
References
  • () https://github.com/django/django/commit/04ac1624bdc2fa737188401757cf95ced122d26d -
  • () https://github.com/django/django/commit/c98f446c188596d4ba6de71d1b77b4a6c5c2a007 -
  • () https://github.com/django/django/commit/25d84d64122c15050a0ee739e859f22ddab5ac48 -

07 Nov 2023, 03:34

Type Values Removed Values Added
References
  • {'url': 'https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/B4SQG2EAF4WCI2SLRL6XRDJ3RPK3ZRDV/', 'name': 'FEDORA-2022-e7fd530688', 'tags': ['Mailing List', 'Third Party Advisory'], 'refsource': 'FEDORA'}
  • {'url': 'https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZVKYPHR3TKR2ESWXBPOJEKRO2OSJRZUE/', 'name': 'FEDORA-2021-01044b8a59', 'tags': ['Mailing List', 'Third Party Advisory'], 'refsource': 'FEDORA'}
  • {'url': 'https://groups.google.com/forum/#!forum/django-announce', 'name': 'https://groups.google.com/forum/#!forum/django-announce', 'tags': ['Release Notes', 'Third Party Advisory'], 'refsource': 'MISC'}
  • () https://groups.google.com/forum/#%21forum/django-announce -
  • () https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZVKYPHR3TKR2ESWXBPOJEKRO2OSJRZUE/ -
  • () https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/B4SQG2EAF4WCI2SLRL6XRDJ3RPK3ZRDV/ -

Information

Published : 2021-05-05 15:15

Updated : 2024-11-21 06:05


NVD link : CVE-2021-31542

Mitre link : CVE-2021-31542

CVE.ORG link : CVE-2021-31542


JSON object : View

Products Affected

debian

  • debian_linux

djangoproject

  • django

fedoraproject

  • fedora
CWE
CWE-22

Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')