VDB
CVE-2021-45452
CVE-2021-45452
PUBLISHED
CVSS 5.300000190734863 MEDIUM
Directory-traversal in Django
Reported by mitre · Published January 4, 2022
django is fixed in 4.0.1, 3.2.11 and 2.2.26 (PyPI)
Storage.save in Django 2.2 before 2.2.26, 3.2 before 3.2.11, and 4.0 before 4.0.1 allows directory traversal if crafted filenames are directly passed to it.
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 | PyPI | 4.0.1, 3.2.11, 2.2.26 |
| django | Bitnami | 4.0.1, 3.2.11, 2.2.26 |
| django | djangoproject | 4.0.1, 3.2.11, 2.2.26 |
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 |
| PyPI | Django | 2.2, 3.2, 4.0 |
| n/a | n/a | * |
| alpine | py3-django | 0 |
Timeline
- Jan 4, 2022 CVE Published
- Jan 5, 2022 EPSS Score (30 in total, the first dated here)
- Mar 9, 2026 Security Advisory (2 in total, the first dated here)
- Jul 15, 2026 Coalition ESS Score
- Oct 11, 2026 CVE Updated
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2021-45452
vulnetix vdb fixes CVE-2021-45452
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-45452/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
- x_refsource_CONFIRM
- FEDORA-2022-e7fd530688 vendor-advisoryx_refsource_FEDORA
- https://nvd.nist.gov/vuln/detail/CVE-2021-45452 advisory
- https://github.com/advisories/GHSA-jrh2-hc4r-7jwx advisory
- https://github.com/django/django/commit/4cb35b384ceef52123fc66411a73c36a706825e1 patch
- https://github.com/django/django/commit/8d2f7cff76200cbd2337b2cf1707e383eb1fb54b patch
- https://github.com/django/django/commit/e1592e0f26302e79856cc7f2218ae848ae19b0f6 patch
- https://docs.djangoproject.com/en/4.0/releases/security url
- https://github.com/django/django url
- https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2022-3.yaml advisory
- https://groups.google.com/forum/#!forum/django-announce url
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/B4SQG2EAF4WCI2SLRL6XRDJ3RPK3ZRDV url
- https://security.netapp.com/advisory/ntap-20220121-0005 advisory
- https://www.djangoproject.com/weblog/2022/jan/04/security-releases url