CVE-2025-59681: djangoproject django
Vulnerability summary
CVE-2025-59681 is a critical (CVSS 9.8) vulnerability in djangoproject django. EPSS estimates a 0.66% chance of exploitation in the next 30 days, higher than 53% of scored vulnerabilities.
Not severe (CVSS 7.1, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 11 · Related 9Timeline
- 01-10-2025PublishedVulnerability first disclosed.
- 04-11-2025Last modifiedVulnerability information updated.
Description
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).
CVSS metrics
7 scores · 7 sources · 1 version- CVE.orgCNA7.1HighCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:NDiffers
- OSV · PypiEcosystem advisory · calculated9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- OSV · UbuntuEcosystem advisory · calculated9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- OSV · ChainguardEcosystem advisory · calculated7.1HighCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:NDiffers
- OSV · AlpineEcosystem advisory · calculated9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS trend
Probability
0.66%
Chance of exploitation in the next 30 days
Percentile
53%
Versus all other CVEs
30-day change
Increase +0.02 pp
From 0.64% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.
Alpine1 product
- py3-django< 4.2.25-r0
Chainguard1 product
- awx< 24.6.1-r17
Debian1 product
- python-django< 3:3.2.25-0+deb12u1 | < 3:4.2.27-0+deb13u1 | < 3:4.2.25-1
Djangoproject1 product
- django≥ 4.2, < 4.2.25 | ≥ 5.1, < 5.1.13 | ≥ 5.2, < 5.2.7
PyPI1 product
- django≥ 4.2, < 4.2.25 | ≥ 5.1, < 5.1.13 | ≥ 5.2, < 5.2.7
Ubuntu1 product
- python-django< 1.6.11-0ubuntu1.3+esm8 | < 1.8.7-1ubuntu5.15+esm9 | < 1:1.11.11-1ubuntu1.21+esm12 | < 2:2.2.12-1ubuntu0.29+esm4 | < 2:3.2.12-2ubuntu1.22 | < 3:4.2.11-1ubuntu1.11 | < 3:5.2.4-1ubuntu2
6 vendors · 6 products
References
18 links- www.djangoproject.com/weblog/2025/oct/01/security-releases/AdvisoryARTICLERelease NotesVendor Advisory
- github.com/django/djangoPACKAGE