CVE-2021-32052
Published: 6 May 2021
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.
Notes
Author | Note |
---|---|
alexmurray | Requires Python 3.9.5 or greater which is only present in impish+ |
mdeslaur | Python 3.9.5 is now being backported to focal+, so this now needs to be fixed While this was originally marked as not-affected for bionic, a subsequent security update introduced the behaviour change in bionic which resulted in this CVE needing to be fixed. |
Priority
Status
Package | Release | Status |
---|---|---|
python-django Launchpad, Ubuntu, Debian |
bionic |
Released
(1:1.11.11-1ubuntu1.17)
|
focal |
Released
(2:2.2.12-1ubuntu0.7)
|
|
groovy |
Released
(2:2.2.16-1ubuntu0.5)
|
|
hirsute |
Released
(2:2.2.20-1ubuntu0.2)
|
|
impish |
Released
(2:2.2.22-1)
|
|
jammy |
Released
(2:2.2.22-1)
|
|
trusty |
Not vulnerable
|
|
upstream |
Released
(2:2.2.22-1)
|
|
xenial |
Not vulnerable
|
Severity score breakdown
Parameter | Value |
---|---|
Base score | 6.1 |
Attack vector | Network |
Attack complexity | Low |
Privileges required | None |
User interaction | Required |
Scope | Changed |
Confidentiality | Low |
Integrity impact | Low |
Availability impact | None |
Vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
References
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=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
- NVD
- Launchpad
- Debian