Vulnerability CVE-2021-32052: Information

Description

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.

Severity: MEDIUM (6.1) Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Published: May 6, 2021
Modified: Nov. 7, 2023
Error type identifier: CWE-79

Fixed packages

Package name
Branch
Fixed in version
Version from repository
Errata ID
Task #
State
python3-module-djangosisyphus2.2.24-alt14.2.13-alt1ALT-PU-2021-2228-1278798Fixed
python3-module-djangop102.2.24-alt13.2.25-alt1ALT-PU-2021-2228-1278798Fixed
python3-module-djangop92.2.25-alt12.2.25-alt1ALT-PU-2021-3619-1292358Fixed
python3-module-djangop9_e2k2.2.25-alt12.2.25-alt1ALT-PU-2022-3862-1-Fixed
python3-module-djangoc10f12.2.24-alt13.2.25-alt1ALT-PU-2021-2228-1278798Fixed

References to Advisories, Solutions, and Tools

    1. Configuration 1

      cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*

      cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*

      cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*

      Running on/with:
      cpe:2.3:a:python:python:*:*:*:*:*:*:*:*

      Configuration 2

      cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*