VDB
CVE-2021-28658
CVE-2021-28658
PUBLISHED
CVSS 5.300000190734863 MEDIUM
Directory Traversal in Django
Reported by mitre · Published April 6, 2021
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| django | Bitnami | 3.1.8, 3.0.14, 2.2.20 |
| python-django | Ubuntu:18.04:LTS | 1:1.11.11-1ubuntu1.12 |
Risk scores
CVSS 3.1
5.300000190734863
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| n/a | n/a | * |
| PyPI | Django | 2.2a1, 3.0a1, 3.1a1 |
| arch | python-django | 0 |
| alpine | py3-django | 0 |
Timeline
- Apr 6, 2021 CVE Published
- Apr 14, 2021 EPSS Score (30 in total, the first dated here)
- Feb 4, 2026 CVE Updated
- Mar 7, 2026 Distribution Patch
- Mar 7, 2026 Security Advisory (2 in total, the first dated here)
- Aug 5, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2021-28658
vulnetix vdb fixes CVE-2021-28658
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2021-28658/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- x_refsource_MISC
- x_refsource_MISC
- x_refsource_CONFIRM
- [debian-lts-announce] 20210409 [SECURITY] [DLA 2622-1] python-django security update mailing-listx_refsource_MLIST
- FEDORA-2021-01044b8a59 vendor-advisoryx_refsource_FEDORA
- x_refsource_CONFIRM
- https://nvd.nist.gov/vuln/detail/CVE-2021-28658 advisory
- https://github.com/advisories/GHSA-xgxc-v2qg-chmh advisory
- https://docs.djangoproject.com/en/3.1/releases/security url
- https://github.com/django/django url
- https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2021-6.yaml advisory
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZVKYPHR3TKR2ESWXBPOJEKRO2OSJRZUE url
- https://pypi.org/project/Django url
- https://security.netapp.com/advisory/ntap-20210528-0001 advisory
- https://www.djangoproject.com/weblog/2021/apr/06/security-releases url