ADVISORIES

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

EcosystemPackageAffected versions
Ubuntu:18.04:LTSpython-django
All versions before 1:1.11.11-1ubuntu1.17 (fixed in 1:1.11.11-1ubuntu1.17)
Ubuntu:20.04:LTSpython-django
All versions before 2:2.2.12-1ubuntu0.7 (fixed in 2:2.2.12-1ubuntu0.7)

References