CVE-2021-32052
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/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Djangoproject | Django | >= 2.2, < 2.2.22 |
| Djangoproject | Django | >= 3.1, < 3.1.10 |
| Djangoproject | Django | >= 3.2, < 3.2.2 |
| Fedoraproject | Fedora | 34 |
References
- http://www.openwall.com/lists/oss-security/2021/05/06/1Mailing List, Patch, Third Party Advisory
- https://docs.djangoproject.com/en/3.2/releases/security/Patch, Vendor Advisory
- https://security.netapp.com/advisory/ntap-20210611-0002/Third Party Advisory
- https://www.djangoproject.com/weblog/2021/may/06/security-releases/Patch, Vendor Advisory
- http://www.openwall.com/lists/oss-security/2021/05/06/1Mailing List, Patch, Third Party Advisory
- https://docs.djangoproject.com/en/3.2/releases/security/Patch, Vendor Advisory
- https://security.netapp.com/advisory/ntap-20210611-0002/Third Party Advisory
- https://www.djangoproject.com/weblog/2021/may/06/security-releases/Patch, Vendor Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2021-32052?
How severe is CVE-2021-32052?
How do I fix CVE-2021-32052?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2021
- CVE-2021-32037An authorized user may trigger an invariant which may result…6.5
- CVE-2021-32039Users with appropriate file access may be able to access une…5.5
- CVE-2021-3204SSRF in the document conversion component of Webware Webdesk…6.5
- CVE-2021-32040It may be possible to have an extremely long aggregation pip…7.5
- CVE-2021-32050Some MongoDB Drivers may erroneously publish events containi…7.5
- CVE-2021-32051Hexagon G!nius Auskunftsportal before 5.0.0.0 allows SQL inj…7.5
- CVE-2021-32053JPA Server in HAPI FHIR before 5.4.0 allows a user to deny s…5.3
- CVE-2021-32054Firely/Incendi Spark before 1.5.5-r4 lacks Content-Dispositi…6.1
- CVE-2021-32055Mutt 1.11.0 through 2.0.x before 2.0.7 (and NeoMutt 2019-10-…9.1
- CVE-2021-32056Cyrus IMAP before 3.2.7, and 3.3.x and 3.4.x before 3.4.1, a…4.3
- CVE-2021-32061S3Scanner before 2.0.2 allows Directory Traversal via a craf…5.3
- CVE-2021-32062MapServer before 7.0.8, 7.1.x and 7.2.x before 7.2.3, 7.3.x …5.3
Are you affected by CVE-2021-32052?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
