4.3

CVE-2025-13372: djangoproject django SQL Injection

CVSS: 4.3v3.1MediumAnalyzed
AliasesGHSA-rqw2-ghq9-44m7BIT-django-2025-13372PYSEC-2025-104
Published 02-12-2025Last modified 02-12-2025

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.

Overall risk
17/100
0100
Low · default modelHow is this calculated?
CVSS score
4.3/10
010
Medium · v3.1 (CVE.org)
EPSS score
0.92%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 10 · Related 9

Timeline

  1. 02-12-2025
    PublishedVulnerability first disclosed.
  2. 02-12-2025
    Last 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

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

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

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected 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 links
Show all 21 references