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

GHSA-p64x-8rxx-wf6q

CRITICAL

Django `Trunc()` and `Extract()` database functions vulnerable to SQL Injection

Also known asBIT-django-2022-34265CVE-2022-34265PYSEC-2022-213
Published
Jul 5, 2022
Updated
Feb 21, 2025
Affected
2 pkgs
Patched
2 / 2
Exploits
7 known

EPSS Exploitation Probability

via FIRST.org ↗
92.8%probability of exploitation in next 30 days
Very High Risk100th percentile0.00%
92.2%92.6%93.0%93.3%92.7%92.8%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

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

2 total 2 fixed
EcosystemPackageVulnerable rangeFix
🐍PyPIdjango3.2a1&&< 3.2.143.2.14
🐍PyPIdjango4.0a1&&< 4.0.64.0.6
Exploits & PoCs
7

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

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

Is GHSA-p64x-8rxx-wf6q in your stack?

O3 detects GHSA-p64x-8rxx-wf6q across PyPI dependencies and uses function-level reachability to confirm whether the vulnerable code path is actually reachable — not just present. No false positives.