{"cve":"CVE-2022-34265","nvd":{"published":"2022-07-04T16:15:09.260","modified":"2026-06-17T04:50:00.523","status":"Modified","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8},"cwes":["CWE-89"],"references":["https://docs.djangoproject.com/en/4.0/releases/security/","https://groups.google.com/forum/#%21forum/django-announce","https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/HWY6DQWRVBALV73BPUVBXC3QIYUM24IK/","https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LTZVAKU5ALQWOKFTPISE257VCVIYGFQI/","https://security.netapp.com/advisory/ntap-20220818-0006/"],"products":["djangoproject:django"],"source":"nvd","synced_at":"2026-10-19T21:33:44.859608815+00:00"},"epss":{"cve":"CVE-2022-34265","score":0.73607,"percentile":0.99469,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-p64x-8rxx-wf6q","url":"https://osv.dev/vulnerability/GHSA-p64x-8rxx-wf6q","summary":"Django `Trunc()` and `Extract()` database functions vulnerable to SQL Injection","modified":"2025-02-21T05:27:38.084922Z","packages":[{"ecosystem":"PyPI","name":"django","purl":"pkg:pypi/django","ranges":[">=3.2a1 <3.2.14"],"fixed":["3.2.14"]},{"ecosystem":"PyPI","name":"django","purl":"pkg:pypi/django","ranges":[">=4.0a1 <4.0.6"],"fixed":["4.0.6"]}]},{"id":"PYSEC-2022-213","url":"https://osv.dev/vulnerability/PYSEC-2022-213","summary":"","modified":"2023-12-06T01:02:23.703337Z","packages":[{"ecosystem":"PyPI","name":"django","purl":"pkg:pypi/django","ranges":[">=3.2 <3.2.14",">=4.0 <4.0.6"],"fixed":["3.2.14","4.0.6"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}