Moderate severityNVD Advisory· Published May 6, 2021· Updated Aug 3, 2024
CVE-2021-32052
CVE-2021-32052
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
DjangoPyPI | >= 2.2, < 2.2.22 | 2.2.22 |
DjangoPyPI | >= 3.1, < 3.1.10 | 3.1.10 |
DjangoPyPI | >= 3.2, < 3.2.2 | 3.2.2 |
Affected products
8- Django/Djangodescription
- osv-coords7 versionspkg:bitnami/djangopkg:pypi/djangopkg:rpm/opensuse/python-Django4&distro=openSUSE%20Tumbleweedpkg:rpm/opensuse/python-Django6&distro=openSUSE%20Tumbleweedpkg:rpm/opensuse/python-Django&distro=openSUSE%20Leap%2015.3pkg:rpm/opensuse/python-Django&distro=openSUSE%20Tumbleweedpkg:rpm/suse/python-Django&distro=SUSE%20Package%20Hub%2015%20SP3
>= 2.2.0, < 2.2.22+ 6 more
- (no CPE)range: >= 2.2.0, < 2.2.22
- (no CPE)range: >= 2.2, < 2.2.22
- (no CPE)range: < 4.2.14-1.1
- (no CPE)range: < 6.0-1.1
- (no CPE)range: < 2.2.28-bp153.2.3.1
- (no CPE)range: < 3.2.7-2.3
- (no CPE)range: < 2.2.28-bp153.2.3.1
Patches
Vulnerability mechanics
References
16- github.com/advisories/GHSA-qm57-vhq3-3fwfghsaADVISORY
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZVKYPHR3TKR2ESWXBPOJEKRO2OSJRZUE/mitrevendor-advisoryx_refsource_FEDORA
- nvd.nist.gov/vuln/detail/CVE-2021-32052ghsaADVISORY
- www.openwall.com/lists/oss-security/2021/05/06/1ghsax_refsource_MISCWEB
- bugzilla.redhat.com/show_bug.cgighsaWEB
- docs.djangoproject.com/en/3.2/releases/securityghsaWEB
- docs.djangoproject.com/en/3.2/releases/security/mitrex_refsource_MISC
- github.com/django/django/commit/e1e81aa1c4427411e3c68facdd761229ffea6f6fghsaWEB
- github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2021-8.yamlghsaWEB
- groups.google.com/forum/ghsaWEB
- groups.google.com/forum/mitrex_refsource_MISC
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZVKYPHR3TKR2ESWXBPOJEKRO2OSJRZUEghsaWEB
- security.netapp.com/advisory/ntap-20210611-0002ghsaWEB
- security.netapp.com/advisory/ntap-20210611-0002/mitrex_refsource_CONFIRM
- www.djangoproject.com/weblog/2021/may/06/security-releasesghsaWEB
- www.djangoproject.com/weblog/2021/may/06/security-releases/mitrex_refsource_MISC
News mentions
0No linked articles in our index yet.