Vulnerability Details : CVE-2021-32052
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.
Vulnerability category: Cross site scripting (XSS)
Products affected by CVE-2021-32052
- cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*
- cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*
- cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*
- cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*
Exploit prediction scoring system (EPSS) score for CVE-2021-32052
0.17%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 53 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2021-32052
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
4.3
|
MEDIUM | AV:N/AC:M/Au:N/C:N/I:P/A:N |
8.6
|
2.9
|
NIST | |
6.1
|
MEDIUM | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
2.8
|
2.7
|
NIST |
CWE ids for CVE-2021-32052
-
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.Assigned by: nvd@nist.gov (Primary)
References for CVE-2021-32052
-
http://www.openwall.com/lists/oss-security/2021/05/06/1
oss-security - Django: CVE-2021-32052: Header injection possibility since URLValidator accepted newlines in input on Python 3.9.5+Mailing List;Patch;Third Party Advisory
-
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZVKYPHR3TKR2ESWXBPOJEKRO2OSJRZUE/
[SECURITY] Fedora 34 Update: python-django-3.1.9-1.fc34 - package-announce - Fedora Mailing-ListsThird Party Advisory
-
https://docs.djangoproject.com/en/3.2/releases/security/
Archive of security issues | Django documentation | DjangoPatch;Vendor Advisory
-
https://security.netapp.com/advisory/ntap-20210611-0002/
CVE-2021-32052 Django Vulnerability in NetApp Products | NetApp Product SecurityThird Party Advisory
-
https://www.djangoproject.com/weblog/2021/may/06/security-releases/
Django security releases issued: 3.2.2, 3.1.10, and 2.2.22 | Weblog | DjangoPatch;Vendor Advisory
-
https://groups.google.com/forum/#!forum/django-announce
django-announce - Google GroupsMailing List;Third Party Advisory
Jump to