{"cve":"CVE-2021-31542","nvd":{"published":"2021-05-05T15:15:08.483","modified":"2026-06-17T03:51:58.720","status":"Modified","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5},"cwes":["CWE-22"],"references":["http://www.openwall.com/lists/oss-security/2021/05/04/3","https://docs.djangoproject.com/en/3.2/releases/security/","https://github.com/django/django/commit/04ac1624bdc2fa737188401757cf95ced122d26d","https://github.com/django/django/commit/25d84d64122c15050a0ee739e859f22ddab5ac48","https://github.com/django/django/commit/c98f446c188596d4ba6de71d1b77b4a6c5c2a007"],"products":["debian:debian_linux","djangoproject:django","fedoraproject:fedora"],"source":"nvd","synced_at":"2026-10-19T21:18:09.669877188+00:00"},"epss":{"cve":"CVE-2021-31542","score":0.05334,"percentile":0.92621,"date":"2026-11-01"},"kev":null,"osv":[{"id":"GHSA-rxjp-mfm9-w4wr","url":"https://osv.dev/vulnerability/GHSA-rxjp-mfm9-w4wr","summary":"Path Traversal in Django","modified":"2024-09-20T15:33:18.289155Z","packages":[{"ecosystem":"PyPI","name":"django","purl":"pkg:pypi/django","ranges":[">=2.2 <2.2.21"],"fixed":["2.2.21"]},{"ecosystem":"PyPI","name":"django","purl":"pkg:pypi/django","ranges":[">=3.0 <3.1.9"],"fixed":["3.1.9"]},{"ecosystem":"PyPI","name":"django","purl":"pkg:pypi/django","ranges":[">=3.2 <3.2.1"],"fixed":["3.2.1"]}]},{"id":"PYSEC-2021-7","url":"https://osv.dev/vulnerability/PYSEC-2021-7","summary":"","modified":"2023-12-06T01:01:11.745914Z","packages":[{"ecosystem":"PyPI","name":"django","purl":"pkg:pypi/django","ranges":[">=2.2 <2.2.21",">=3.1 <3.1.9",">=3.2 <3.2.1"],"fixed":["2.2.21","3.1.9","3.2.1"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}