CVE-2025-64459
Unknown Unknown - Not Provided

BaseFortify

Vulnerability report for CVE-2025-64459, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2025-11-05

Last updated on: 2025-11-10

Assigner: Django Software Foundation

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 Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2025-11-05
Last Modified
2025-11-10
Generated
2026-07-06
AI Q&A
2025-11-05
EPSS Evaluated
2026-07-05
NVD

Affected Vendors & Products

Showing 3 associated CPEs
Vendor Product Version / Range
djangoproject django From 4.2 (inc) to 4.2.26 (exc)
djangoproject django From 5.1 (inc) to 5.1.14 (exc)
djangoproject django From 5.2 (inc) to 5.2.8 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-89 The product constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component. Without sufficient removal or quoting of SQL syntax in user-controllable inputs, the generated SQL query can cause those inputs to be interpreted as SQL instead of ordinary user data.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability is an SQL injection issue in Django versions before 5.1.14, 4.2.26, and 5.2.8. Specifically, the methods QuerySet.filter(), QuerySet.exclude(), QuerySet.get(), and the class Q() can be exploited when a specially crafted dictionary with dictionary expansion is used as the _connector argument, allowing an attacker to inject malicious SQL code.

Impact Analysis

This vulnerability can allow an attacker to perform SQL injection attacks, potentially leading to unauthorized data access, data modification, or other malicious database operations, compromising the security and integrity of the affected application.

Mitigation Strategies

To mitigate this vulnerability, upgrade Django to version 5.1.14 or later, 4.2.26 or later, or 5.2.8 or later. Avoid using the vulnerable methods QuerySet.filter(), QuerySet.exclude(), QuerySet.get(), and the class Q() with a crafted dictionary as the _connector argument until the upgrade is applied.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2025-64459. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart