Feed
9.8CRITICAL

CVE-2022-34265Django `Trunc()` and `Extract()` database functions vulnerable to SQL Injection

A critical-severity vulnerability reachable over the network, needing no privileges and no user interaction. EPSS estimates a 21.3% chance of exploitation in the next 30 days. A fixed version is named.

Exploited in the wild
Not in KEV
EPSS
21.3%
percentile 98%
Priority
46/100 medium
how it is computed
Fix
Named by a source
CVE published 4 Jul 2022

Reference

None of the "Needs attention" rules apply right now.

EPSS 21.3% (+21) · Network attack vector (+10) · No privileges required (+5) · No user interaction (+5)

Immediate actions

Who should check

  • django (PyPI) pkg:pypi/django

    • Affected>= 3.2a1, < 3.2.14Fixed in3.2.14OSV (GHSA-p64x-8rxx-wf6q)
    • Affected>= 4.0a1, < 4.0.6Fixed in4.0.6OSV (GHSA-p64x-8rxx-wf6q)
    • Affected>= 3.2, < 3.2.14Fixed in3.2.14OSV (PYSEC-2022-213)
    • Affected>= 4.0, < 4.0.6Fixed in4.0.6OSV (PYSEC-2022-213)

Confirmed facts

CVSS
9.8 CRITICAL (version 3.1)
Score from
GitHub Advisory Database (GHSA-p64x-8rxx-wf6q)
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)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.

Update history

  • 25 Nov 2025Exploitation more likely 51.0% → 92.7%

References

Sources

This page is our own presentation: records are shortened, normalised and merged. Licences

Last checked: kev 37 min ago · osv 36 min ago · nvd 6 min ago · epss 36 min ago · JSON · ask via MCP: explain_vulnerability

Also known as BIT-django-2022-34265, GHSA-p64x-8rxx-wf6q, PYSEC-2022-213