Feed
4.9MEDIUM
CVE-2021-33203Path Traversal in Django
A medium-severity vulnerability reachable over the network, needing high privileges and no user interaction. EPSS estimates a 2.5% chance of exploitation in the next 30 days. A fixed version is named.
- Exploited in the wild
- Not in KEV
- EPSS
- 2.5%
- percentile 85%
- Fix
- Named by a source
- CVE published 8 Jun 2021
Reference
None of the "Needs attention" rules apply right now.
EPSS 2.5% (+2) · Network attack vector (+10) · No user interaction (+5)
Immediate actions
- django (PyPI): upgrade to 2.2.24 / 3.1.12 / 3.2.4 or later on your release line.
- Commit / pull request: https://github.com/django/django/commit/053cc9534d174dc89daba36724ed2dcb36755b90
- Commit / pull request: https://github.com/django/django/commit/20c67a0693c4ede2b09af02574823485e82e4c8f
- Commit / pull request: https://github.com/django/django/commit/dfaba12cda060b8b292ae1d271b44bf810b1c5b9
Who should check
django (PyPI) pkg:pypi/django
- Affected< 2.2.24Fixed in2.2.24OSV (PYSEC-2021-98)
- Affected>= 3.0, < 3.1.12Fixed in3.1.12OSV (PYSEC-2021-98)
- Affected>= 3.2, < 3.2.4Fixed in3.2.4OSV (PYSEC-2021-98)
Confirmed facts
- CVSS
- 4.9 MEDIUM (version 3.1)
- Score from
- GitHub Advisory Database (GHSA-68w8-qjq3-2gfm)
- Attack vector
- network
- Attack complexity
- low
- Privileges required
- high
- User interaction
- none
- Weakness
- CWE-22
Unknowns
- We show one CVSS score. Other sources may score this CVE differently.
Advisory text
Quoted from the source advisory (untrusted)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.
Update history
No events recorded. Our history starts on 1 Jan 2025.
References
- advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2021-33203
- commit / pull requesthttps://github.com/django/django/commit/053cc9534d174dc89daba36724ed2dcb36755b90
- commit / pull requesthttps://github.com/django/django/commit/20c67a0693c4ede2b09af02574823485e82e4c8f
- commit / pull requesthttps://github.com/django/django/commit/dfaba12cda060b8b292ae1d271b44bf810b1c5b9
- otherhttps://docs.djangoproject.com/en/3.2/releases/security
- advisoryhttps://github.com/advisories/GHSA-68w8-qjq3-2gfm
- otherhttps://github.com/django/django
- otherhttps://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2021-98.yaml
- otherhttps://groups.google.com/forum/#!forum/django-announce
- otherhttps://lists.fedoraproject.org/archives/list/[email protected]/message/B4SQG2EAF4WCI2SLRL6XRDJ3RPK3ZRDV
- otherhttps://security.netapp.com/advisory/ntap-20210727-0004
- otherhttps://www.djangoproject.com/weblog/2021/jun/02/security-releases
- otherhttps://docs.djangoproject.com/en/3.2/releases/security/
- otherhttps://www.djangoproject.com/weblog/2021/jun/02/security-releases/
Sources
- EPSS by FIRST.org, Free to use, attribution requested. Scores generated by Empirical Security.
- GHSA-68w8-qjq3-2gfm (GitHub Advisory Database), CC BY 4.0.
- PYSEC-2021-98 (PyPA Advisory Database), CC BY 4.0.
- OSV.dev, Per database.
This page is our own presentation: records are shortened, normalised and merged. Licences
Last checked: kev 29 min ago · osv 29 min ago · nvd 90 min ago · epss 29 min ago · JSON · ask via MCP: explain_vulnerability
Also known as BIT-django-2021-33203, GHSA-68w8-qjq3-2gfm, PYSEC-2021-98