SQL Injection Flaw in Django QuerySet Methods Affects Red Hat Products
Vulnerability Disclosure · 2 sources · Updated 3mo ago · First seen Dec 10, 2025

A high-severity SQL injection vulnerability tracked as CVE-2025-64459 was disclosed in the Django web framework, affecting QuerySet.filter(), QuerySet.exclude(), QuerySet.get(), and the Q() class when a suitably crafted dictionary is expanded into the _connector argument. The issue received a CVSS 9.1 score in the CVE record, while Red Hat rated it Important with a CVSS v3 8.3, citing vendor-specific scoring differences and noting that exploitation impact is limited to the effective user scope of the running process.
Red Hat reported that no acceptable mitigation is currently available and identified multiple affected products and components, including packages in Red Hat Ansible Automation Platform 2.5 for RHEL 8. The company said fixes were released for impacted offerings, including remediation delivered through advisory RHSA-2025:23069, underscoring the need for organizations running Django-based applications or affected Red Hat packages to prioritize patching.
Why it matters
Impact assessment
CVE-2025-64459 is a high-severity SQL injection flaw in Django that affects applications and products using vulnerable QuerySet methods and the Q() class with attacker-controlled dictionary expansion into the _connector argument. Organizations running Django-based web applications and Red Hat products that embed affected Django components, including Red Hat Ansible Automation Platform 2.5 for RHEL 8 packages, are exposed.
The business impact includes unauthorized data access, data modification, privilege escalation, identity assumption, and potential protection bypass; Red Hat also notes SQL injection can enable code or command execution in some scenarios. Exposure is potentially broad across internet-facing Django applications, but the practical blast radius on Red Hat products is constrained to the effective user scope of the running process.
Affected entities
- Django web framework
- Red Hat products containing affected Django components
- Red Hat Ansible Automation Platform 2.5 for RHEL 8
- Components explicitly listed by Red Hat as fixed:
- ansible-automation-platform-installer
- ansible-builder
- ansible-creator
- ansible-dev-environment
- ansible-dev-tools
- ansible-lint
- ansible-navigator
- ansible-runner
- ansible-sign
- automation-controller
Severity and scope
- CVE record score: CVSS v3.1 9.1
- Red Hat score: CVSS v3 8.3, rated Important
- Red Hat CVSS vector:
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L - Weakness:
CWE-89Improper Neutralization of Special Elements used in an SQL Command - No exploitation in the wild is stated in the provided references
Business implications
- Risk of unauthorized reading of application data
- Risk of unauthorized modification of application data
- Risk of privilege gain or identity assumption
- Risk of bypassing protection mechanisms
- Possible operational disruption if exploited against critical automation or web application workflows


