Vulnerability · Published Jul 2, 2021 · Assigned by mitre
CVE-2021-35042
Critical 9.8
In plain English
A critical-severity security flaw in the py3-django package (Alpine). There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 44.4% (higher than 99% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.
Severity (CVSS NVD)9.8Critical
Exploit odds (30 days)44.4%top 1.2% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack tooling1Public PoC
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.20 | py3-django | 3.1.13-r0 | ALPINE-CVE-2021-35042 |
| Alpine:v3.21 | py3-django | 3.1.13-r0 | ALPINE-CVE-2021-35042 |
| Alpine:v3.22 | py3-django | 3.1.13-r0 | ALPINE-CVE-2021-35042 |
| Alpine:v3.23 | py3-django | 3.1.13-r0 | ALPINE-CVE-2021-35042 |
| Alpine:v3.24 | py3-django | 3.1.13-r0 | ALPINE-CVE-2021-35042 |
| PyPI | django | 3.2.5 | GHSA-xpfp-f569-q3p2 |
| PyPI | django | 3.1.13 | GHSA-xpfp-f569-q3p2 |
| PyPI | django | 3.1.13, 3.2.5 | PYSEC-2021-109 |
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
- https://www.openwall.com/lists/oss-security/2021/07/02/2 x_refsource_CONFIRM
- https://www.djangoproject.com/weblog/2021/jul/01/security-releases/ x_refsource_CONFIRM
- https://security.netapp.com/advisory/ntap-20210805-0008/ x_refsource_CONFIRM
- FEDORA-2021-78e501d62a vendor-advisory, x_refsource_FEDORA