Your RSA-2048 keys break in 2030. Find every one of them before attackers do.
🐍 PyPI

CVE-2021-35042

CRITICAL

SQL Injection in Django

Also known asBIT-django-2021-35042GHSA-xpfp-f569-q3p2PYSEC-2021-109
Published
Jul 2, 2021
Updated
Apr 16, 2026
Affected
2 pkgs
Patched
2 / 2
Exploits
5 known

EPSS Exploitation Probability

via FIRST.org ↗
90.9%probability of exploitation in next 30 days
Very High Risk100th percentile0.00%
0.00%33.3%66.7%100.0%13.2%90.9%Dec 25Apr 26Jun 26

EPSS (Exploit Prediction Scoring System) is a daily probability model maintained by FIRST.org. It estimates the likelihood a CVE will be exploited in production environments within the next 30 days, derived from real-world threat intelligence signals.

Blast Radius

2 pkgs affected
🐍django🐍django

Real-time download stats are indexed for npm and PyPI packages. This vulnerability affects PyPI packages — download data is not available via public APIs for these ecosystems.

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

2 total 2 fixed
EcosystemPackageVulnerable rangeFix
🐍PyPIdjango3.2a1&&< 3.2.53.2.5
🐍PyPIdjango3.0a1&&< 3.1.133.1.13
Exploits & PoCs
5

Research use only. For defensive security, authorized penetration testing, and academic research only. Never execute exploit code against systems without explicit written authorization.

Frequently Asked Questions

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.
O3 Security · Impact-Aware SCA

Is CVE-2021-35042 in your stack?

O3 detects CVE-2021-35042 across PyPI dependencies and uses function-level reachability to confirm whether the vulnerable code path is actually reachable — not just present. No false positives.