CVE-2025-59681CWE-89sql-injection

CVE-2025-59681

High · published October 1, 2025

CVSS v3.1
7.1
EPSS
1%
Percentile
50.0
In the wild
Unconfirmed
What it is

An issue was discovered in Django 4.2 before 4.2.25, 5.1 before 5.1.13, and 5.2 before 5.2.7. QuerySet.annotate(), QuerySet.alias(), QuerySet.aggregate(), and QuerySet.extra() are subject to SQL injection in column aliases, when using a suitably crafted dictionary, with dictionary expansion, as the **kwargs passed to these methods (on MySQL and MariaDB).

The record
Technical detail
CVSS v3.1
7.1 · HIGH
Vector
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:N
CVSS v4.0
Not supplied
EPSS
0.00639 · 50.0th percentile
Weakness
CWE-89 · Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
Published
2025-10-01T23:15Z
Affected products (3)
ProductVersionsFixed in
djangoproject/django≥ 4.2, < 4.2.254.2.25
djangoproject/django≥ 5.1, < 5.1.135.1.13
djangoproject/django≥ 5.2, < 5.2.75.2.7
References (4)
EPSS history
Timeline
  • 01 OCT 00:00Z
    An issue was discovered in Django 4.2 before 4.2.25, 5.1 before 5.1.13, and 5.2 before 5.2.7
    cvelistv5