Feed
9.8CRITICAL
CVE-2021-35042SQL Injection in Django
A critical-severity vulnerability reachable over the network, needing no privileges and no user interaction. EPSS estimates a 44.4% chance of exploitation in the next 30 days. A fixed version is named.
- Exploited in the wild
- Not in KEV
- EPSS
- 44.4%
- percentile 99%
- Fix
- Named by a source
- CVE published 2 Jul 2021
Reference
None of the "Needs attention" rules apply right now.
EPSS 44.4% (+44) · Network attack vector (+10) · No privileges required (+5) · No user interaction (+5)
Immediate actions
- django (PyPI): upgrade to 3.2.5 / 3.1.13 or later on your release line.
- Commit / pull request: https://github.com/django/django/commit/0bd57a879a0d54920bb9038a732645fb917040e9
- Commit / pull request: https://github.com/django/django/commit/a34a5f724c5d5adb2109374ba3989ebb7b11f81f
- Commit / pull request: https://github.com/django/django/commit/dae83a24519d6f284c74414e0b81d64d9b5a0db4
Who should check
django (PyPI) pkg:pypi/django
- Affected>= 3.2a1, < 3.2.5Fixed in3.2.5OSV (GHSA-xpfp-f569-q3p2)
- Affected>= 3.0a1, < 3.1.13Fixed in3.1.13OSV (GHSA-xpfp-f569-q3p2)
- Affected>= 3.1, < 3.1.13Fixed in3.1.13OSV (PYSEC-2021-109)
- Affected>= 3.2, < 3.2.5Fixed in3.2.5OSV (PYSEC-2021-109)
Confirmed facts
- CVSS
- 9.8 CRITICAL (version 3.1)
- Score from
- GitHub Advisory Database (GHSA-xpfp-f569-q3p2)
- Attack vector
- network
- Attack complexity
- low
- Privileges required
- none
- User interaction
- none
- Weakness
- CWE-89
Unknowns
- We show one CVSS score. Other sources may score this CVE differently.
Advisory text
Quoted from the source advisory (untrusted)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.
Update history
- 19 Jan 2026Exploitation more likely 35.2% → 86.2%
- 18 Jan 2026Exploitation more likely 35.2% → 86.2%
- 22 Dec 2025Exploitation more likely 15.0% → 38.4%
- 18 Dec 2025Exploitation more likely 15.0% → 38.4%
- 1 Dec 2025Exploitation more likely 7.0% → 13.2%
- 30 Nov 2025Exploitation more likely 7.0% → 15.0%
- 18 Nov 2025Exploitation more likely 7.0% → 23.6%
References
- advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2021-35042
- commit / pull requesthttps://github.com/django/django/commit/0bd57a879a0d54920bb9038a732645fb917040e9
- commit / pull requesthttps://github.com/django/django/commit/a34a5f724c5d5adb2109374ba3989ebb7b11f81f
- commit / pull requesthttps://github.com/django/django/commit/dae83a24519d6f284c74414e0b81d64d9b5a0db4
- otherhttps://docs.djangoproject.com/en/3.2/releases/security
- advisoryhttps://github.com/advisories/GHSA-xpfp-f569-q3p2
- otherhttps://github.com/django/django
- otherhttps://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2021-109.yaml
- otherhttps://groups.google.com/forum/#!forum/django-announce
- otherhttps://lists.fedoraproject.org/archives/list/[email protected]/message/SS6NJTBYWOX6J7G4U3LUOILARJKWPQ5Y
- otherhttps://security.netapp.com/advisory/ntap-20210805-0008
- otherhttps://www.djangoproject.com/weblog/2021/jul/01/security-releases
- otherhttps://www.openwall.com/lists/oss-security/2021/07/02/2
- otherhttps://docs.djangoproject.com/en/3.2/releases/security/
- otherhttps://www.djangoproject.com/weblog/2021/jul/01/security-releases/
Sources
- EPSS by FIRST.org, Free to use, attribution requested. Scores generated by Empirical Security.
- GHSA-xpfp-f569-q3p2 (GitHub Advisory Database), CC BY 4.0.
- PYSEC-2021-109 (PyPA Advisory Database), CC BY 4.0.
- OSV.dev, Per database.
This page is our own presentation: records are shortened, normalised and merged. Licences
Last checked: kev 34 min ago · osv 34 min ago · nvd 3 min ago · epss 34 min ago · JSON · ask via MCP: explain_vulnerability
Also known as BIT-django-2021-35042, GHSA-xpfp-f569-q3p2, PYSEC-2021-109