Your submission was sent successfully! 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.

Priority

Medium

CVSS 3 base score: 6.1

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)
precise Does not exist

trusty Not vulnerable

upstream
Released (2:2.2.22-1)
xenial Not vulnerable

Notes

AuthorNote
amurray
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.

References

Bugs