{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2021-31542","id":"CVE-2021-31542","title":"Path Traversal in Django","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.","descriptionLong":"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.","published":"2021-05-05T00:00:00.000Z","updated":"2026-11-16T10:45:07.253085774Z","reserved":"2021-04-22T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"mitre","metric":{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","rating":"high","source":"NVD"},"metrics":[{"version":"4.0","score":null,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N","rating":"high","source":"GitHub"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","rating":"high","source":"NVD"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","rating":"high","source":"OSV"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","rating":"high","source":"GitHub"},{"version":"2.0","score":5,"vector":"AV:N/AC:L/Au:N/C:P/I:N/A:N","rating":"medium","source":"NVD"}],"rating":"high","products":[],"affectedProducts":[{"vendor":"n/a","product":"n/a","defaultStatus":null,"versions":[{"version":"n/a","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"PyPI","name":"django","purl":"pkg:pypi/django","ranges":[">=2.2 <2.2.21",">=3.0 <3.1.9",">=3.2 <3.2.1",">=3.1 <3.1.9"],"fixed":["2.2.21","3.1.9","3.2.1"],"advisory":"GHSA-rxjp-mfm9-w4wr"}],"cwes":["CWE-22","CWE-434"],"aliases":["BIT-django-2021-31542","GHSA-rxjp-mfm9-w4wr","PYSEC-2021-7"],"references":[{"url":"https://groups.google.com/forum/#%21forum/django-announce","tags":["x_transferred","web"]},{"url":"https://docs.djangoproject.com/en/3.2/releases/security/","tags":["x_transferred","Patch","Vendor Advisory","fix","web"]},{"url":"http://www.openwall.com/lists/oss-security/2021/05/04/3","tags":["x_transferred","Mailing List","Patch","Third Party Advisory","fix","web"]},{"url":"https://www.djangoproject.com/weblog/2021/may/04/security-releases/","tags":["x_transferred","Release Notes","Vendor Advisory","advisory","article"]},{"url":"https://lists.debian.org/debian-lts-announce/2021/05/msg00005.html","tags":["mailing-list","x_transferred","Mailing List","Third Party Advisory","advisory","web"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZVKYPHR3TKR2ESWXBPOJEKRO2OSJRZUE/","tags":["vendor-advisory","x_transferred","web"]},{"url":"https://security.netapp.com/advisory/ntap-20210618-0001/","tags":["x_transferred","Third Party Advisory","advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/B4SQG2EAF4WCI2SLRL6XRDJ3RPK3ZRDV/","tags":["vendor-advisory","x_transferred","web"]},{"url":"https://github.com/django/django/commit/04ac1624bdc2fa737188401757cf95ced122d26d","tags":["x_transferred","fix","web"]},{"url":"https://github.com/django/django/commit/25d84d64122c15050a0ee739e859f22ddab5ac48","tags":["x_transferred","fix","web"]},{"url":"https://github.com/django/django/commit/c98f446c188596d4ba6de71d1b77b4a6c5c2a007","tags":["x_transferred","fix","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-31542","tags":["advisory"]},{"url":"https://www.djangoproject.com/weblog/2021/may/04/security-releases","tags":["web"]},{"url":"https://security.netapp.com/advisory/ntap-20210618-0001","tags":["web"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZVKYPHR3TKR2ESWXBPOJEKRO2OSJRZUE","tags":["web"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/B4SQG2EAF4WCI2SLRL6XRDJ3RPK3ZRDV","tags":["web"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZVKYPHR3TKR2ESWXBPOJEKRO2OSJRZUE","tags":["web"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/B4SQG2EAF4WCI2SLRL6XRDJ3RPK3ZRDV","tags":["web"]},{"url":"https://groups.google.com/forum/#!forum/django-announce","tags":["web"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2021-7.yaml","tags":["web"]},{"url":"https://github.com/django/django","tags":["package"]},{"url":"https://github.com/advisories/GHSA-rxjp-mfm9-w4wr","tags":["advisory"]},{"url":"https://docs.djangoproject.com/en/3.2/releases/security","tags":["web"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZVKYPHR3TKR2ESWXBPOJEKRO2OSJRZUE/","tags":["web"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.05334,"epssPercentile":0.92812,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2021-31542","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-31542","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2021-31542","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-rxjp-mfm9-w4wr","ok":true,"note":"GHSA-rxjp-mfm9-w4wr"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2021-31542","ok":true,"note":"scored 2026-11-20"}],"aiTitle":false,"tech":["django"],"critical":[],"attention":null}