CVE-2025-64459Django vulnerable to SQL injection via _connector keyword argument in QuerySet and Q objects.
A critical-severity vulnerability reachable over the network, needing no privileges and no user interaction. EPSS estimates a 19.3% chance of exploitation in the next 30 days. A fixed version is named.
- Exploited in the wild
- Not in KEV
- EPSS
- 19.3%
- percentile 98%
- Fix
- Named by a source
- CVE published 5 Nov 2025
Reference
None of the "Needs attention" rules apply right now.
EPSS 19.3% (+19) · Public exploit or proof of concept (+15) · Network attack vector (+10) · No privileges required (+5) · No user interaction (+5)
Immediate actions
- django (PyPI): upgrade to 5.2.8 / 5.1.14 / 4.2.26 or later on your release line.
- Commit / pull request: https://github.com/django/django/commit/06dd38324ac3d60d83d9f3adabf0dcdf423d2a85
- Commit / pull request: https://github.com/django/django/commit/59ae82e67053d281ff4562a24bbba21299f0a7d4
- Commit / pull request: https://github.com/django/django/commit/6703f364d767e949c5b0e4016433ef75063b4f9b
- Commit / pull request: https://github.com/django/django/commit/72d2c87431f2ae0431d65d0ec792047f078c8241
- Advisory: https://docs.djangoproject.com/en/dev/releases/security/
- Advisory: https://www.djangoproject.com/weblog/2025/nov/05/security-releases/
- Advisory: https://nvd.nist.gov/vuln/detail/CVE-2025-64459
- Advisory: https://github.com/advisories/GHSA-frmv-pr5f-9mcr
Who should check
django (PyPI) pkg:pypi/django
- Affected>= 5.2a1, < 5.2.8Fixed in5.2.8OSV (GHSA-frmv-pr5f-9mcr)
- Affected>= 5.0a1, < 5.1.14Fixed in5.1.14OSV (GHSA-frmv-pr5f-9mcr)
- Affected< 4.2.26Fixed in4.2.26OSV (GHSA-frmv-pr5f-9mcr)
- Affected>= 4.2, < 4.2.26Fixed in4.2.26OSV (PYSEC-2025-108)
- Affected>= 5.1, < 5.1.14Fixed in5.1.14OSV (PYSEC-2025-108)
- Affected>= 5.2, < 5.2.8Fixed in5.2.8OSV (PYSEC-2025-108)
djangoproject django product:djangoproject/django
- Affected>= 5.2, < 5.2.8Affected range ends before5.2.8as published by CNA (CVE List)
- Affected>= 5.1, < 5.1.14Affected range ends before5.1.14as published by CNA (CVE List)
- Affected>= 4.2, < 4.2.26Affected range ends before4.2.26as published by CNA (CVE List)
- Affected>= 4.2, < 4.2.26Affected range ends before4.2.26as published by CPE data (via the NVD API)
- Affected>= 5.1, < 5.1.14Affected range ends before5.1.14as published by CPE data (via the NVD API)
- Affected>= 5.2, < 5.2.8Affected range ends before5.2.8as published by CPE data (via the NVD API)
Products (not packages) are shown as their sources publish them. We check no product version against these ranges; a fixed version is the one the source names. Ask the vendor's advisory.
Confirmed facts
- CVSS
- 9.1 CRITICAL (version 3.1)
- Score from
- CISA-ADP
- Attack vector
- network
- Attack complexity
- low
- Privileges required
- none
- User interaction
- none
- Weakness
- CWE-89
- Exploitation (CISA SSVC)
- none
- Automatable (CISA SSVC)
- yes
- Assigned by
- 6a34fbeb-21d4-45e7-8e0a-62b95bc12c92
Unknowns
- We show one CVSS score. Other sources may score this CVE differently.
Advisory text
Quoted from the source advisory (untrusted)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.
Update history
- 5 Nov 2025Published
References
- advisoryhttps://docs.djangoproject.com/en/dev/releases/security/
- otherhttps://groups.google.com/g/django-announce
- advisoryhttps://www.djangoproject.com/weblog/2025/nov/05/security-releases/
- exploithttps://shivasurya.me/security/django/2025/11/07/django-sql-injection-CVE-2025-64459.html
- advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2025-64459
- commit / pull requesthttps://github.com/django/django/commit/06dd38324ac3d60d83d9f3adabf0dcdf423d2a85
- commit / pull requesthttps://github.com/django/django/commit/59ae82e67053d281ff4562a24bbba21299f0a7d4
- commit / pull requesthttps://github.com/django/django/commit/6703f364d767e949c5b0e4016433ef75063b4f9b
- commit / pull requesthttps://github.com/django/django/commit/72d2c87431f2ae0431d65d0ec792047f078c8241
- otherhttps://docs.djangoproject.com/en/dev/releases/security
- otherhttps://github.com/django/django
- otherhttps://github.com/omarkurt/django-connector-CVE-2025-64459-testbed
- otherhttps://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2025-108.yaml
- otherhttps://www.djangoproject.com/weblog/2025/nov/05/security-releases
- advisoryhttps://github.com/advisories/GHSA-frmv-pr5f-9mcr
Sources
- EPSS by FIRST.org, Free to use, attribution requested. Scores generated by Empirical Security.
- CVE-2025-64459 (CVE List (CNA and CISA ADP data, through the NVD API)), CVE terms of use. Copyright The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation.
- NVD API 2.0 (NIST), the API we query, NVD API terms of use. This product uses the NVD API but is not endorsed or certified by the NVD.
- GHSA-frmv-pr5f-9mcr (GitHub Advisory Database), CC BY 4.0.
- PYSEC-2025-108 (PyPA Advisory Database), CC BY 4.0.
- OSV.dev, Per database.
This page is our own presentation: records are shortened, normalised and merged. Licences
Last checked: kev 48 min ago · osv 48 min ago · nvd 17 min ago · epss 48 min ago · JSON · ask via MCP: explain_vulnerability
Also known as BIT-django-2025-64459, GHSA-frmv-pr5f-9mcr, PYSEC-2025-108