Skip to main content
Public proof of conceptFix available

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?

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
  1. 2025-11-0515:15CVE publishedNVD
  2. 2025-12-03Exploit-DB entryExploit-DB

Versions per branch

NVD · OSV
Django
BranchAffectedFixed in
5.2≥ 5.2, < 5.2.85.2.8
5.2≥ 5.2.0, < 5.2.85.2.8
5.2≥ 5.2a1, < 5.2.85.2.8
5.1≥ 5.1, < 5.1.145.1.14
5.1≥ 5.1.0, < 5.1.145.1.14
5.x≥ 5.0a1, < 5.1.145.1.14
4.2≥ 4.2, < 4.2.264.2.26
4.2≥ 4.2.0, < 4.2.264.2.26
4.2< 4.2.264.2.26

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

  • CVE-2025-64459 Red Hat Product Security272 products fixed · 9 known affected

    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

  • RHSA-2026:1596 Red Hat Product Security4 products fixed

    Red Hat Security Advisory: Red Hat Ansible Automation Platform 2.6 Container Release Update

  • RHSA-2025:23196 Red Hat Product Security4 products fixed

    Red Hat Security Advisory: Red Hat Ansible Automation Platform 2.6 Ansible DevSpaces Container Release Update

  • RHSA-2025:23133 Red Hat Product Security16 products fixed

    Red Hat Security Advisory: Red Hat Ansible Automation Platform 2.6 Container Release Update

  • RHSA-2025:23131 Red Hat Product Security4 products fixed

    Red Hat Security Advisory: Red Hat Ansible Automation Platform 2.5 Container Release Update

  • RHSA-2025:23130 Red Hat Product Security4 products fixed

    Red Hat Security Advisory: Red Hat Ansible Automation Platform 2.4 Container Release Update

2 more advisories

Full record on NVD

Fix

  1. Update Django to 5.2.8 · 5.1.14 · 4.2.26
  2. 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
  3. 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
  4. 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
  5. 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
  6. Vendor fix Red Hat Product Security RHSA-2025:23070 · 8 productsRed Hat Ansible Automation Platform
  7. 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

Detection

read 2026-11-01 01:02 UTC
Nuclei template
none so far
ProjectDiscovery
Exploit-DB
EDB-52456
Exploit-DB
Metasploit modules
none listed
Metasploit Framework

Sources

Identifiers

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?

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.

Is CVE-2025-64459 actively exploited?

Active exploitation of CVE-2025-64459 has not been confirmed. Its EPSS score was 19.3% on 2026-11-08, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2025-64459?

CVE-2025-64459 has a CVSS v3 base score of 9.1 (CRITICAL severity), with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N.

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

Sources for this record