Feed
6.1MEDIUM
CVE-2021-32052Header injection possible in Django
A medium-severity vulnerability reachable over the network, needing no privileges and user interaction. EPSS estimates a 2.7% chance of exploitation in the next 30 days. A fixed version is named.
- Exploited in the wild
- Not in KEV
- EPSS
- 2.7%
- percentile 87%
- Fix
- Named by a source
- CVE published 6 May 2021
Reference
None of the "Needs attention" rules apply right now.
EPSS 2.7% (+3) · Network attack vector (+10) · No privileges required (+5)
Immediate actions
- django (PyPI): upgrade to 2.2.22 / 3.1.10 / 3.2.2 or later on your release line.
- Commit / pull request: https://github.com/django/django/commit/e1e81aa1c4427411e3c68facdd761229ffea6f6f
Who should check
django (PyPI) pkg:pypi/django
- Affected>= 2.2, < 2.2.22Fixed in2.2.22OSV (PYSEC-2021-8)
- Affected>= 3.1, < 3.1.10Fixed in3.1.10OSV (PYSEC-2021-8)
- Affected>= 3.2, < 3.2.2Fixed in3.2.2OSV (PYSEC-2021-8)
Confirmed facts
- CVSS
- 6.1 MEDIUM (version 3.1)
- Score from
- GitHub Advisory Database (GHSA-qm57-vhq3-3fwf)
- Attack vector
- network
- Attack complexity
- low
- Privileges required
- none
- User interaction
- required
- Weakness
- CWE-79, CWE-88
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.22, 3.1 before 3.1.10, and 3.2 before 3.2.2 (with Python 3.9.5+), URLValidator does not prohibit newlines and tabs (unless the URLField form field is used). If an application uses values with newlines in an HTTP response, header injection can occur. Django itself is unaffected because HttpResponse prohibits newlines in HTTP headers.
Update history
No events recorded. Our history starts on 1 Jan 2025.
References
- advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2021-32052
- commit / pull requesthttps://github.com/django/django/commit/e1e81aa1c4427411e3c68facdd761229ffea6f6f
- otherhttps://bugzilla.redhat.com/show_bug.cgi?id=1944801
- otherhttps://docs.djangoproject.com/en/3.2/releases/security
- advisoryhttps://github.com/advisories/GHSA-qm57-vhq3-3fwf
- otherhttps://github.com/django/django
- otherhttps://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2021-8.yaml
- otherhttps://groups.google.com/forum/#!forum/django-announce
- otherhttps://lists.fedoraproject.org/archives/list/[email protected]/message/ZVKYPHR3TKR2ESWXBPOJEKRO2OSJRZUE
- otherhttps://security.netapp.com/advisory/ntap-20210611-0002
- otherhttps://www.djangoproject.com/weblog/2021/may/06/security-releases
- otherhttp://www.openwall.com/lists/oss-security/2021/05/06/1
- otherhttps://docs.djangoproject.com/en/3.2/releases/security/
- otherhttps://www.djangoproject.com/weblog/2021/may/06/security-releases/
- 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-qm57-vhq3-3fwf (GitHub Advisory Database), CC BY 4.0.
- PYSEC-2021-8 (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 38 min ago · osv 38 min ago · nvd 7 min ago · epss 38 min ago · JSON · ask via MCP: explain_vulnerability
Also known as BIT-django-2021-32052, GHSA-qm57-vhq3-3fwf, PYSEC-2021-8