CVE-2025-64459 | Potential SQL injection via _connector keyword argument in QuerySet and Q objects

Exp

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.

Published: 2025-11-05 Last update: 2025-11-10 Assigner: 6a34fbeb-21d4-45e7-8e0a-62b95bc12c92 Source: 6a34fbeb-21d4-45e7-8e0a-62b95bc12c92

Conclusion & alert: CVE-2025-64459 is rated High Exploit Risk (68.2/100): CVSS Critical severity, with low exploitation likelihood (EPSS 0.26%). Core evidence: 2 public exploit reference(s) are indexed (Exploit-DB). Mandatory action: Public exploits are available—assess exposure, apply mitigations, and prioritize patching.

Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.

Public exploit references (Exploit-DB) for CVE-2025-64459

EDB-ID Source Kind Published Link
52456 exploit_db edb 2025-12-03 Exploit-DB ↗
nvd_ref exploit_tag Exploit-DB ↗

Exploit prediction scoring system (EPSS) score for CVE-2025-64459

EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).

# Date Old EPSS score New EPSS score Delta (New - Old)
1 2026-04-20 0.58% 0.26% -0.32%
2 2026-04-03 0.20% 0.58% +0.37%
3 2026-02-16 0.20%

Full EPSS history (5 records total)

Common vulnerability scoring system (CVSS) metrics for CVE-2025-64459

CVSS metrics for this CVE.

Base score Version Severity Vector Exploitability Impact Score source
9.1 3.1 CRITICAL
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N Click to expand
Attack vector (AV:N)
Could be attacked over the internet or any normal routed network—not just someone sitting at the machine.
Attack complexity (AC:L)
Once they can reach the bug, pulling it off is straightforward—no weird race conditions or rare setup.
Privileges required (PR:N)
No account or special rights needed—anonymous or random user is enough.
User interaction (UI:N)
Nobody has to click “OK” or open a trap file; it can work without a victim helping.
Scope (S:U)
Damage stays in the same “trust bubble” as the broken component—no big spill into unrelated systems.
Confidentiality (C:H)
Serious risk that confidential data gets exposed in a big way.
Integrity (I:H)
They could widely tamper with or forge data—trust in the data is badly hurt.
Availability (A:N)
Service keeps running; no real outage angle.
3.9 5.2 134c704f-9b21-4f2e-91b3-4a467353bcc0

Weakness enumeration for CVE-2025-64459

GitHub Security Advisory for CVE-2025-64459

GHSA-frmv-pr5f-9mcr · Severity: critical · Ecosystem: pip — Django vulnerable to SQL injection via _connector keyword argument in QuerySet and Q objects.

OS Trackers for CVE-2025-64459

vendor priority summary link
alpine CVE-2025-64459: 1 source package rows (py3-django); 2 state rows across 2 repos (3.22-community, edge-community); fixed 2, open 0. https://security.alpinelinux.org/vuln/CVE-2025-64459
debian not yet assigned CVE-2025-64459 not yet assigned priority: Debian including 1 source packages (python-django), 5 status rows across 5 suites (bookworm, bullseye, forky, sid, trixie): resolved 5. https://security-tracker.debian.org/tracker/CVE-2025-64459
redhat high https://access.redhat.com/security/cve/CVE-2025-64459
ubuntu medium CVE-2025-64459 medium priority: Ubuntu including 1 source packages (python-django), 9 status rows across 9 suites (bionic, focal, jammy, noble, plucky, questing, trusty, upstream, xenial): released 6, not-affected 3. https://ubuntu.com/security/CVE-2025-64459

Affected software / configurations for CVE-2025-64459

Vendor Product Version Raw CPE
djangoproject django >= 4.2, < 4.2.26 cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*
djangoproject django >= 5.1, < 5.1.14 cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*
djangoproject django >= 5.2, < 5.2.8 cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*

References for CVE-2025-64459

cvelogic Threat Intelligence