Skip to main content
Mallory
← Back to News
internet-facing-service-vulnerabilitywidely-deployed-product-advisoryopen-source-dependency-vulnerability

SQL Injection Flaw in Django QuerySet Methods Affects Red Hat Products

Vulnerability Disclosure · 2 sources · Updated 3mo ago · First seen Dec 10, 2025

SQL Injection Flaw in Django QuerySet Methods Affects Red Hat Products

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-89 Improper 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
Do you run this?See affected versions and whether adversaries are exploiting it.
Check your exposure
Event timeline

How this story unfolded

Events from the most recent confirmed update back to the earliest known activity.

4 events · Nov 5, 2025 – Dec 10, 2025
  1. Reported Dec 10, 20251y ago

    Red Hat updates its CVE-2025-64459 record

    Red Hat last modified its CVE-2025-64459 entry on March 18, 2026, reflecting an update to the vendor's vulnerability record for the Django SQL injection issue.

    CVE-2025-64459 - Red Hat Customer Portal
  2. Dec 10, 20251y ago

    Red Hat releases RHSA-2025:23069 fixes for affected products

    On December 10, 2025, Red Hat issued RHSA-2025:23069 to fix CVE-2025-64459 in multiple Red Hat Ansible Automation Platform 2.5 for RHEL 8 components, including ansible-builder, ansible-runner, ansible-navigator, and automation-controller.

    CVE-2025-64459 - Red Hat Customer Portal
  3. Nov 5, 20251y ago

    Red Hat publishes CVE-2025-64459 as public

    Red Hat marked its CVE-2025-64459 entry public on November 5, 2025, describing the Django flaw as an Important SQL injection issue and noting no acceptable mitigation was available at that time.

    CVE-2025-64459 - Red Hat Customer Portal
  4. Nov 5, 20251y ago

    Django discloses CVE-2025-64459 security issue

    Django security release information dated November 5, 2025 identified CVE-2025-64459 as a SQL injection vulnerability affecting QuerySet.filter(), QuerySet.exclude(), QuerySet.get(), and the Q() class when a crafted dictionary is expanded into the _connector argument.

    CVE-2025-64459 - Red Hat Customer Portal
Linked entities

Related entities

Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.

Open in app →

Affected products

1 linked
Django

Organizations

1 linked
Red Hat
Do you run this?See whether adversaries are exploiting this yet, and where the affected versions run in your environment.
Check Your Exposure
Source coverage

Sources

2 references tracked. Mallory keeps watching after this page renders.

Mallory platform

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which threat actors are using it right now, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.