Django before 2.2.24, 3.x before 3.1.12, and 3.2.x before 3.2.4 has a potential directory…
Key facts
- Attack vector
- Network
- Privileges required
- High
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Information disclosure
- Confidentiality · integrity · availability
- High · None · None
- Fix status
- Partial Red Hat: 4 fixed, 9 without a fix
Attack profile from CVSS 3.1 · NVD. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-22 and the CVSS impact.
Summary
Django before 2.2.24, 3.x before 3.1.12, and 3.2.x before 3.2.4 has a potential directory traversal via django.contrib.admindocs. Staff members could use the TemplateDetailView view to check the existence of arbitrary files. Additionally, if (and only if) the default admindocs templates have been customized by application developers to also show file contents, then not only the existence but also the file contents would have been exposed. In other words, there is directory traversal outside of the template root directories.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | — | all versions | — | No fix listed | CNA |
| — | Django (PyPI) | before 2.2.24 | 2.2.24 | Patch available | GHSA-68w8-qjq3-2gfm |
| — | Django (PyPI) | 3.0 to before 3.1.12 | 3.1.12 | Patch available | GHSA-68w8-qjq3-2gfm |
| — | Django (PyPI) | 3.2 to before 3.2.4 | 3.2.4 | Patch available | GHSA-68w8-qjq3-2gfm |
- — Vendor— Affected all versions Fixed in — No fix listed CNA
- Django (PyPI) Vendor— Affected before 2.2.24 Fixed in 2.2.24 Patch available GHSA-68w8-qjq3-2gfm
- Django (PyPI) Vendor— Affected 3.0 to before 3.1.12 Fixed in 3.1.12 Patch available GHSA-68w8-qjq3-2gfm
- Django (PyPI) Vendor— Affected 3.2 to before 3.2.4 Fixed in 3.2.4 Patch available GHSA-68w8-qjq3-2gfm
CPE configurations NVD · 2
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:* | before 2.2.24; 3.0.0 to before 3.1.12; 3.2.0 to before 3.2.4 | Vulnerable | djangoproject |
| cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:* | 35 | Vulnerable | Fedoraproject |
- cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:* Versions before 2.2.24; 3.0.0 to before 3.1.12; 3.2.0 to before 3.2.4 Vulnerable ·djangoproject
- cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:* Versions 35 Vulnerable ·Fedoraproject
Remediation
- Fix · GHSA-68w8-qjq3-2gfm Django (PyPI) Fixed in 2.2.24 Advisory →
- Fix · GHSA-68w8-qjq3-2gfm Django (PyPI) Fixed in 3.1.12 Advisory →
- Fix · GHSA-68w8-qjq3-2gfm Django (PyPI) Fixed in 3.2.4 Advisory →
Red Hat 3 advisories
- RHSA-2021:5070 Released 2021-12-09 · Red Hat rating ModerateRed Hat OpenStack Platform 16.1 (python-django20) security update
- Red Hat OpenStack Platform 16.1 python-django20-2.0.13-16.el8ost.1, python-django20-bash-completion-2.0.13-16.el8ost.1, python3-django20-2.0.13-16.el8ost.1
- RHSA-2021:4702 Released 2021-11-16 · Red Hat rating ModerateSatellite 6.10 Release
- Red Hat Satellite 6.10 candlepin-4.0.9-1.el7sat, foreman-2.5.2.17-2.el7sat, python-aiohttp-3.7.4-1.el7pc +14
- Red Hat Satellite Capsule 6.10 foreman-2.5.2.17-2.el7sat, python-aiohttp-3.7.4-1.el7pc, python-ecdsa-0.13.3-2.el7pc +9
- RHSA-2021:3490 Released 2021-09-15 · Red Hat rating ModerateRed Hat OpenStack Platform 16.2 (python-django20) security update
- Red Hat OpenStack Platform 16.2 python-django20-2.0.13-16.el8ost.1, python3-django20-2.0.13-16.el8ost.1
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Ansible Automation Platform 1.2 | Affected | No fix yet: Fix deferred |
| Red Hat Ansible Tower 3 | Affected | No fix planned: Out of support scope |
| Red Hat Ceph Storage 2 | Affected | No fix planned: Out of support scope |
| Red Hat Ceph Storage 3 | Affected | No fix planned: Out of support scope |
| Red Hat OpenStack Platform 10 (Newton) | Affected | No fix planned: Out of support scope |
| Red Hat OpenStack Platform 13 (Queens) | Affected | No fix planned: Will not fix |
| Red Hat Satellite 6 | Affected | No fix yet: Fix deferred |
| Red Hat Storage 3 | Affected | No fix planned: Will not fix |
| Red Hat Update Infrastructure 3 for Cloud Providers | Affected | No fix planned: Will not fix |
| Red Hat OpenStack Platform 16.1 | Fixed | RHSA-2021:5070 |
| Red Hat OpenStack Platform 16.2 | Fixed | RHSA-2021:3490 |
| Red Hat Satellite 6.10 | Fixed | RHSA-2021:4702 |
| Red Hat Satellite Capsule 6.10 | Fixed | RHSA-2021:4702 |
Not affected: 2 products
- Red Hat Satellite 6.10
- Red Hat Satellite Capsule 6.10
Timeline
- 2026-10-02 Threatist record created from CVE-2021-33203
- 2026-10-03 Alias added: GHSA-68w8-qjq3-2gfm
References
Patch 2
Advisory 4
Other 11
- https://groups.google.com/forum/#%21forum/django-announce
- https://github.com/django/django/commit/053cc9534d174dc89daba36724ed2dcb36755b90
- https://github.com/django/django/commit/20c67a0693c4ede2b09af02574823485e82e4c8f
- https://github.com/django/django/commit/dfaba12cda060b8b292ae1d271b44bf810b1c5b9
- https://docs.djangoproject.com/en/3.2/releases/security
- https://github.com/django/django
- https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2021-98.yaml
- https://groups.google.com/forum/#!forum/django-announce
- https://lists.fedoraproject.org/archives/list/[email protected]/message/B4SQG2EAF4WCI2SLRL6XRDJ3RPK3ZRDV
- https://security.netapp.com/advisory/ntap-20210727-0004
- https://www.djangoproject.com/weblog/2021/jun/02/security-releases
Sources
- CVE-2021-33203 · CVE Program
- CVE-2021-33203 · NVD
- FIRST EPSS
- GHSA-68w8-qjq3-2gfm · GitHub Advisory Database · CC BY 4.0
- CVE-2021-33203 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences