CVE-2025-13372: djangoproject django SQL Injection
Vulnerability summary
CVE-2025-13372 is a medium (CVSS 4.3) SQL Injection vulnerability in djangoproject django. EPSS estimates a 0.92% chance of exploitation in the next 30 days, higher than 59.7% of scored vulnerabilities.
Advisory lineage
Upstream 0 · Downstream 10 · Related 9Timeline
- 02-12-2025PublishedVulnerability first disclosed.
- 02-12-2025Last modifiedVulnerability information updated.
Description
An issue was discovered in 5.2 before 5.2.9, 5.1 before 5.1.15, and 4.2 before 4.2.27. `FilteredRelation` is subject to SQL injection in column aliases, using a suitably crafted dictionary, with dictionary expansion, as the `**kwargs` passed to `QuerySet.annotate()` or `QuerySet.alias()` on PostgreSQL. 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 Stackered for reporting this issue.
CVSS metrics
6 scores · 6 sources · 1 version- OSV · PypiEcosystem advisory · calculated4.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N
- OSV · UbuntuEcosystem advisory · calculated4.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N
- OSV · DebianEcosystem advisory · calculated4.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N
- OSV · ChainguardEcosystem advisory · calculated4.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N
- NVDNIST4.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N
EPSS trend
Probability
0.92%
Chance of exploitation in the next 30 days
Percentile
60%
Versus all other CVEs
30-day change
0.00 pp
From 0.92% on 19-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Chainguard3 products
- authentik< 2025.10.2-r2
- authentik-go-server< 2025.10.2-r2
- awx< 24.6.1-r20
Debian1 product
- python-django< 3:3.2.25-0+deb12u1 | < 3:4.2.27-0+deb13u1 | < 3:4.2.27-1
Djangoproject1 product
- django≥ 4.2, < 4.2.27 | ≥ 5.1, < 5.1.15 | ≥ 5.2, < 5.2.9
PyPI1 product
- django≥ 5.2a1, < 5.2.9 | ≥ 5.1a1, < 5.1.15 | ≥ 4.2a1, < 4.2.27 | ≥ 5.2, < 5.2.9
Ubuntu1 product
- python-django< 2:2.2.12-1ubuntu0.29+esm6 | < 2:3.2.12-2ubuntu1.24 | < 3:4.2.11-1ubuntu1.13 | < 3:5.2.4-1ubuntu2.2 | < 3:5.2.9-0ubuntu1
5 vendors · 7 products
References
21 linksShow all 21 references
- github.com/django/djangoPACKAGE
- pypi.org/project/Django/PACKAGE