ADVISORIES

Vulnerability

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.

24 advisories report this vulnerability, across 8 ecosystems.

Advisories

  • ALPINE-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…

    CVE-2025-64459 Alpine Updated 3 November 2026
  • ALPINE-EDGE-CVE-2025-64459
    CVE-2025-64459 Alpine Updated 18 November 2026
  • DEBIAN-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…

    CVE-2025-64459 Debian Updated 1 September 2026
  • DLA-4425-1

    python-django - security update

    CVE-2025-64459CVE-2025-64460 Debian Updated 20 November 2026
  • DSA-6117-1

    python-django - security update

    CVE-2025-13372CVE-2025-57833CVE-2025-59681CVE-2025-59682 Debian Updated 20 November 2026
  • DSA-6136-1

    python-django - security update

    CVE-2019-14232CVE-2023-41164CVE-2023-43665CVE-2024-24680 Debian Updated 20 November 2026
  • GHSA-frmv-pr5f-9mcr

    Django vulnerable to SQL injection via _connector keyword argument in QuerySet and Q objects.

    Critical CVE-2025-64459 PyPI Updated 5 June 2026
  • OESA-2025-2676

    python-django security update

    Critical CVE-2025-64458CVE-2025-64459 openEuler Updated 18 August 2026
  • OESA-2025-2677

    python-django security update

    Critical CVE-2025-64458CVE-2025-64459 openEuler Updated 18 August 2026
  • OESA-2025-2678

    python-django security update

    Critical CVE-2025-64458CVE-2025-64459 openEuler Updated 18 August 2026
  • OESA-2025-2679

    python-django security update

    Critical CVE-2025-64458CVE-2025-64459 openEuler Updated 18 August 2026
  • OESA-2025-2680

    python-django security update

    Critical CVE-2025-64458CVE-2025-64459 openEuler Updated 18 August 2026
  • OESA-2026-1206

    python-django security update

    Critical CVE-2025-64459 openEuler Updated 18 August 2026
  • PYSEC-2025-108

    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…

    CVE-2025-64459 PyPI Updated 10 June 2026
  • RHSA-2025:23069

    Red Hat Security Advisory: Red Hat Ansible Automation Platform 2.5 Product Security and Bug Fix Update

    CVE-2025-58754CVE-2025-59530CVE-2025-64459CVE-2025-9907 Red Hat Updated 13 November 2026
  • RHSA-2025:23070

    Red Hat Security Advisory: Red Hat Ansible Automation Platform 2.6 Product Security and Bug Fix Update

    CVE-2025-64459 Red Hat Updated 13 November 2026
  • SUSE-SU-2025:4100-1

    Security update for python-Django

    CVE-2025-62769CVE-2025-64459 SUSEopenSUSE Updated 23 March 2026
  • UBUNTU-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…

    CVE-2025-64459 Ubuntu Updated 4 February 2026
  • USN-7859-1

    python-django vulnerabilities

    CVE-2025-64459 Ubuntu Updated 10 February 2026
  • openSUSE-SU-2025:15708-1

    python311-Django4-4.2.26-1.1 on GA media

    CVE-2025-64459 openSUSE Updated 23 March 2026
  • openSUSE-SU-2025:15712-1

    python311-Django-5.2.8-1.1 on GA media

    CVE-2025-64459 openSUSE Updated 23 March 2026
  • openSUSE-SU-2025:20153-1

    Security update for python-Django

    CVE-2025-13372CVE-2025-64459CVE-2025-64460 openSUSE Updated 23 March 2026
  • openSUSE-SU-2026:10005-1

    python312-Django6-6.0-1.1 on GA media

    CVE-2015-3982CVE-2015-5145CVE-2015-5963CVE-2016-7401 openSUSE Updated 23 March 2026
  • openSUSE-SU-2026:11270-1

    python313-Django5-5.2.16-1.1 on GA media

    CVE-2015-3982CVE-2015-5145CVE-2015-5963CVE-2016-7401 openSUSE Updated 15 July 2026

References