Feed
7.5HIGH
CVE-2021-31542Path Traversal in Django
A high-severity vulnerability reachable over the network, needing no privileges and no user interaction. EPSS estimates a 4.7% chance of exploitation in the next 30 days. A fixed version is named.
- Exploited in the wild
- Not in KEV
- EPSS
- 4.7%
- percentile 93%
- Fix
- Named by a source
- CVE published 5 May 2021
Reference
None of the "Needs attention" rules apply right now.
EPSS 4.7% (+5) · Network attack vector (+10) · No privileges required (+5) · No user interaction (+5)
Immediate actions
- django (PyPI): upgrade to 2.2.21 / 3.1.9 / 3.2.1 or later on your release line.
- Commit / pull request: https://github.com/django/django/commit/04ac1624bdc2fa737188401757cf95ced122d26d
- Commit / pull request: https://github.com/django/django/commit/25d84d64122c15050a0ee739e859f22ddab5ac48
- Commit / pull request: https://github.com/django/django/commit/c98f446c188596d4ba6de71d1b77b4a6c5c2a007
Who should check
django (PyPI) pkg:pypi/django
- Affected>= 2.2, < 2.2.21Fixed in2.2.21OSV (PYSEC-2021-7)
- Affected>= 3.0, < 3.1.9Fixed in3.1.9OSV (GHSA-rxjp-mfm9-w4wr)
- Affected>= 3.2, < 3.2.1Fixed in3.2.1OSV (PYSEC-2021-7)
- Affected>= 3.1, < 3.1.9Fixed in3.1.9OSV (PYSEC-2021-7)
Confirmed facts
- CVSS
- 7.5 HIGH (version 3.1)
- Score from
- GitHub Advisory Database (GHSA-rxjp-mfm9-w4wr)
- Attack vector
- network
- Attack complexity
- low
- Privileges required
- none
- User interaction
- none
- Weakness
- CWE-22, CWE-434
Unknowns
- We show one CVSS score. Other sources may score this CVE differently.
Advisory text
Quoted from the source advisory (untrusted)In Django 2.2 before 2.2.21, 3.1 before 3.1.9, and 3.2 before 3.2.1, MultiPartParser, UploadedFile, and FieldFile allowed directory traversal via uploaded files with suitably crafted file names.
Update history
No events recorded. Our history starts on 1 Jan 2025.
References
- advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2021-31542
- commit / pull requesthttps://github.com/django/django/commit/04ac1624bdc2fa737188401757cf95ced122d26d
- commit / pull requesthttps://github.com/django/django/commit/25d84d64122c15050a0ee739e859f22ddab5ac48
- commit / pull requesthttps://github.com/django/django/commit/c98f446c188596d4ba6de71d1b77b4a6c5c2a007
- otherhttps://www.djangoproject.com/weblog/2021/may/04/security-releases
- otherhttps://security.netapp.com/advisory/ntap-20210618-0001
- otherhttps://lists.fedoraproject.org/archives/list/[email protected]/message/ZVKYPHR3TKR2ESWXBPOJEKRO2OSJRZUE
- otherhttps://lists.fedoraproject.org/archives/list/[email protected]/message/B4SQG2EAF4WCI2SLRL6XRDJ3RPK3ZRDV
- otherhttps://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZVKYPHR3TKR2ESWXBPOJEKRO2OSJRZUE
- otherhttps://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/B4SQG2EAF4WCI2SLRL6XRDJ3RPK3ZRDV
- otherhttps://lists.debian.org/debian-lts-announce/2021/05/msg00005.html
- otherhttps://groups.google.com/forum/#%21forum/django-announce
- otherhttps://groups.google.com/forum/#!forum/django-announce
- otherhttps://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2021-7.yaml
- otherhttps://github.com/django/django
- advisoryhttps://github.com/advisories/GHSA-rxjp-mfm9-w4wr
- otherhttps://docs.djangoproject.com/en/3.2/releases/security
- otherhttp://www.openwall.com/lists/oss-security/2021/05/04/3
- otherhttps://www.djangoproject.com/weblog/2021/may/04/security-releases/
- otherhttps://docs.djangoproject.com/en/3.2/releases/security/
- otherhttps://lists.fedoraproject.org/archives/list/[email protected]/message/ZVKYPHR3TKR2ESWXBPOJEKRO2OSJRZUE/
Sources
- EPSS by FIRST.org, Free to use, attribution requested. Scores generated by Empirical Security.
- GHSA-rxjp-mfm9-w4wr (GitHub Advisory Database), CC BY 4.0.
- PYSEC-2021-7 (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 34 min ago · osv 34 min ago · nvd 3 min ago · epss 34 min ago · JSON · ask via MCP: explain_vulnerability
Also known as BIT-django-2021-31542, GHSA-rxjp-mfm9-w4wr, PYSEC-2021-7