9.1

CVE-2025-64459: djangoproject django SQL Injection

CVSS: 9.1v3.1CriticalAnalyzed
AliasesMGASA-2025-0292GHSA-frmv-pr5f-9mcrBIT-django-2025-64459
Published 05-11-2025Last modified 26-02-2026

Vulnerability summary

CVE-2025-64459 is a critical (CVSS 9.1) SQL Injection vulnerability in djangoproject django. EPSS estimates a 19.26% chance of exploitation in the next 30 days, higher than 97.3% of scored vulnerabilities. 2 public exploits are recorded.

Overall risk
70/100
0100
High · default modelHow is this calculated?
CVSS score
9.1/10
010
Critical · v3.1 (CVE.org)
EPSS score
19.26%
0%100%
Medium · -0.14 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits2reference, exploit-database

Advisory lineage

Upstream 0 · Downstream 8 · Related 4

Timeline

  1. 05-11-2025
    PublishedVulnerability first disclosed.
  2. 26-02-2026
    Last modifiedVulnerability information updated.

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 metrics

6 scores · 6 sources · 1 version

EPSS trend

Probability

19.26%

Chance of exploitation in the next 30 days

Percentile

97%

Versus all other CVEs

30-day change

-0.14 pp

From 19.40% on 19-09-2026

19-09-202619-10-2026
EPSS score
19.26%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

2 found
  • referenceUnverified

    Exploit Reference (shivasurya.me)

    Maturity: unknown

  • exploit-databasemultipleUnverified

    Django 5.1.13 - SQL Injection

    Maturity: poc

Weaknesses

CWE · root cause

Affected systems

Opensuse2 products
  • python-Django4&distro=openSUSE Tumbleweed< 4.2.26-1.1
  • python-Django&distro=openSUSE Tumbleweed< 5.2.8-1.1
Redhat2 products
  • automation-controller-venv-tower< 0:4.7.6-1.el9ap
  • python3.11-django< 0:4.2.26-2.el9ap
Debian1 product
  • python-django< 3:3.2.25-0+deb12u1 | < 3:4.2.27-0+deb13u1 | < 3:4.2.26-1
Djangoproject1 product
  • django≥ 4.2, < 4.2.26 | ≥ 5.1, < 5.1.14 | ≥ 5.2, < 5.2.8
Mageia1 product
  • python-django< 4.1.13-1.8.mga9
PyPI1 product
  • django≥ 5.2a1, < 5.2.8 | ≥ 5.0a1, < 5.1.14 | < 4.2.26 | ≥ 5.2, < 5.2.8
Ubuntu1 product
  • python-django< 2:2.2.12-1ubuntu0.29+esm5 | < 2:3.2.12-2ubuntu1.23 | < 3:4.2.11-1ubuntu1.12 | < 3:5.2.4-1ubuntu2.1

7 vendors · 9 products

References

29 links
Show all 29 references