First published: Thu May 06 2021(Updated: )
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.
Credit: cve@mitre.org cve@mitre.org
Affected Software | Affected Version | How to fix |
---|---|---|
Djangoproject Django | >=2.2<2.2.22 | |
Djangoproject Django | >=3.1<3.1.10 | |
Djangoproject Django | >=3.2<3.2.2 | |
Python Python | >=3.9.5 | |
Fedoraproject Fedora | =34 | |
pip/Django | >=3.2<3.2.2 | 3.2.2 |
pip/Django | >=3.1<3.1.10 | 3.1.10 |
pip/Django | >=2.2<2.2.22 | 2.2.22 |
All of | ||
Any of | ||
Djangoproject Django | >=2.2<2.2.22 | |
Djangoproject Django | >=3.1<3.1.10 | |
Djangoproject Django | >=3.2<3.2.2 | |
Python Python | >=3.9.5 |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
The vulnerability ID for this Django vulnerability is CVE-2021-32052.
The severity of CVE-2021-32052 is medium with a CVSS score of 6.1.
The affected software for CVE-2021-32052 includes Django versions 2.2 before 2.2.22, 3.1 before 3.1.10, and 3.2 before 3.2.2 (with Python 3.9.5+).
CVE-2021-32052 can lead to header injection if an application uses values with newlines in an HTTP response.
You can find more information about CVE-2021-32052 in the references provided: [Reference 1](http://www.openwall.com/lists/oss-security/2021/05/06/1), [Reference 2](https://docs.djangoproject.com/en/3.2/releases/security/), [Reference 3](https://groups.google.com/forum/#!forum/django-announce).