CVE-2025-64459: djangoproject django SQL Injection
Vulnerability summary
CVE-2025-64459 is a critical (CVSS 9.1) SQL Injection vulnerability in djangoproject django. EPSS estimates a 19.26% chance of exploitation in the next 30 days, higher than 97.3% of scored vulnerabilities. 2 public exploits are recorded.
Advisory lineage
Upstream 0 · Downstream 8 · Related 4Timeline
- 05-11-2025PublishedVulnerability first disclosed.
- 26-02-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
6 scores · 6 sources · 1 version- OSV · PypiEcosystem advisory · calculated9.1CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
- OSV · Red hatEcosystem advisory · calculated8.3HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:LDiffers
- OSV · UbuntuEcosystem advisory · calculated9.1CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
- OSV · DebianEcosystem advisory · calculated9.1CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
- NVDNIST9.1CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
EPSS trend
Probability
19.26%
Chance of exploitation in the next 30 days
Percentile
97%
Versus all other CVEs
30-day change
-0.14 pp
From 19.40% on 19-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
2 foundExploit Reference (shivasurya.me)
Maturity: unknown
Django 5.1.13 - SQL Injection
Maturity: poc
Weaknesses
CWE · root causeAffected systems
Opensuse2 products
- python-Django4&distro=openSUSE Tumbleweed< 4.2.26-1.1
- python-Django&distro=openSUSE Tumbleweed< 5.2.8-1.1
Redhat2 products
- automation-controller-venv-tower< 0:4.7.6-1.el9ap
- python3.11-django< 0:4.2.26-2.el9ap
Debian1 product
- python-django< 3:3.2.25-0+deb12u1 | < 3:4.2.27-0+deb13u1 | < 3:4.2.26-1
Djangoproject1 product
- django≥ 4.2, < 4.2.26 | ≥ 5.1, < 5.1.14 | ≥ 5.2, < 5.2.8
Mageia1 product
- python-django< 4.1.13-1.8.mga9
PyPI1 product
- django≥ 5.2a1, < 5.2.8 | ≥ 5.0a1, < 5.1.14 | < 4.2.26 | ≥ 5.2, < 5.2.8
Ubuntu1 product
- python-django< 2:2.2.12-1ubuntu0.29+esm5 | < 2:3.2.12-2ubuntu1.23 | < 3:4.2.11-1ubuntu1.12 | < 3:5.2.4-1ubuntu2.1
7 vendors · 9 products
References
29 links- shivasurya.me/security/django/2025/11/07/django-sql-injection-CVE-2025-64459.htmlWEBEVIDENCEExploitThird Party Advisory
Show all 29 references
- github.com/django/djangoPACKAGE