CVE Explorer
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.
Known exploited
Not asserted
Disputed
No
Stale source
No
Conflicts
0
Affected products and versions
1 source assertion{"collectionURL":"https://pypi.org/project/Django/","defaultStatus":"unaffected","packageName":"django","product":"Django","repo":"https://github.com/django/django/","vendor":"djangoproject","versions":[{"lessThan":"5.2.8","status":"affected","version":"5.2","versionType":"semver"},{"status":"unaffected","version":"5.2.8","versionType":"semver"},{"lessThan":"5.1.14","status":"affected","version":"5.1","versionType":"semver"},{"status":"unaffected","version":"5.1.14","versionType":"semver"},{"lessThan":"4.2.26","status":"affected","version":"4.2","versionType":"semver"},{"status":"unaffected","…
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:6cd4e8d2ba3573c4ec8b1b86d5cff04fd0a21ddb13cda104236c7db86a28c7fe · sha256:8ac265a1c44959e5… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":9.1,"baseSeverity":"CRITICAL","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","version":"3.1"},"metric_type":"cvssV3_1"}
- cve_program_cvelist_v5cvssurn:baitaphish:normalized-source-record:v2:6cd4e8d2ba3573c4ec8b1b86d5cff04fd0a21ddb13cda104236c7db86a28c7fe · sha256:8ac265a1c44959e5… · /containers/adp/0/metrics/0/cvssV3_1
CWE assertions
1 source assertion{"cweId":"CWE-89","description":"CWE-89 Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:6cd4e8d2ba3573c4ec8b1b86d5cff04fd0a21ddb13cda104236c7db86a28c7fe · sha256:8ac265a1c44959e5… · /containers/cna/problemTypes/0/descriptions/0
Source references
4 source assertions{"name":"Django security archive","tags":["vendor-advisory"],"url":"https://docs.djangoproject.com/en/dev/releases/security/"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:6cd4e8d2ba3573c4ec8b1b86d5cff04fd0a21ddb13cda104236c7db86a28c7fe · sha256:8ac265a1c44959e5… · /containers/cna/references/0
{"name":"Django releases announcements","tags":["mailing-list"],"url":"https://groups.google.com/g/django-announce"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:6cd4e8d2ba3573c4ec8b1b86d5cff04fd0a21ddb13cda104236c7db86a28c7fe · sha256:8ac265a1c44959e5… · /containers/cna/references/1
{"url":"https://shivasurya.me/security/django/2025/11/07/django-sql-injection-CVE-2025-64459.html"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:6cd4e8d2ba3573c4ec8b1b86d5cff04fd0a21ddb13cda104236c7db86a28c7fe · sha256:8ac265a1c44959e5… · /containers/adp/1/references/0
{"name":"Django security releases issued: 5.2.8, 5.1.14, and 4.2.26","tags":["vendor-advisory"],"url":"https://www.djangoproject.com/weblog/2025/nov/05/security-releases/"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:6cd4e8d2ba3573c4ec8b1b86d5cff04fd0a21ddb13cda104236c7db86a28c7fe · sha256:8ac265a1c44959e5… · /containers/cna/references/2
Attribution and limitations
- CVE Program CVEList V5: Reproduce the MITRE copyright designation and CVE license in copies. Source →
Provider severity values are preserved separately. Baitaphish does not convert them into a risk rating, infer affected products, or treat EPSS as observed exploitation.