CVE-2022-34265
CRITICALDjango `Trunc()` and `Extract()` database functions vulnerable to SQL Injection
EPSS Exploitation Probability
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
django🐍djangoReal-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
An issue was discovered in Django 3.2 before 3.2.14 and 4.0 before 4.0.6. The Trunc() and Extract() database functions are subject to SQL injection if untrusted data is used as a kind/lookup_name value. Applications that constrain the lookup name and kind choice to a known safe list are unaffected.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 🐍PyPI | django | ≥ 3.2a1&&< 3.2.14 | 3.2.14 |
| 🐍PyPI | django | ≥ 4.0a1&&< 4.0.6 | 4.0.6 |
Research use only. For defensive security, authorized penetration testing, and academic research only. Never execute exploit code against systems without explicit written authorization.
An issue was discovered in Django 3.2 before 3.2.14 and 4.0 before 4.0.6…
An issue was discovered in Django 3.2 before 3.2.14 and 4.0 before 4.0.6…
An issue was discovered in Django 3.2 before 3.2.14 and 4.0 before 4.0.6…
An issue was discovered in Django 3.2 before 3.2.14 and 4.0 before 4.0.6…
Frequently Asked Questions
Is CVE-2022-34265 in your stack?
O3 detects CVE-2022-34265 across PyPI dependencies and uses function-level reachability to confirm whether the vulnerable code path is actually reachable — not just present. No false positives.