Back
CVE-2025-64459
Potential SQL injection via _connector keyword argument in QuerySet and Q objects
Critical9.1EPSS 19.3%
- Published
- Updated
- Reserved
- Assigned by
- DSF
Description
An issue was discovered in 5.1 before 5.1.14, 4.2 before 4.2.26, and 5.2 before 5.2.8. The methods `QuerySet.filter()`, `QuerySet.exclude()`, and `QuerySet.get()`, and the class `Q()`, are subject to SQL injection when using a suitably crafted dictionary, with dictionary expansion, as the `_connector` argument. Earlier, unsupported Django series (such as 5.0.x, 4.1.x, and 3.2.x) were not evaluated and may also be affected. Django would like to thank cyberstan for reporting this issue.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| CISA-ADPADP (enrichment) | 3.1 | Critical9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |
| NVDNVD · Analyzed | 3.1 | Critical9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |
- EPSS (exploitation in 30 days)
- 19.3% · top 2.7% of all CVEs (6 Nov 2026)
- CISA SSVC
- Exploitation: none · Automatable: yes · Technical impact: total
Loading the EPSS history…
The list uses the assigner's score when there is one, then CISA's, then NVD's: Critical 9.1.
Weakness
Affected products
- affected 5.2 – < 5.2.8
- unaffected 5.2.8
- affected 5.1 – < 5.1.14
- unaffected 5.1.14
- affected 4.2 – < 4.2.26
- unaffected 4.2.26
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- PyPIdjangoGHSA-frmv-pr5f-9mcr (opens in a new tab)
References (4)
- Django security archive (opens in a new tab)vendor-advisory
- Django releases announcements (opens in a new tab)mailing-list
- Django security releases issued: 5.2.8, 5.1.14, and 4.2.26 (opens in a new tab)vendor-advisory
- https://shivasurya.me/security/django/2025/11/07/django-sql-injection-CVE-2025-64459.html (opens in a new tab)
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-frmv-pr5f-9mcr (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://trackcve.app/cve/CVE-2025-64459)Record last updated .