CVE-2025-13372: Potential SQL injection in FilteredRelation column aliases on PostgreSQL
Vulnerability summary
CVE-2025-13372 is a medium (CVSS 4.3) vulnerability in djangoproject django. EPSS estimates a 0.93% chance of exploitation in the next 30 days, higher than 61.6% of scored vulnerabilities.
Not severe (CVSS 4.3, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?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
7 scores · 7 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
- OSV · AlpineEcosystem advisory · calculated4.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N
EPSS trend
Probability
0.93%
Chance of exploitation in the next 30 days
Percentile
62%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.93% 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, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.
Chainguard3 products
- authentik< 2025.10.2-r2
- authentik-go-server< 2025.10.2-r2
- awx< 24.6.1-r20
Alpine1 product
- py3-django< 4.2.27-r0
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
6 vendors · 8 products
References
22 linksShow all 22 references
- github.com/django/djangoPACKAGE
- pypi.org/project/Django/PACKAGE