CVE-2021-32052

MEDIUMCVSS 6.1/10EPSS 3.17%

Last modified

CVE-2021-32052 is a medium-severity vulnerability rated 6.1/10 on the CVSS scale. 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. EPSS estimates a 3.17% chance of exploitation in the next 30 days.

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.

Metrics

CVSS 3.1
6.1/10

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

EPSS Probability
3.17%

86.4th percentile

Probability of exploitation in the next 30 days. Learn more

Weakness Enumeration

Affected Software

VendorProductVersions
DjangoprojectDjango>= 2.2, < 2.2.22
DjangoprojectDjango>= 3.1, < 3.1.10
DjangoprojectDjango>= 3.2, < 3.2.2
FedoraprojectFedora34

References

Timeline

Published
Last Modified
Status
Modified

Frequently Asked Questions

What is CVE-2021-32052?
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.
How severe is CVE-2021-32052?
CVE-2021-32052 has a CVSS score of 6.1/10 (MEDIUM severity). The EPSS model estimates a 3.17% probability of exploitation in the next 30 days.
How do I fix CVE-2021-32052?
Check the vendor references and advisories linked above for patched versions and mitigation guidance. You can also run a Strix scan to test if your systems are affected.

Are you affected by CVE-2021-32052?

Run a free Strix scan to check your systems for this vulnerability.

Scan your code now

Source: NVD / NIST