GHSA-qm57-vhq3-3fwf
Header injection possible in Django
At a glance
- Published
- Updated
- CVE
- CVE-2021-32052
- Aliases
- BIT-django-2021-32052, PYSEC-2021-8
- CVSS_V3
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- CVSS_V4
- CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N
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
| Package | Versions |
|---|---|
| PyPI · django | introduced 2.2, fixed 2.2.22 |
| PyPI · django | introduced 3.1, fixed 3.1.10 |
| PyPI · django | introduced 3.2, fixed 3.2.2 |
References
- https://nvd.nist.gov/vuln/detail/CVE-2021-32052 ADVISORY
- https://github.com/django/django/commit/e1e81aa1c4427411e3c68facdd761229ffea6f6f WEB
- https://bugzilla.redhat.com/show_bug.cgi?id=1944801 WEB
- https://docs.djangoproject.com/en/3.2/releases/security WEB
- https://github.com/advisories/GHSA-qm57-vhq3-3fwf ADVISORY
- https://github.com/django/django PACKAGE
- https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2021-8.yaml WEB
- https://groups.google.com/forum/#!forum/django-announce WEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZVKYPHR3TKR2ESWXBPOJEKRO2OSJRZUE WEB
- https://security.netapp.com/advisory/ntap-20210611-0002 WEB
- https://www.djangoproject.com/weblog/2021/may/06/security-releases WEB
- http://www.openwall.com/lists/oss-security/2021/05/06/1 WEB
Sources
| Source | Licence |
|---|---|
| OSV.dev | CC-BY 4.0 — GitHub Advisory Database |