CVE-2025-64459 in the critical feed json
Potential SQL injection via _connector keyword argument in QuerySet and Q objects
published last yr. modified 2mo ago also BIT-django-2025-64459 , EUVD-2025-37763 , GHSA-frmv-pr5f-9mcr , PYSEC-2025-108
- cvss
- 9.1
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 19.3%
- EPSS 19.3% chance of exploitation in 30 days, percentile 97%
- public exploits
- 1
- Exploit-DB
Summary
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.
Patch / fix
- pypi django 4.2.26, 5.1.14, 5.2.8
- bitnami django 4.2.26, 5.1.14, 5.2.8
- djangoproject Django 4.2.26, 5.1.14, 5.2.8
- python-django Debian 12 3:3.2.25-0+deb12u1
- python-django Debian 13 3:4.2.27-0+deb13u1
- python-django Debian 14 3:4.2.26-1
debian advisories DEBIAN-CVE-2025-64459
- python-django Ubuntu 22.04 LTS 2:3.2.12-2ubuntu1.23
- python-django Ubuntu 24.04 LTS 3:4.2.11-1ubuntu1.12
- python-django Ubuntu 25.10 3:5.2.4-1ubuntu2.1
- python-django Ubuntu Pro 20.04 LTS 2:2.2.12-1ubuntu0.29+esm5
ubuntu advisories UBUNTU-CVE-2025-64459
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- bindep ansible automation platform inside 2.5, ansible automation platform developer 2.5, ansible automation platform 2.5 2.13.0-1.el8ap
- bindep ansible automation platform inside 2.5, ansible automation platform developer 2.5, ansible automation platform 2.5 2.13.0-1.el9ap
- molecule ansible automation platform developer 2.5, ansible automation platform 2.5 25.12.0-1.el8ap
- molecule ansible automation platform developer 2.5, ansible automation platform 2.5 25.12.0-1.el9ap
- receptor ansible automation platform inside 2.5, ansible automation platform developer 2.5, ansible automation platform 2.5 1.6.2-1.el8ap
- receptor ansible automation platform inside 2.5, ansible automation platform developer 2.5, ansible automation platform 2.5 1.6.2-1.el9ap
- receptorctl ansible automation platform inside 2.5, ansible automation platform developer 2.5, ansible automation platform 2.5 1.6.2-1.el8ap
- receptorctl ansible automation platform inside 2.5, ansible automation platform developer 2.5, ansible automation platform 2.5 1.6.2-1.el9ap
red hat advisories RHSA-2025:23069RHSA-2025:23070
- python-Django SLE Module for Package Hub 15 SP7, SLE Module for Package Hub 15 SP6, openSUSE Leap 15.6 4.2.11-150600.3.41.1
suse advisories SUSE-SU-2025:4100-1
- python-Django5 openSUSE Tumbleweed 5.2.16-1.1
- python-Django6 openSUSE Tumbleweed 6.0-1.1
- python-Django openSUSE Leap 16.0 5.2.4-bp160.4.1
- python-Django openSUSE Tumbleweed 5.2.8-1.1
- python-Django4 openSUSE Tumbleweed 4.2.26-1.1
opensuse advisories openSUSE-SU-2026:11270-1openSUSE-SU-2026:10005-1openSUSE-SU-2025:20153-1openSUSE-SU-2025:15712-1openSUSE-SU-2025:15708-1
- py3-django Alpine 3.24, Alpine 3.23, Alpine 3.22 4.2.26-r0
alpine advisories ALPINE-CVE-2025-64459
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
Is CVE-2025-64459 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerVendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2025-64459 updated cvss 8.3
django: Django SQL injection
-
Red Hat Ansible Automation Platform 2 ansible-automation-platform-26/eda-controller-rhel9, ansible-automation-platform-25/ansible-dev-tools-rhel8, ansible-automation-platform-26/ansible-dev-tools-rhel9, ansible-automation-platform-25/aap-cloud-metrics-collector-rhel8, ansible-automation-platform-tech-preview/automation-dashboard-rhel9affected: workaround, no fix available, no fix planned “Will not fix”
-
Red Hat Discovery 1 discovery/discovery-server-rhel9affected: workaround, no fix planned “Will not fix”
-
Red Hat Discovery 2 discovery/discovery-server-rhel9 Red Hat OpenStack Platform 13 (Queens) rhosp13/openstack-horizon-base Red Hat Satellite 6 satellite/iop-advisor-backend-rhel9affected: workaround, no fix available
-
Red Hat Ansible Automation Platform 2.4 ansible-automation-platform-24fixed: vendor fix RHSA-2025:23130
-
Red Hat Ansible Automation Platform 2.5 ansible-automation-platform-25fixed: vendor fix RHSA-2025:23131
-
Red Hat Ansible Automation Platform 2.5 for RHEL 8 bindep 2.13.0-1.el8ap, receptor 1.6.2-1.el8ap, molecule 25.12.0-1.el8ap, receptorctl 1.6.2-1.el8ap, ansible-sign 0.1.4-1.el8ap, ansible-lint 25.12.0-1.el8ap, +50 more Red Hat Ansible Automation Platform 2.5 for RHEL 9 bindep 2.13.0-1.el9ap, receptor 1.6.2-1.el9ap, molecule 25.12.0-1.el9ap, receptorctl 1.6.2-1.el9ap, ansible-sign 0.1.4-1.el9ap, ansible-lint 25.12.0-1.el9ap, +50 morefixed: vendor fix RHSA-2025:23069
-
Red Hat Ansible Automation Platform 2.6 ansible-automation-platform-26, ansible-automation-platform-26 1768873505, ansible-automation-platform-tech-preview 2.6-1765600296fixed: vendor fix RHSA-2025:23133
-
Red Hat Ansible Automation Platform 2.6 for RHEL 9 python3.11-django 4.2.26-2.el9ap, automation-controller-venv-tower 4.7.6-1.el9apfixed: vendor fix RHSA-2025:23070
show 3 moreshow fewer
-
Red Hat OpenShift Service Mesh 2 openshift-service-mesh/pilot-rhel8, openshift-service-mesh/grafana-rhel8, openshift-service-mesh/proxyv2-rhel9, openshift-service-mesh/istio-cni-rhel8, openshift-service-mesh/ratelimit-rhel8, openshift-service-mesh/istio-rhel8-operator, +2 more Red Hat OpenShift Service Mesh 3 openshift-service-mesh/istio-cni-rhel9, openshift-service-mesh/istio-pilot-rhel9, openshift-service-mesh/istio-proxyv2-rhel9, openshift-service-mesh/istio-rhel9-operator, openshift-service-mesh/istio-must-gather-rhel9, openshift-service-mesh/istio-sail-operator-bundle, +1 morenot affected: component not present
-
Red Hat Ansible Automation Platform 2 ansible-automation-platform/ee-minimal-rhel8, ansible-automation-platform/ee-minimal-rhel9, ansible-automation-platform-26/mcp-tools-rhel9, ansible-automation-platform-24/de-minimal-rhel8, ansible-automation-platform-24/de-minimal-rhel9, ansible-automation-platform-24/ee-minimal-rhel8, +22 more Red Hat Ansible Automation Platform 2.4 ansible-automation-platform-24, ansible-automation-platform 2.4-1764863761.0, ansible-automation-platform 2.4-1764863777.1 Red Hat Ansible Automation Platform 2.5 ansible-automation-platform, ansible-automation-platform-25 Red Hat Ansible Automation Platform 2.6 ansible-automation-platform, ansible-automation-platform-26, ansible-automation-platform 1768951346, ansible-automation-platform 1768951348, ansible-automation-platform-tech-preview, ansible-automation-platform-26 1768509220, +24 more Red Hat Ansible Automation Platform 2.6 for RHEL 9 bindep 2.13.0-1.el9ap, molecule 25.12.0-1.el9ap, ansible-sign 0.1.4-1.el9ap, ansible-lint 25.12.0-1.el9ap, ansible-builder 3.1.1-2.el9ap, automation-hub 4.11.4-1.el9ap, +44 more Red Hat Ansible Automation Platform 2.6 for RHEL 10 tox 4.15.1-2.el10ap, bindep 2.13.0-2.el10ap, receptor 1.6.2-2.el10ap, yamllint 1.35.1-2.el10ap, molecule 25.12.0-2.el10ap, python-pbr 6.0.0-3.el10ap, +135 morenot affected: vulnerable code not present
-
Red Hat OpenStack Platform 13 (Queens) rhosp13/openstack-horizon Red Hat OpenStack Platform 16.2 rhosp-rhel8/openstack-horizon Red Hat OpenStack Platform 17.1 rhosp-rhel9/openstack-horizon Red Hat OpenStack Platform 18.0 rhoso/openstack-horizon-rhel9not affected: vulnerable code not in execute path
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Timeline
- Published
- First public exploit (EDB-52456)
CISA SSVC
- Exploitation
- none
- Automatable
- yes
- Technical impact
- total
- Assessed
- last yr.
Exploit prediction
19.26% chance of exploitation in the next 30 days, higher than 97% of all scored CVEs (FIRST EPSS, 2026-11-09).
Exploits and checks
- EDB-52456 Django 5.1.13 - SQL Injection webapps, 2025-12-03
- shivasurya.me https://shivasurya.me/security/django/2025/11/07/django-sql-injection-CVE-2025-64459.html referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CISA ADP | 3.1 | 9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |
| GitHub | 3.1 | 9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |
| CNA | 3.1 | 9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |
| OSV | 3.1 | 9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | django | >=5.2a1, <5.2.8 >=5.0a1, <5.1.14 <4.2.26 >=4.2, <4.2.26 >=5.1, <5.1.14 >=5.2, <5.2.8 |
5.2.8 5.1.14 4.2.26 |
| bitnami | django | >=4.2.0, <4.2.26 >=5.1.0, <5.1.14 >=5.2.0, <5.2.8 |
4.2.26 5.1.14 5.2.8 |
Affected products
- djangoproject Django
Classification
- Weakness
-
- CWE-89 Improper Neutralization of Special Elements used in an SQL Command
- Technology feeds
References
-
github.com
/django/django/commit/06dd38324ac3d60d83d9f3adabf0dcdf423d2a85
web
-
github.com
/django/django/commit/59ae82e67053d281ff4562a24bbba21299f0a7d4
web
-
github.com
/django/django/commit/6703f364d767e949c5b0e4016433ef75063b4f9b
web
-
github.com
/django/django/commit/72d2c87431f2ae0431d65d0ec792047f078c8241
web
-
shivasurya.me
/security/django/2025/11/07/django-sql-injection-CVE-2025-64459.html
web, exploit, third-party-advisory, advisory, evidence
-
docs.djangoproject.com
/en/dev/releases/security/
vendor-advisory, advisory
-
djangoproject.com
/weblog/2025/nov/05/security-releases/
vendor-advisory, advisory
-
groups.google.com
/g/django-announce
mailing-list, web, discussion, article
-
nvd.nist.gov
/vuln/detail/CVE-2025-64459
advisory, web
-
docs.djangoproject.com
/en/dev/releases/security
web
-
github.com
/django/django
package
-
github.com
/omarkurt/django-connector-CVE-2025-64459-testbed
web
-
github.com
/pypa/advisory-database/tree/main/vulns/django/PYSEC-2025-108.yaml
web
-
djangoproject.com
/weblog/2025/nov/05/security-releases
web
-
github.com
/advisories/GHSA-frmv-pr5f-9mcr
advisory
Sources
- CVE List CVE-2025-64459
- GitHub Advisory GHSA-frmv-pr5f-9mcr
- NVD CVE-2025-64459
- OSV BIT-django-2025-64459
- OSV PYSEC-2025-108
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.