Your submission was sent successfully! Close

You have successfully unsubscribed! Close

Thank you for signing up for our newsletter!
In these regular emails you will find the latest updates about Ubuntu and upcoming events where you can meet our team.Close

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

AuthorNote
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

Medium

Cvss 3 Severity Score

6.1

Score breakdown

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