CVE-2025-64459
Detail
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.
Metrics
โ
NVD enrichment efforts reference publicly available information to associate
vector strings. CVSS information contributed by other sources is also
displayed.
CVSS 4.0 Severity and Vector Strings:
NVD assessment
not yet provided.
CVSS 3.x Severity and Vector Strings:
Base
Score:
NVD assessment
not yet provided.
Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
CVSS 2.0 Severity and Vector Strings:
Base
Score:
NVD assessment
not yet provided.
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving NIST webspace.
We have provided these links to other web sites because they
may have information that would be of interest to you. No
inferences should be drawn on account of other sites being
referenced, or not, from this page. There may be other web
sites that are more appropriate for your purpose. NIST does
not necessarily endorse the views expressed, or concur with
the facts presented on these sites. Further, NIST does not
endorse any commercial products that may be mentioned on
these sites. Please address comments about this page to [email protected].
Weakness Enumeration
| CWE-ID |
CWE Name |
Source |
|
CWE-89
|
Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') |
Django Software Foundationโโ
|
Change History
6 change records found show changes
CVE Modified by CISA-ADP
6/17/2026 5:54:24 AM
| Action |
Type |
Old Value |
New Value |
| Added |
SSVC |
{"timestamp":"2025-11-06T04:55:36.221321Z","id":"CVE-2025-64459","options":[{"exploitation":"none"},{"automatable":"yes"},{"technicalImpact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}
|
CVE Modified by Django Software Foundation
6/17/2026 5:54:24 AM
| Action |
Type |
Old Value |
New Value |
| Added |
Affected |
[{"vendor":"djangoproject","product":"Django","defaultStatus":"unaffected","collectionURL":"https://pypi.org/project/Django/","packageName":"django","repo":"https://github.com/django/django/","versions":[{"version":"5.2","lessThan":"5.2.8","versionType":"semver","status":"affected"},{"version":"5.2.8","versionType":"semver","status":"unaffected"},{"version":"5.1","lessThan":"5.1.14","versionType":"semver","status":"affected"},{"version":"5.1.14","versionType":"semver","status":"unaffected"},{"version":"4.2","lessThan":"4.2.26","versionType":"semver","status":"affected"},{"version":"4.2.26","versionType":"semver","status":"unaffected"}]}]
|
Initial Analysis by NIST
11/10/2025 1:25:59 PM
| Action |
Type |
Old Value |
New Value |
| Added |
CPE Configuration |
OR
*cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:* versions from (including) 4.2 up to (excluding) 4.2.26
*cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:* versions from (including) 5.1 up to (excluding) 5.1.14
*cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:* versions from (including) 5.2 up to (excluding) 5.2.8
|
| Added |
Reference Type |
CVE: https://shivasurya.me/security/django/2025/11/07/django-sql-injection-CVE-2025-64459.html Types: Exploit, Third Party Advisory
|
| Added |
Reference Type |
DSF: https://docs.djangoproject.com/en/dev/releases/security/ Types: Vendor Advisory
|
| Added |
Reference Type |
DSF: https://groups.google.com/g/django-announce Types: Mailing List
|
| Added |
Reference Type |
DSF: https://www.djangoproject.com/weblog/2025/nov/05/security-releases/ Types: Vendor Advisory
|
CVE Modified by CVE
11/08/2025 8:15:35 AM
| Action |
Type |
Old Value |
New Value |
| Added |
Reference |
https://shivasurya.me/security/django/2025/11/07/django-sql-injection-CVE-2025-64459.html
|
CVE Modified by CISA-ADP
11/05/2025 12:15:46 PM
| Action |
Type |
Old Value |
New Value |
| Added |
CVSS V3.1 |
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
|
New CVE Received from Django Software Foundation
11/05/2025 10:15:41 AM
| Action |
Type |
Old Value |
New Value |
| Added |
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.
|
| Added |
CWE |
CWE-89
|
| Added |
Reference |
https://docs.djangoproject.com/en/dev/releases/security/
|
| Added |
Reference |
https://groups.google.com/g/django-announce
|
| Added |
Reference |
https://www.djangoproject.com/weblog/2025/nov/05/security-releases/
|
Quick Info
CVE Dictionary Entry: CVE-2025-64459 NVD
Published Date: 11/05/2025 NVD
Last Modified: 06/17/2026
Source: Django Software Foundation
|