MEDIUM · CVSS 4.3 Published: 2025-12-02
CVE-2025-13372 — Technical Security Advisory & CVSS Profile
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.
Technical Metadata
| Identifier | CVE-2025-13372 |
|---|---|
| Base Severity / Score | MEDIUM (4.3 / 10.0) |
| CVSS Vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N |
| Weakness Classification | CWE-89 |
| Archive Categories | MEDIUM Advisories · 2025 Index |
Operational Mitigation Guidance
Schedule vendor updates during routine patching windows and verify whether affected code paths are reachable in your deployment configuration. For architectural isolation principles, review per-process namespace isolation.
Upstream References
- https://docs.djangoproject.com/en/dev/releases/security/
- https://groups.google.com/g/django-announce
- https://www.djangoproject.com/weblog/2025/dec/02/security-releases/
Related Security Advisories
CVE-2025-1336 MEDIUM 4.3
CVE-2025-13377 CRITICAL 9.6
CVE-2025-13359 MEDIUM 6.5
CVE-2025-1339 MEDIUM 6.3
CVE-2025-13394 MEDIUM 5.4
CVE-2025-13396 MEDIUM 6.3
CVE-2025-13406 MEDIUM 0