{"cve":"CVE-2025-64459","nvd":{"published":"2025-11-05T15:15:41.080","modified":"2026-06-17T09:54:24.473","status":"Analyzed","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.\nThe 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.\nEarlier, unsupported Django series (such as 5.0.x, 4.1.x, and 3.2.x) were not evaluated and may also be affected.\nDjango would like to thank cyberstan for reporting this issue.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","score":9.1},"cwes":["CWE-89"],"references":["https://docs.djangoproject.com/en/dev/releases/security/","https://groups.google.com/g/django-announce","https://www.djangoproject.com/weblog/2025/nov/05/security-releases/","https://shivasurya.me/security/django/2025/11/07/django-sql-injection-CVE-2025-64459.html"],"products":["djangoproject:django"],"source":"nvd","synced_at":"2026-10-19T22:14:53.307938015+00:00"},"epss":{"cve":"CVE-2025-64459","score":0.19257,"percentile":0.97337,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-frmv-pr5f-9mcr","url":"https://osv.dev/vulnerability/GHSA-frmv-pr5f-9mcr","summary":"Django vulnerable to SQL injection via _connector keyword argument in QuerySet and Q objects.","modified":"2026-06-05T14:45:52.053173828Z","packages":[{"ecosystem":"PyPI","name":"django","purl":"pkg:pypi/django","ranges":[">=5.2a1 <5.2.8"],"fixed":["5.2.8"]},{"ecosystem":"PyPI","name":"django","purl":"pkg:pypi/django","ranges":[">=5.0a1 <5.1.14"],"fixed":["5.1.14"]},{"ecosystem":"PyPI","name":"django","purl":"pkg:pypi/django","ranges":["<4.2.26"],"fixed":["4.2.26"]}]},{"id":"PYSEC-2025-108","url":"https://osv.dev/vulnerability/PYSEC-2025-108","summary":"","modified":"2026-06-10T17:01:06.455997404Z","packages":[{"ecosystem":"PyPI","name":"django","purl":"pkg:pypi/django","ranges":[">=4.2 <4.2.26",">=5.1 <5.1.14",">=5.2 <5.2.8"],"fixed":["4.2.26","5.1.14","5.2.8"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}