CVE-2025-64459: Vulnerability in Djangoproject Django
Critical. 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....
PyPI, CWE-89
- Exploitation
- None confirmed
- Severity
- 9.1 of 10
- Attack likelihood
- Unknown
- Fix
- Fixed version known
- Patch deadline
- No deadline set
Details
- Advisory ID
- GHSA-frmv-pr5f-9mcr
- Vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
- Weakness
- CWE-89
- Published
- 5 Nov 2025
- Last change
- 17 Jun 2026
- Ecosystem
- PyPI
Affected products
Affected versions and the first fixed release
- Djangoproject Django From 4.2 before 4.2.26; From 5.1 before 5.1.14; From 5.2 before 5.2.8. Fixed in 4.2.26, 5.1.14, 5.2.8
Affected packages
Vulnerable version ranges and fixed releases
- django PyPI, Affected from 5.2a1 before 5.2.8. Fixed in 5.2.8
Advisories
Vendor and security advisories
- groups.google.com/g/django-announce
- djangoproject.com/weblog/2025/nov/05/security-releases/
- shivasurya.me/security/django/2025/11/07/django-sql-injection-CVE-2025-64459.html
Patches and fixes
Updates, commits and release notes
Related
- Django vulnerabilities Recent advisories, watch this product