CVE-2025-64459Potential SQL injection via _connector keyword argument in QuerySet and Q objects
Updated under an hour ago ()
Does this affect you?
It affects djangoproject Django. Add what you run to find out whether that includes you.
No exploitation reported and no EPSS estimate yet.
Do this next
Free account, 1 product
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.
- CVSS
- 9.1 CRITICAL (v3.1, CISA ADP)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
- Weakness (CWE)
- CWE-89
- Known exploited
- Not in CISA's KEV catalog
- EPSS (exploitation in the next 30 days)
- Not loaded for this CVE
- Assigned by
- DSF
- NVD analysis
- Analyzed
- Record last updated
- Feb 26, 2026
- First seen by InfoSec Signals
- Oct 9, 2026
Affected products
djangoproject Django djangoproject:django (from the name) | from 5.2 before 5.2.8; 5.2.8 not affected; from 5.1 before 5.1.14; 5.1.14 not affected; from 4.2 before 4.2.26; 4.2.26 not affected | CNA record |
djangoproject django djangoproject:django | from 4.2 before 4.2.26; from 5.1 before 5.1.14; from 5.2 before 5.2.8 | NVD |
References
- https://docs.djangoproject.com/en/dev/releases/security/vendor-advisory
- https://groups.google.com/g/django-announcemailing-list
- https://www.djangoproject.com/weblog/2025/nov/05/security-releases/vendor-advisory
- https://shivasurya.me/security/django/2025/11/07/django-sql-injection-CVE-2025-64459.htmlexploit, third-party-advisory
The CVE record on cve.org NVD's entry
The CVE record is authoritative. Products marked “from the name” were identified from the CNA's free-text names, not a CPE, and are matched less certainly. This product uses the NVD API but is not endorsed or certified by the NVD.