{"id":"CVE-2021-28658","aliases":["CVE-2021-28658","GHSA-xgxc-v2qg-chmh","BIT-DJANGO-2021-28658","PYSEC-2021-6"],"related":[],"kind":"vulnerability","state":"published","title":"Directory Traversal in Django","summary":"In Django 2.2 before 2.2.20, 3.0 before 3.0.14, and 3.1 before 3.1.8, MultiPartParser allowed directory traversal via uploaded files with suitably crafted file names. Built-in upload handlers were not affected by this vulnerability.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In Django 2.2 before 2.2.20, 3.0 before 3.0.14, and 3.1 before 3.1.8, MultiPartParser allowed directory traversal via uploaded files with suitably crafted file names. Built-in upload handlers were not affected by this vulnerability.","source":"cvelist"},{"lang":"es","text":"En Django versiones 2.2 anteriores a 2.2.20, versiones 3.0 anteriores a 3.0.14 y versiones 3.1 anteriores a 3.1.8, MultiPartParser permitía un salto de directorio por medio de archivos cargados con nombres de archivo adecuadamente diseñados.&#xa0;Los controladores de carga integrados no están afectados por esta vulnerabilidad","source":"nvd"}],"published":"2021-04-06T14:51:43.000Z","modified":"2026-09-08T08:46:25.545Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","score":5.3,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","score":5.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N","rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","score":5.3,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:P/I:N/A:N","score":5,"rating":"MEDIUM"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"MEDIUM"}],"cwes":["CWE-22"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"2.2a1","status":"affected","fixed":"2.2.20"}],"ecosystem":"PyPI","package":"django","purl":"pkg:pypi/django","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"3.0a1","status":"affected","fixed":"3.0.14"}],"ecosystem":"PyPI","package":"django","purl":"pkg:pypi/django","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"3.1a1","status":"affected","fixed":"3.1.8"}],"ecosystem":"PyPI","package":"django","purl":"pkg:pypi/django","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"2.2","fixed":"2.2.20"},{"status":"affected","introduced":"3.0","fixed":"3.0.14"},{"status":"affected","introduced":"3.1","fixed":"3.1.8"}],"vendor":"djangoproject","product":"django","cpe":"cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"9.0"}],"vendor":"debian","product":"debian_linux","cpe":"cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"34"}],"vendor":"fedoraproject","product":"fedora","cpe":"cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"2.2","status":"affected","fixed":"2.2.20"},{"type":"ecosystem","introduced":"3.0","status":"affected","fixed":"3.0.14"},{"type":"ecosystem","introduced":"3.1","status":"affected","fixed":"3.1.8"}],"ecosystem":"PyPI","package":"django","purl":"pkg:pypi/django","source":"pysec"},{"ranges":[{"type":"semver","introduced":"2.2.0","status":"affected","fixed":"2.2.20"},{"type":"semver","introduced":"3.0.0","status":"affected","fixed":"3.0.14"},{"type":"semver","introduced":"3.1.0","status":"affected","fixed":"3.1.8"}],"ecosystem":"Bitnami","package":"django","purl":"pkg:bitnami/django","source":"bitnami"}],"references":[{"url":"https://docs.djangoproject.com/en/3.1/releases/security/","tags":["advisory","vendor-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd","pysec","bitnami"]},{"url":"https://groups.google.com/g/django-announce/c/ePr5j-ngdPU","tags":["advisory","mailing-list","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec","bitnami"]},{"url":"https://www.djangoproject.com/weblog/2021/apr/06/security-releases/","tags":["advisory","article","vendor-advisory","x-refsource-confirm","x-transferred"],"sources":["cvelist","nvd","pysec","bitnami"]},{"url":"https://lists.debian.org/debian-lts-announce/2021/04/msg00008.html","tags":["advisory","mailing-list","third-party-advisory","web","x-refsource-mlist","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec","bitnami"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZVKYPHR3TKR2ESWXBPOJEKRO2OSJRZUE/","tags":["vendor-advisory","web","x-refsource-fedora","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://security.netapp.com/advisory/ntap-20210528-0001/","tags":["advisory","third-party-advisory","x-refsource-confirm","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-28658","tags":["advisory","web"],"sources":["ghsa","bitnami"]},{"url":"https://docs.djangoproject.com/en/3.1/releases/security","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/advisories/GHSA-xgxc-v2qg-chmh","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/django/django","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2021-6.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZVKYPHR3TKR2ESWXBPOJEKRO2OSJRZUE","tags":["web"],"sources":["ghsa"]},{"url":"https://pypi.org/project/Django","tags":["web"],"sources":["ghsa"]},{"url":"https://security.netapp.com/advisory/ntap-20210528-0001","tags":["web"],"sources":["ghsa"]},{"url":"https://www.djangoproject.com/weblog/2021/apr/06/security-releases","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZVKYPHR3TKR2ESWXBPOJEKRO2OSJRZUE/","tags":["web"],"sources":["pysec"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-28658","url":"https://www.cve.org/CVERecord?id=CVE-2021-28658","licence":"CVE Terms of Use","modified":"2024-08-03T21:47:33.200Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-xgxc-v2qg-chmh","url":"https://github.com/advisories/GHSA-xgxc-v2qg-chmh","licence":"CC-BY-4.0","modified":"2024-09-20T16:08:04.482Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-28658","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-28658","licence":"Public domain","modified":"2026-06-17T03:46:43.290Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2021-6","url":"https://osv.dev/vulnerability/PYSEC-2021-6","licence":"CC-BY-4.0","modified":"2023-12-06T01:01:01.677Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-DJANGO-2021-28658","url":"https://osv.dev/vulnerability/BIT-DJANGO-2021-28658","licence":"Apache-2.0","modified":"2026-09-08T08:46:25.545Z"}],"updatedAt":"2026-11-25T22:58:00.649Z","epss":{"score":0.03367,"percentile":0.89055,"date":"2026-12-01T12:00:22.000Z"}}