Vulnerability 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 Score
MEDIUM
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Djangoproject | Django | >= 2.2, < 2.2.22 |
| Python | Python | >= 3.9.5 |
| Fedoraproject | Fedora | 34 |
Related Weaknesses (CWE)
References
- http://www.openwall.com/lists/oss-security/2021/05/06/1Mailing ListPatchThird Party Advisory
- https://docs.djangoproject.com/en/3.2/releases/security/PatchVendor Advisory
- https://groups.google.com/forum/#%21forum/django-announce
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedorapro
- https://security.netapp.com/advisory/ntap-20210611-0002/Third Party Advisory
- https://www.djangoproject.com/weblog/2021/may/06/security-releases/PatchVendor Advisory
- http://www.openwall.com/lists/oss-security/2021/05/06/1Mailing ListPatchThird Party Advisory
- https://docs.djangoproject.com/en/3.2/releases/security/PatchVendor Advisory
- https://groups.google.com/forum/#%21forum/django-announce
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedorapro
- https://security.netapp.com/advisory/ntap-20210611-0002/Third Party Advisory
- https://www.djangoproject.com/weblog/2021/may/06/security-releases/PatchVendor Advisory
FAQ
What is CVE-2021-32052?
CVE-2021-32052 is a vulnerability with a CVSS score of 6.1 (MEDIUM). 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 ...
How severe is CVE-2021-32052?
CVE-2021-32052 has been rated MEDIUM with a CVSS base score of 6.1/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2021-32052?
Check the references section above for vendor advisories and patch information. Affected products include: Djangoproject Django, Python Python, Fedoraproject Fedora.