CVE-2025-64459
A public proof of concept exists; no exploitation attested.
- Published2025-11-05
- Fixed in5.2.8 · 5.1.14 · 4.2.26
- WeaknessCWE-89
Am I affected?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « affected ».With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.
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.
Timeline
dates in UTC- 2025-11-0515:15CVE publishedNVD
- 2025-12-03Exploit-DB entryExploit-DB
Versions per branch
NVD · OSV| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 5.2 | ≥ 5.2, < 5.2.8 | 5.2.8 | NVD · OSV |
| 5.2 | ≥ 5.2.0, < 5.2.8 | 5.2.8 | OSV |
| 5.2 | ≥ 5.2a1, < 5.2.8 | 5.2.8 | OSV |
| 5.1 | ≥ 5.1, < 5.1.14 | 5.1.14 | NVD · OSV |
| 5.1 | ≥ 5.1.0, < 5.1.14 | 5.1.14 | OSV |
| 5.x | ≥ 5.0a1, < 5.1.14 | 5.1.14 | OSV |
| 4.2 | ≥ 4.2, < 4.2.26 | 4.2.26 | NVD · OSV |
| 4.2 | ≥ 4.2.0, < 4.2.26 | 4.2.26 | OSV |
| 4.2 | < 4.2.26 | 4.2.26 | OSV |
as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.
Products declared by the CNA1 product
As DSF, the CNA that assigned this CVE, declared them in the CVE record; versions as written.
- djangoproject Djangoother versions: not affected
package djangohttps://pypi.org/project/Django/
Affected- ≥ 5.2, < 5.2.8fixed in 5.2.8semver
- ≥ 5.1, < 5.1.14fixed in 5.1.14semver
- ≥ 4.2, < 4.2.26fixed in 4.2.26semver
Not affected = 5.2.8 · = 5.1.14 · = 4.2.26
Source: the CNA record (CVE Program), © The MITRE Corporation,CVE Terms of UseCVE recordupdated 2025-11-05
Distribution builds and vendor advisories
Packages from OSV.dev and products from the vendors' CSAF advisories.
version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.
Packages
- ansible-automation-platform-installerRed Hat:ansible_automation_platform:2.5::el9all versions · fixed in 0:2.5-20.el9ap
- ansible-automation-platform-installerRed Hat:ansible_automation_platform:2.5::el8all versions · fixed in 0:2.5-20.el8ap
- ansible-builderRed Hat:ansible_automation_platform:2.5::el9all versions · fixed in 0:3.1.1-1.el9ap
- ansible-builderRed Hat:ansible_automation_platform:2.5::el8all versions · fixed in 0:3.1.1-1.el8ap
- ansible-builderRed Hat:ansible_automation_platform_inside:2.5::el9all versions · fixed in 0:3.1.1-1.el9ap
- ansible-builderRed Hat:ansible_automation_platform_inside:2.5::el8all versions · fixed in 0:3.1.1-1.el8ap
- ansible-builderRed Hat:ansible_automation_platform_developer:2.5::el9all versions · fixed in 0:3.1.1-1.el9ap
- ansible-builderRed Hat:ansible_automation_platform_developer:2.5::el8all versions · fixed in 0:3.1.1-1.el8ap
153 more package ranges on OSV.dev
Vendor advisories
django: Django SQL injection
ansible-automation-platform-25/aap-cloud-metrics-collector-rhel8 as a component of Red Hat Ansible Automation Platform 2 · ansible-automation-platform-25/ansible-dev-tools-rhel8 as a component of Red Hat Ansible Automation Platform 2 · ansible-automation-platform-26/ansible-dev-tools-rhel9 as a component of Red Hat Ansible Automation Platform 2 · +6 more
Red Hat Security Advisory: Red Hat Ansible Automation Platform 2.6 Container Release Update
Red Hat Security Advisory: Red Hat Ansible Automation Platform 2.6 Ansible DevSpaces Container Release Update
Red Hat Security Advisory: Red Hat Ansible Automation Platform 2.6 Container Release Update
Red Hat Security Advisory: Red Hat Ansible Automation Platform 2.5 Container Release Update
Red Hat Security Advisory: Red Hat Ansible Automation Platform 2.4 Container Release Update
2 more advisories
Fix
- Update Django to 5.2.8 · 5.1.14 · 4.2.26
- Vendor fix Red Hat Product Security RHSA-2026:1596 · 4 productsBefore applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://docs.redhat.com/en/documentation/red_hat_ansible_automation_platform/2.6#Upgrade
- Vendor fix Red Hat Product Security RHSA-2025:23196 · 4 productsBefore applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://docs.redhat.com/en/documentation/red_hat_ansible_automation_platform/2.6#Upgrading
- Vendor fix Red Hat Product Security RHSA-2025:23131 · 4 productsBefore applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://docs.redhat.com/en/documentation/red_hat_ansible_automation_platform/2.5#Upgrading
- Vendor fix Red Hat Product Security RHSA-2025:23130 · 4 productsBefore applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://docs.redhat.com/en/documentation/red_hat_ansible_automation_platform/2.4#Upgrading
- Vendor fix Red Hat Product Security RHSA-2025:23070 · 8 productsRed Hat Ansible Automation Platform
- Workaround from the vendor Red Hat Product Security RHSA-2026:1596 · 106 productsMitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.
Advisories and patches
- docs.djangoproject.comVendor Advisory
- www.djangoproject.comVendor Advisory
Detection
read 2026-11-01 01:02 UTC- Nuclei template
- none so far ProjectDiscovery
- Proof of concept
- PoC-in-GitHub10 repositories, unverifiedknown since 2026-11-01rockmelodies/django_sqli_target_CVE-2025-64459nunpa/CVE-2025-64459omarkurt/django-connector-CVE-2025-64459-testbed0xCyberstan/CVE-2025-64459-PocZ3YR0xX/CVE-2025-64459
- Metasploit modules
- none listed Metasploit Framework
Sources
- NVDCVE recordread 2026-10-23
- CISA-ADPSSVC decisionnone2025-11-06
- CISA-ADPCVSS 3.19.12025-11-05
- CNAweakness (CWE)CWE-89known since 2026-10-23
- FIRST EPSSEPSS score19.3 %read 2026-11-09
- PoC-in-GitHubproof of concept10known since 2026-11-01
- Exploit-DBdetectionread 2026-11-09
- OSVaffected packages—
- GitHub AdvisoriesadvisoryCRITICAL2025-11-05
Identifiers
- BIT-django-2025-64459same flawBitnami · Apache-2.0
- EUVD-2025-37763same flawENISA EUVD · LicenseRef-ENISA-legal-notice
- GHSA-frmv-pr5f-9mcrsame flawGitHub Advisory Database · CC-BY-4.0
- MINI-w5w4-2wvv-vrf5same flawMinimOS · LicenseRef-unstated
- PYSEC-2025-108same flawPyPA Advisory Database · CC-BY-4.0
- DLA-4425-1advisory covering several CVEsDebian · LicenseRef-unstated
- DSA-6117-1advisory covering several CVEsDebian · LicenseRef-unstated
- DSA-6136-1advisory covering several CVEsDebian · LicenseRef-unstated
- MGASA-2025-0292advisory covering several CVEsMageia · LicenseRef-unstated
- OESA-2025-2676advisory covering several CVEsopenEuler · LicenseRef-unstated
- OESA-2025-2677advisory covering several CVEsopenEuler · LicenseRef-unstated
- OESA-2025-2678advisory covering several CVEsopenEuler · LicenseRef-unstated
- OESA-2025-2679advisory covering several CVEsopenEuler · LicenseRef-unstated
- OESA-2025-2680advisory covering several CVEsopenEuler · LicenseRef-unstated
- OESA-2026-1206advisory covering several CVEsopenEuler · LicenseRef-unstated
- openSUSE-SU-2025:15708-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- openSUSE-SU-2025:15712-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- openSUSE-SU-2025:20153-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- openSUSE-SU-2026:10005-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- openSUSE-SU-2026:11270-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- RHSA-2025:23069advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2025:23070advisory covering several CVEsRed Hat · CC-BY-4.0
- SUSE-SU-2025:4100-1advisory covering several CVEsSUSE · LicenseRef-unstated
- USN-7859-1advisory covering several CVEsUbuntu
Technical details
- CVSS v3 Vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
- Published
- 2025-11-05
- Last Modified
- 2026-06-17
- NVD status
- Analyzed
- GitHub Advisory
- GHSA-frmv-pr5f-9mcr
Frequently asked questions
What is CVE-2025-64459?
Is CVE-2025-64459 actively exploited?
What is the CVSS score for CVE-2025-64459?
Running Django? Hear about its next vulnerability
Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».
No credit card required · No monthly cap on website lookups · 250 API requests/month
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
Sources for this record
- CVE Program · CVE Program Terms of Use
- ENISA EU Vulnerability Database · ENISA legal notice §1.2 (reproduction authorised, provided the source is acknowledged)
- Exploit-DB · Exploit-DB terms of service · terms restrict redistribution
- FIRST EPSS · EPSS terms of use (free use, attribution requested)
- GitHub Advisory Database · CC-BY-4.0 · GHSA-frmv-pr5f-9mcr
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OSV.dev · Per record, as its publisher states it: each row carries the label in sourceLicense when one is served
- PoC-in-GitHub · CC0-1.0
- Red Hat Product Security (CSAF and VEX) · CC-BY-4.0
- CISA Vulnrichment · CC0-1.0