{"api_version":"1","generated_at":"2026-04-23T00:42:18+00:00","cve":"CVE-2021-31542","urls":{"html":"https://cve.report/CVE-2021-31542","api":"https://cve.report/api/cve/CVE-2021-31542.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-31542","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-31542"},"summary":{"title":"CVE-2021-31542","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.","state":"PUBLIC","assigner":"cve@mitre.org","published_at":"2021-05-05 15:15:00","updated_at":"2023-12-07 22:15:00"},"problem_types":["CWE-22"],"metrics":[],"references":[{"url":"http://www.openwall.com/lists/oss-security/2021/05/04/3","name":"http://www.openwall.com/lists/oss-security/2021/05/04/3","refsource":"MISC","tags":[],"title":"oss-security - Django 3.2.1, 3.1.9, and 2.2.21: CVE-2021-31542: Potential\n directory-traversal via uploaded files","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/django/django/commit/04ac1624bdc2fa737188401757cf95ced122d26d","name":"https://github.com/django/django/commit/04ac1624bdc2fa737188401757cf95ced122d26d","refsource":"","tags":[],"title":"","mime":"","httpstatus":"200","archivestatus":"404"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/B4SQG2EAF4WCI2SLRL6XRDJ3RPK3ZRDV/","name":"FEDORA-2022-e7fd530688","refsource":"FEDORA","tags":[],"title":"[SECURITY] Fedora 35 Update: python-django-3.2.12-1.fc35 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://groups.google.com/forum/#%21forum/django-announce","name":"https://groups.google.com/forum/#%21forum/django-announce","refsource":"","tags":[],"title":"Redirecting to Google Groups","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.djangoproject.com/weblog/2021/may/04/security-releases/","name":"https://www.djangoproject.com/weblog/2021/may/04/security-releases/","refsource":"MISC","tags":[],"title":"Django security releases issued: 3.2.1, 3.1.9, and 2.2.21 | Weblog | Django","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://github.com/django/django/commit/c98f446c188596d4ba6de71d1b77b4a6c5c2a007","name":"https://github.com/django/django/commit/c98f446c188596d4ba6de71d1b77b4a6c5c2a007","refsource":"","tags":[],"title":"","mime":"","httpstatus":"200","archivestatus":"404"},{"url":"https://groups.google.com/forum/#!forum/django-announce","name":"https://groups.google.com/forum/#!forum/django-announce","refsource":"MISC","tags":[],"title":"Redirecting to Google Groups","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://docs.djangoproject.com/en/3.2/releases/security/","name":"https://docs.djangoproject.com/en/3.2/releases/security/","refsource":"MISC","tags":[],"title":"Archive of security issues | Django documentation | Django","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://lists.debian.org/debian-lts-announce/2021/05/msg00005.html","name":"[debian-lts-announce] 20210506 [SECURITY] [DLA 2651-1] python-django security update","refsource":"MLIST","tags":[],"title":"[SECURITY] [DLA 2651-1] python-django security update","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZVKYPHR3TKR2ESWXBPOJEKRO2OSJRZUE/","name":"FEDORA-2021-01044b8a59","refsource":"","tags":[],"title":"[SECURITY] Fedora 34 Update: python-django-3.1.9-1.fc34 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://security.netapp.com/advisory/ntap-20210618-0001/","name":"https://security.netapp.com/advisory/ntap-20210618-0001/","refsource":"CONFIRM","tags":[],"title":"CVE-2021-31542 Django Vulnerability in NetApp Products | NetApp Product Security","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/B4SQG2EAF4WCI2SLRL6XRDJ3RPK3ZRDV/","name":"FEDORA-2022-e7fd530688","refsource":"","tags":[],"title":"[SECURITY] Fedora 35 Update: python-django-3.2.12-1.fc35 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZVKYPHR3TKR2ESWXBPOJEKRO2OSJRZUE/","name":"FEDORA-2021-01044b8a59","refsource":"FEDORA","tags":[],"title":"[SECURITY] Fedora 34 Update: python-django-3.1.9-1.fc34 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/django/django/commit/25d84d64122c15050a0ee739e859f22ddab5ac48","name":"https://github.com/django/django/commit/25d84d64122c15050a0ee739e859f22ddab5ac48","refsource":"","tags":[],"title":"","mime":"","httpstatus":"200","archivestatus":"200"},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-31542","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-31542","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2021","cve_id":"31542","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"debian","cpe5":"debian_linux","cpe6":"9.0","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2021","cve_id":"31542","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"djangoproject","cpe5":"django","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2021","cve_id":"31542","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"fedoraproject","cpe5":"fedora","cpe6":"34","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2021","cve_id":"31542","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"fedoraproject","cpe5":"fedora","cpe6":"35","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2021-31542","qid":"159768","title":"Oracle Enterprise Linux Security Update for ol-automation-manager (ELSA-2022-9341)"},{"cve":"CVE-2021-31542","qid":"178583","title":"Debian Security Update for python-django (DLA 2651-1)"},{"cve":"CVE-2021-31542","qid":"179623","title":"Debian Security Update for python-django (CVE-2021-31542)"},{"cve":"CVE-2021-31542","qid":"198351","title":"Ubuntu Security Notification for Django vulnerability (USN-4932-1)"},{"cve":"CVE-2021-31542","qid":"239895","title":"Red Hat Update for Satellite 6.10 (RHSA-2021:4702)"},{"cve":"CVE-2021-31542","qid":"239944","title":"Red Hat Update for OpenStack Platform 16.1 (RHSA-2021:5070)"},{"cve":"CVE-2021-31542","qid":"239947","title":"Red Hat Update for OpenStack Platform 16.1"},{"cve":"CVE-2021-31542","qid":"239950","title":"Red Hat Update for OpenStack Platform 16.1"},{"cve":"CVE-2021-31542","qid":"239953","title":"Red Hat Update for OpenStack Platform 16.1"},{"cve":"CVE-2021-31542","qid":"239955","title":"Red Hat Update for OpenStack Platform 16.1"},{"cve":"CVE-2021-31542","qid":"239959","title":"Red Hat Update for OpenStack Platform 16.1"},{"cve":"CVE-2021-31542","qid":"281191","title":"Fedora Security Update for python (FEDORA-2021-01044b8a59)"},{"cve":"CVE-2021-31542","qid":"282363","title":"Fedora Security Update for python (FEDORA-2022-e7fd530688)"},{"cve":"CVE-2021-31542","qid":"296068","title":"Oracle Solaris 11.4 Support Repository Update (SRU) 34.94.4 Missing (CPUAPR2021)"},{"cve":"CVE-2021-31542","qid":"6000500","title":"Debian Security Update for python-django (DLA 3744-1)"},{"cve":"CVE-2021-31542","qid":"690149","title":"Free Berkeley Software Distribution (FreeBSD) Security Update for django (1766359c-ad6e-11eb-b2a4-080027e50e6d)"},{"cve":"CVE-2021-31542","qid":"982083","title":"Python (pip) Security Update for Django (GHSA-rxjp-mfm9-w4wr)"}]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"cve@mitre.org","ID":"CVE-2021-31542","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"n/a","version":{"version_data":[{"version_value":"n/a"}]}}]},"vendor_name":"n/a"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"n/a"}]}]},"references":{"reference_data":[{"url":"https://groups.google.com/forum/#!forum/django-announce","refsource":"MISC","name":"https://groups.google.com/forum/#!forum/django-announce"},{"url":"https://docs.djangoproject.com/en/3.2/releases/security/","refsource":"MISC","name":"https://docs.djangoproject.com/en/3.2/releases/security/"},{"refsource":"MISC","name":"http://www.openwall.com/lists/oss-security/2021/05/04/3","url":"http://www.openwall.com/lists/oss-security/2021/05/04/3"},{"refsource":"MISC","name":"https://www.djangoproject.com/weblog/2021/may/04/security-releases/","url":"https://www.djangoproject.com/weblog/2021/may/04/security-releases/"},{"refsource":"MLIST","name":"[debian-lts-announce] 20210506 [SECURITY] [DLA 2651-1] python-django security update","url":"https://lists.debian.org/debian-lts-announce/2021/05/msg00005.html"},{"refsource":"FEDORA","name":"FEDORA-2021-01044b8a59","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZVKYPHR3TKR2ESWXBPOJEKRO2OSJRZUE/"},{"refsource":"CONFIRM","name":"https://security.netapp.com/advisory/ntap-20210618-0001/","url":"https://security.netapp.com/advisory/ntap-20210618-0001/"},{"refsource":"FEDORA","name":"FEDORA-2022-e7fd530688","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/B4SQG2EAF4WCI2SLRL6XRDJ3RPK3ZRDV/"}]}},"nvd":{"publishedDate":"2021-05-05 15:15:00","lastModifiedDate":"2023-12-07 22:15:00","problem_types":["CWE-22"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"NONE","availabilityImpact":"NONE","baseScore":7.5,"baseSeverity":"HIGH"},"exploitabilityScore":3.9,"impactScore":3.6},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:N/AC:L/Au:N/C:P/I:N/A:N","accessVector":"NETWORK","accessComplexity":"LOW","authentication":"NONE","confidentialityImpact":"PARTIAL","integrityImpact":"NONE","availabilityImpact":"NONE","baseScore":5},"severity":"MEDIUM","exploitabilityScore":10,"impactScore":2.9,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*","versionStartIncluding":"3.2","versionEndExcluding":"3.2.1","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*","versionStartIncluding":"3.1","versionEndExcluding":"3.1.9","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*","versionStartIncluding":"2.2","versionEndExcluding":"2.2.21","cpe_name":[]}]},{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:*","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2021","CveId":"31542","Ordinal":"206838","Title":"CVE-2021-31542","CVE":"CVE-2021-31542","Year":"2021"},"notes":[{"CveYear":"2021","CveId":"31542","Ordinal":"1","NoteData":"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.","Type":"Description","Title":null},{"CveYear":"2021","CveId":"31542","Ordinal":"2","NoteData":"2021-05-05","Type":"Other","Title":"Published"},{"CveYear":"2021","CveId":"31542","Ordinal":"3","NoteData":"2022-02-10","Type":"Other","Title":"Modified"}]}}}