Vulnerability
CVE-2025-13372
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.
24 advisories report this vulnerability, across 8 ecosystems.
Advisories
-
ALPINE-CVE-2025-13372
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…
- ALPINE-EDGE-CVE-2025-13372
- CGA-39c5-q9x9-vjq7
- CGA-7hxg-cgv9-397w
- CGA-cx53-m3v5-7vvc
- CGA-pp9c-m5q7-3pcq
-
DEBIAN-CVE-2025-13372
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…
-
DSA-6117-1
python-django - security update
-
DSA-6136-1
python-django - security update
-
GHSA-rqw2-ghq9-44m7
Django is vulnerable to SQL injection in column aliases
-
OESA-2025-2847
python-django security update
-
OESA-2025-2848
python-django security update
-
OESA-2025-2849
python-django security update
-
OESA-2025-2850
python-django security update
-
OESA-2025-2851
python-django security update
-
PYSEC-2025-104
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…
-
SUSE-SU-2025:4384-1
Security update for python-Django
-
UBUNTU-CVE-2025-13372
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…
-
USN-7903-1
python-django vulnerabilities
-
openSUSE-SU-2025:15805-1
python311-Django-5.2.9-1.1 on GA media
-
openSUSE-SU-2025:15806-1
python311-Django4-4.2.27-1.1 on GA media
-
openSUSE-SU-2025:20153-1
Security update for python-Django
-
openSUSE-SU-2026:10005-1
python312-Django6-6.0-1.1 on GA media
-
openSUSE-SU-2026:11270-1
python313-Django5-5.2.16-1.1 on GA media