CVE-2021-32052
Aliases:GHSA-qm57-vhq3-3fwfBIT-django-2021-32052PYSEC-2021-8
Advisory lineage Upstream: 0 Downstream: 11
Modified
Published: 06 May 2021, 15:49
Last modified:03 Aug 2024, 23:17
Vulnerability Summary
Overall Risk (default)
medium
25/100 CVSS Score
6.1 MEDIUM
v3.1 (nvd)
EPSS Score
1.86% LOW
2% probability -0.05%
KEV
Not listed
Ransomware
No reports
Public exploits
None found
Dark Web
Not detected
Timeline
06 May 2021, 15:49
Published
Vulnerability first disclosed
03 Aug 2024, 23:17
Last Modified
Vulnerability information updated
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.
CVSS Metrics
- v4.0•MEDIUM•Score: 5.3CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N
- v3.1•MEDIUM•Score: 6.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- v2.0•MEDIUM•Score: 4.3AV:N/AC:M/Au:N/C:N/I:P/A:N
EPSS Trends
Current EPSS score: 1.86%• Percentile: 83%
Techniques & Countermeasures
- CWE-79•Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
Affected Systems
- djangoproject•django
≥ 2.2, < 2.2.22 | ≥ 3.1, < 3.1.10 | ≥ 3.2, < 3.2.2
- fedoraproject•fedora
34
- PyPI•django
≥ 2.2, < 2.2.22 | ≥ 3.1, < 3.1.10 | ≥ 3.2, < 3.2.2
References (18)
- https://groups.google.com/forum/#%21forum/django-announce
- https://docs.djangoproject.com/en/3.2/releases/security/
- http://www.openwall.com/lists/oss-security/2021/05/06/1
- https://www.djangoproject.com/weblog/2021/may/06/security-releases/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZVKYPHR3TKR2ESWXBPOJEKRO2OSJRZUE/
- https://security.netapp.com/advisory/ntap-20210611-0002/
- https://nvd.nist.gov/vuln/detail/CVE-2021-32052
- https://github.com/django/django/commit/e1e81aa1c4427411e3c68facdd761229ffea6f6f
- https://bugzilla.redhat.com/show_bug.cgi?id=1944801
- https://docs.djangoproject.com/en/3.2/releases/security
- https://github.com/advisories/GHSA-qm57-vhq3-3fwf
- https://github.com/django/django
- https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2021-8.yaml
- https://groups.google.com/forum/#!forum/django-announce
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZVKYPHR3TKR2ESWXBPOJEKRO2OSJRZUE
- https://security.netapp.com/advisory/ntap-20210611-0002
- https://www.djangoproject.com/weblog/2021/may/06/security-releases
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZVKYPHR3TKR2ESWXBPOJEKRO2OSJRZUE/