# CVE-2025-64459

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.

- Page: https://www.vulneraibility.com/cve/CVE-2025-64459
- CVSS: 9.1
- Known exploited: not in CISA KEV as of our last sync
- EPSS: 19.26% (percentile 97.4)
- Public exploit code: 1 on Exploit-DB · 10 GitHub proofs of concept (first 2025-11-06)
- CISA SSVC: exploitation none, automatable yes, technical impact total (assessed 2025-11-06)
- Weakness: CWE-89
- Published: 2025-11-05

## Affected versions

- djangoproject Django: affected >= 5.2 and < 5.2.8; >= 5.1 and < 5.1.14; >= 4.2 and < 4.2.26; fixed in 5.2.8, 5.1.14, 4.2.26

A version outside these ranges is not a statement that it is unaffected.

## References

- [advisory] https://docs.djangoproject.com/en/dev/releases/security/
- [other] https://groups.google.com/g/django-announce
- [advisory] https://www.djangoproject.com/weblog/2025/nov/05/security-releases/
- [other] https://shivasurya.me/security/django/2025/11/07/django-sql-injection-CVE-2025-64459.html

---
Summary, impact and action are written by the vulneraibility.com AI analysis pipeline from the CVE record, NVD, CISA and FIRST data; verify against the references.
