CVE-2021-35042
highpriority · attend · 65EPSS 0.444 · 99 %ileexploit · PoCDEEURUUSEPSS · scored 2026-10-27
Django 3.1.x before 3.1.13 and 3.2.x before 3.2.5 allows QuerySet.order_by SQL injection if order_by is untrusted input from a client of a web application.
remediations
Vendor fix, mitigation, or workaround guidance, as published by each source.
A vendor fix is available.
- Fixedpython312-Django6-0:6.0-1.1.aarch64 as component of openSUSE Tumbleweedsuse_csaf
To install this SUSE Security Update use the SUSE recommended installation methods like YaST online_update or "zypper patch".
- Fixedpython312-Django6-0:6.0-1.1.ppc64le as component of openSUSE Tumbleweedsuse_csaf
To install this SUSE Security Update use the SUSE recommended installation methods like YaST online_update or "zypper patch".
- Fixedpython312-Django6-0:6.0-1.1.s390x as component of openSUSE Tumbleweedsuse_csaf
To install this SUSE Security Update use the SUSE recommended installation methods like YaST online_update or "zypper patch".
- Fixedpython312-Django6-0:6.0-1.1.x86_64 as component of openSUSE Tumbleweedsuse_csaf
To install this SUSE Security Update use the SUSE recommended installation methods like YaST online_update or "zypper patch".
- Fixedpython313-Django6-0:6.0-1.1.aarch64 as component of openSUSE Tumbleweedsuse_csaf
To install this SUSE Security Update use the SUSE recommended installation methods like YaST online_update or "zypper patch".
- Fixedpython313-Django6-0:6.0-1.1.ppc64le as component of openSUSE Tumbleweedsuse_csaf
To install this SUSE Security Update use the SUSE recommended installation methods like YaST online_update or "zypper patch".
- Fixedpython313-Django6-0:6.0-1.1.s390x as component of openSUSE Tumbleweedsuse_csaf
To install this SUSE Security Update use the SUSE recommended installation methods like YaST online_update or "zypper patch".
- Fixedpython313-Django6-0:6.0-1.1.x86_64 as component of openSUSE Tumbleweedsuse_csaf
To install this SUSE Security Update use the SUSE recommended installation methods like YaST online_update or "zypper patch".
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · high–critical · 7.5–9.8
weaknesses
The CWE weakness classes this flaw belongs to.
exploits (6)
Public proof-of-concept and weaponised exploit code.
- LUUANHDUC/CVE-2021-35042Django SQL injection vulnerabilityPoC · poc_in_github
- mrlihd/CVE-2021-35042Reproduce CVE-2021-35042PoC · poc_in_github
- r4vi/CVE-2021-35042r4vi/CVE-2021-35042PoC · poc_in_github
- vutiendat323/INT14107_CVE-2021-35042vutiendat323/INT14107_CVE-2021-35042PoC · poc_in_github
affected products (15)
Products and version ranges known to be affected.
advisories (4)
Vendor and ecosystem advisories describing this.
- openSUSE-SU-2026:10005-1python312-Django6-6.0-1.1 on GA media2026-01-03csaf · suse_csafDE
python312-Django6-6.0-1.1 on GA media
- GHSA-xpfp-f569-q3p2SQL Injection in Django2021-09-22ghsa · osvUS
Django 3.1.x before 3.1.13 and 3.2.x before 3.2.5 allows QuerySet.order_by SQL injection if order_by is untrusted input from a client of a web application.
- BIT-django-2021-350422024-03-06vendor · osvUS
Django 3.1.x before 3.1.13 and 3.2.x before 3.2.5 allows QuerySet.order_by SQL injection if order_by is untrusted input from a client of a web application.
- PYSEC-2021-1092021-07-02vendor · osvUS
Django 3.1.x before 3.1.13 and 3.2.x before 3.2.5 allows QuerySet.order_by SQL injection if order_by is untrusted input from a client of a web application.
also known as (8)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (23)
External citations — patches, advisories, analysis.
- https://access.redhat.com/security/cve/cve-2021-35042cnnvd
- https://docs.djangoproject.com/en/3.2/releases/security/cnnvd
- https://groups.google.com/forum/#!forum/django-announcecnnvd
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/SS6NJTBYWOX6J7G4U3LUOILARJKWPQ5Y/cnnvd
- https://security.netapp.com/advisory/ntap-20210805-0008/cnnvd
- https://vigilance.fr/vulnerability/Django-SQL-injection-via-QuerySet-order-by-36149cnnvd
- https://www.cybersecurity-help.cz/vdb/SB2021070107cnnvd
- https://www.cybersecurity-help.cz/vdb/SB2021070304cnnvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan