CVE-2025-64459Potential SQL injection via _connector keyword argument in QuerySet and Q objects
- 9.1CriticalCVSS base score
- 19.3%Exploitation in 30 daysEPSS · top 2.6% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- 1Public exploitsMetasploit, Nuclei and Exploit-DB
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.
Public exploit
An exploit or proof of concept is public: anyone can try it against an unpatched system. The public collections list an Exploit-DB entry for it.
Show the exploits1
Exploit-DB1 entry
- Django 5.1.13 - SQL Injection (Exploit-DB entry) (opens in a new tab)
EDB-ID 52456webapps, multiplepublished 3 Dec 2025Not verified
Modules, templates and exploits as listed by the Metasploit Framework (BSD-3-Clause), ProjectDiscovery's Nuclei templates (MIT) and the Exploit Database (GPLv2), read once a day. Where the data comes from
Timeline
ID reserved
By DSF
- 1 day later
· 1 day later
Published
- 4 months later
· 4 months later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
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.6% of all CVEs (13 Nov 2026)
- CISA SSVC
- Exploitation: none · Automatable: yes · Technical impact: total
The list uses the assigner's score when there is one, then CISA's, then NVD's: Critical 9.1.
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
References4
- 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)
- EUVD EUVD-2025-37763 (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://cveledger.app/cve/CVE-2025-64459)Record last updated .