{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2021-31542","published":"2021-05-05T15:15:08.483000Z","last_modified":"2026-06-17T03:51:58.720000Z","status":"Modified","cvss":{"version":"3.1","score":7.5,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","source":"nvd@nist.gov","primary":true},"auth":false,"cwes":["CWE-22"],"cpes":[{"criteria":"cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*","part":"a","vendor":"djangoproject","product":"django","version_start_including":"2.2","version_end_excluding":"2.2.21"},{"criteria":"cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*","part":"a","vendor":"djangoproject","product":"django","version_start_including":"3.1","version_end_excluding":"3.1.9"},{"criteria":"cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*","part":"a","vendor":"djangoproject","product":"django","version_start_including":"3.2","version_end_excluding":"3.2.1"},{"criteria":"cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*","part":"o","vendor":"debian","product":"debian_linux","version":"9.0"},{"criteria":"cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*","part":"o","vendor":"fedoraproject","product":"fedora","version":"34"},{"criteria":"cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:*","part":"o","vendor":"fedoraproject","product":"fedora","version":"35"}],"cpes_truncated":false,"vendors":["djangoproject","debian","fedoraproject"],"products":["djangoproject/django","debian/debian_linux","fedoraproject/fedora"],"epss":{"score":0.04733,"percentile":0.92636,"date":"2026-11-29","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-rxjp-mfm9-w4wr","ecosystem":"PyPI","name":"django","purl":"pkg:pypi/django","ranges":[{"introduced":"2.2","fixed":"2.2.21"}],"versions":["2.2","2.2.1","2.2.10","2.2.11","2.2.12","2.2.13","2.2.14","2.2.15","2.2.16","2.2.17","2.2.18","2.2.19","2.2.2","2.2.20","2.2.3","2.2.4","2.2.5","2.2.6","2.2.7","2.2.8","2.2.9"],"versions_truncated":false},{"advisory":"GHSA-rxjp-mfm9-w4wr","ecosystem":"PyPI","name":"django","purl":"pkg:pypi/django","ranges":[{"introduced":"3.0","fixed":"3.1.9"}],"versions":["3.0","3.0.1","3.0.10","3.0.11","3.0.12","3.0.13","3.0.14","3.0.2","3.0.3","3.0.4","3.0.5","3.0.6","3.0.7","3.0.8","3.0.9","3.1","3.1.1","3.1.2","3.1.3","3.1.4","3.1.5","3.1.6","3.1.7","3.1.8","3.1a1","3.1b1","3.1rc1"],"versions_truncated":false},{"advisory":"GHSA-rxjp-mfm9-w4wr","ecosystem":"PyPI","name":"django","purl":"pkg:pypi/django","ranges":[{"introduced":"3.2","fixed":"3.2.1"}],"versions":["3.2"],"versions_truncated":false},{"advisory":"PYSEC-2021-7","ecosystem":"PyPI","name":"django","purl":"pkg:pypi/django","ranges":[{"introduced":"2.2","fixed":"2.2.21"},{"introduced":"3.1","fixed":"3.1.9"},{"introduced":"3.2","fixed":"3.2.1"}],"versions":["2.2","2.2.1","2.2.2","2.2.3","2.2.4","2.2.5","2.2.6","2.2.7","2.2.8","2.2.9","2.2.10","2.2.11","2.2.12","2.2.13","2.2.14","2.2.15","2.2.16","2.2.17","2.2.18","2.2.19","2.2.20","3.1","3.1.1","3.1.2","3.1.3","3.1.4","3.1.5","3.1.6","3.1.7","3.1.8","3.2"],"versions_truncated":false}],"severity":"high","priority_score":60,"links":{"html_es":"/es/cve/CVE-2021-31542/","html_en":"/en/cve/CVE-2021-31542/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-31542","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-31542"},"untrusted":{"vendor_name":"Djangoproject","product_name":"Django","desc_en":"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":[],"references":[{"url":"http://www.openwall.com/lists/oss-security/2021/05/04/3","tags":["Mailing List","Patch","Third Party Advisory"]},{"url":"https://docs.djangoproject.com/en/3.2/releases/security/","tags":["Patch","Vendor Advisory"]},{"url":"https://github.com/django/django/commit/04ac1624bdc2fa737188401757cf95ced122d26d","tags":[]},{"url":"https://github.com/django/django/commit/25d84d64122c15050a0ee739e859f22ddab5ac48","tags":[]},{"url":"https://github.com/django/django/commit/c98f446c188596d4ba6de71d1b77b4a6c5c2a007","tags":[]},{"url":"https://groups.google.com/forum/#%21forum/django-announce","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2021/05/msg00005.html","tags":["Mailing List","Third Party Advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/B4SQG2EAF4WCI2SLRL6XRDJ3RPK3ZRDV/","tags":[]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZVKYPHR3TKR2ESWXBPOJEKRO2OSJRZUE/","tags":[]},{"url":"https://security.netapp.com/advisory/ntap-20210618-0001/","tags":["Third Party Advisory"]},{"url":"https://www.djangoproject.com/weblog/2021/may/04/security-releases/","tags":["Release Notes","Vendor Advisory"]}]},"bulletins":[{"source":"suse","id":"openSUSE-SU-2026:11270-1","url":"https://www.suse.com/support/update/","published":"2026-07-14T00:00:00+00:00","severity":"critical","exploited":false,"untrusted":{"title":"python313-Django5-5.2.16-1.1 on GA media"}},{"source":"suse","id":"openSUSE-SU-2026:11248-1","url":"https://www.suse.com/support/update/","published":"2026-07-10T00:00:00+00:00","severity":"critical","exploited":false,"untrusted":{"title":"python313-Django-5.2.16-1.1 on GA media"}},{"source":"suse","id":"openSUSE-SU-2026:11235-1","url":"https://www.suse.com/support/update/","published":"2026-07-09T00:00:00+00:00","severity":"critical","exploited":false,"untrusted":{"title":"python313-Django4-4.2.30-4.1 on GA media"}}]}