Mend.io Vulnerability Database
The largest open source vulnerability database
What is a Vulnerability ID?
New vulnerability? Tell us about it!
CVE-2025-13372
December 02, 2025
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.
Affected Packages
https://github.com/django/django.git (GITHUB):
Affected version(s) >=4.2 <4.2.27
Fix Suggestion:
Update to version 4.2.27
https://github.com/django/django.git (GITHUB):
Affected version(s) >=5.1 <5.1.15
Fix Suggestion:
Update to version 5.1.15
https://github.com/django/django.git (GITHUB):
Affected version(s) >=5.2 <5.2.9
Fix Suggestion:
Update to version 5.2.9
Django (PYTHON):
Affected version(s) >=5.1 <5.1.15
Fix Suggestion:
Update to version 5.1.15
Django (PYTHON):
Affected version(s) >=4.2 <4.2.27
Fix Suggestion:
Update to version 4.2.27
Django (PYTHON):
Affected version(s) >=5.2 <5.2.9
Fix Suggestion:
Update to version 5.2.9
Do you need more information?
Contact Us
CVSS v4
Base Score:
5.3
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
PASSIVE
Vulnerable System Confidentiality
LOW
Vulnerable System Integrity
NONE
Vulnerable System Availability
NONE
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
4.3
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
REQUIRED
Scope
UNCHANGED
Confidentiality
LOW
Integrity
NONE
Availability
NONE
Weakness Type (CWE)
Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
EPSS
Base Score:
0.01