SQL Injection in Djangoproject Django
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.
Vulnerability class: SQL Injection
Published · last modified .
CVSS v3 metric
CVSS v3 base score 9.1 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N.
EPSS exploit prediction
EPSS: 0.194 (97.3th percentile), scored .
Moderate probability of exploitation in the next 30 days — watch for active exploitation reports. 97th percentile — 97.3% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.194 · newest: 0.194 · change: 0.000
Affected products
- Djangoproject Django — versions 5.2, 5.2.8, 5.1
Weakness classification (CWE)
Public proof-of-concept exploits
- 0xCyberstan/CVE-2025-64459-Poc
- omarkurt/django-connector-CVE-2025-64459-testbed
- nunpa/CVE-2025-64459
- YouGina/CVE-2025-64459
- rafaelchriss/RedTeamBrasil-CVE-2025-64459
- joshualent/django-cve-2025-64459
- purehate/CVE-2025-64459-hunter
- alxsourin/Helpdesk-Telecom-CVE-2025-64459
- Z3YR0xX/CVE-2025-64459
- rockmelodies/django_sqli_target_CVE-2025-64459
References
- 6a34fbeb-21d4-45e7-8e0a-62b95bc12c92 (vendor-advisory, Vendor Advisory)
- 6a34fbeb-21d4-45e7-8e0a-62b95bc12c92 (mailing-list, Mailing List)
- 6a34fbeb-21d4-45e7-8e0a-62b95bc12c92 (vendor-advisory, Vendor Advisory)
- af854a3a-2127-422b-91ae-364da2661108 (Exploit, Third Party Advisory)
Frequently asked questions
- What is CVE-2025-64459?
- CVE-2025-64459 is a critical-severity vulnerability in Djangoproject Django, classified under SQL Injection. CVSS score: 9.1/10. Published 2025-11-05.
- How severe is CVE-2025-64459?
- Critical severity. CVSS v3 base score is 9.1 out of 10.
- Is CVE-2025-64459 known to be exploited?
- 10 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.