Vulnerability · Published May 6, 2021 · Assigned by mitre
CVE-2021-32052
Medium 6.1
In plain English
A medium-severity security flaw in the python-django package (Debian). There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 3.2% (higher than 88% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS NVD)6.1Medium
Exploit odds (30 days)3.2%top 11.9% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | python-django | 2:2.2.22-1 | DEBIAN-CVE-2021-32052 |
| Debian:13 | python-django | 2:2.2.22-1 | DEBIAN-CVE-2021-32052 |
| Debian:14 | python-django | 2:2.2.22-1 | DEBIAN-CVE-2021-32052 |
| PyPI | django | 2.2.22 | GHSA-qm57-vhq3-3fwf |
| PyPI | django | 2.2.22, 3.1.10, 3.2.2 | PYSEC-2021-8 |
| PyPI | django | 3.1.10 | GHSA-qm57-vhq3-3fwf |
| PyPI | django | 3.2.2 | GHSA-qm57-vhq3-3fwf |
Affected products (as reported)
References
- https://groups.google.com/forum/#%21forum/django-announce x_refsource_MISC
- https://docs.djangoproject.com/en/3.2/releases/security/ x_refsource_MISC
- http://www.openwall.com/lists/oss-security/2021/05/06/1 x_refsource_MISC
- https://www.djangoproject.com/weblog/2021/may/06/security-releases/ x_refsource_MISC
- FEDORA-2021-01044b8a59 vendor-advisory, x_refsource_FEDORA
- https://security.netapp.com/advisory/ntap-20210611-0002/ x_refsource_CONFIRM