CVE-2021-32052: Django - HTTP Response Splitting
- Cve: CVE-2021-32052
- Name: Django - HTTP Response Splitting
- Description: 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.
- Impact: Attackers can perform header injection, potentially leading to HTTP response splitting and web cache poisoning.
- Remediation: Update Django to version 2.2.22, 3.1.10, 3.2.2 or later versions.
- Vulnerability type: crlf_injection
- Vulnerability impact: denial_of_service, web_cache_poisoning
- Requirement type: none
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 6.1
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- Epss score: 0.03172
- Epss percentile: 0.88362
- Assignee: [email protected]
- Published at: 2021-05-06T16:15:07Z
- Age in days: 2028
- Modified at: 2026-06-17T03:52:43Z
- Patch available: yes
- References total: 6
- Products total: 2
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-32052
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation |
References
Same in every row:
- Source: nvd
| Url | Tags |
|---|---|
| https://docs.djangoproject.com/en/3.2/releases/security/ | Patch, Vendor Advisory |
| https://www.djangoproject.com/weblog/2021/may/06/security-releases/ | Patch, Vendor Advisory |
| http://www.openwall.com/lists/oss-security/2021/05/06/1 | Mailing List, Patch, Third Party Advisory |
| https://security.netapp.com/advisory/ntap-20210611-0002/ | Third Party Advisory |
| https://groups.google.com/forum/#%21forum/django-announce | |
| https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZVKYPHR3TKR2ESWXBPOJEKRO2OSJRZUE/ |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| djangoproject:django | >= 3.2, < 3.2.2; >= 3.1, < 3.1.10; >= 2.2, < 2.2.22 | yes | nvd | /v1/products/djangoproject/django |
| fedoraproject:fedora | = 34 | no | nvd | /v1/products/fedoraproject/fedora |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| django/django | commit, package | yes | /v1/repositories/django/django |
Index
- Repositories: 94
- Repositories high signal: 39
- Packages: 1
Exploitation
- Remote: yes
- Exposed hosts: 2404431
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports