Ubuntu CVE Tracker
UBUNTU-CVE-2021-32052
Details
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.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Ubuntu:18.04:LTS | python-django | All versions before 1:1.11.11-1ubuntu1.17 (fixed in 1:1.11.11-1ubuntu1.17) |
| Ubuntu:20.04:LTS | python-django | All versions before 2:2.2.12-1ubuntu0.7 (fixed in 2:2.2.12-1ubuntu0.7) |
References
- https://ubuntu.com/security/CVE-2021-32052
- https://www.djangoproject.com/weblog/2021/may/06/security-releases/
- https://docs.djangoproject.com/en/3.2/releases/security/
- http://www.openwall.com/lists/oss-security/2021/05/06/1
- https://groups.google.com/forum/#!forum/django-announce
- https://ubuntu.com/security/notices/USN-4975-1
- https://ubuntu.com/security/notices/USN-5373-1
- https://ubuntu.com/security/notices/USN-5373-2
- https://www.cve.org/CVERecord?id=CVE-2021-32052