PT-2025-48697

CVE-2025-13372

·

Published

2025-12-02

·

Updated

2026-10-18

Description by

CVSS 2.0
5.0
Medium
MetricsAV:N/AC:L/Au:N/C:P/I:N/A:N
Name of the Vulnerable Software and Affected Versions Django versions 4.2 through 4.2.26 Django versions 5.1 through 5.1.14 Django versions 5.2 through 5.2.8 Django versions 5.0.x and earlier Django versions 4.1.x and earlier Django versions 3.2.x and earlier
Description An issue exists in Django where FilteredRelation is susceptible to SQL injection in column aliases. This occurs when a crafted dictionary is used with dictionary expansion, as the **kwargs passed to QuerySet.annotate() or QuerySet.alias() on PostgreSQL. Approximately 1.7 million potentially affected devices have been identified. The issue involves the use of the QuerySet.annotate() and QuerySet.alias() functions, which can be exploited through manipulated column aliases. The vulnerable component is FilteredRelation.
Recommendations Update to Django version 5.2.9 or later. Update to Django version 5.1.15 or later. Update to Django version 4.2.27 or later.
Exploitability
Exploit
Fix
Impacts
Vendors
Affected products
Related identifiers
GHSA-RQW2-GHQ9-44M7
BIT-DJANGO-2025-13372
ECHO-91C5-85B0-1E52
MGASA-2025-0320
OESA-2025-2847
OESA-2025-2848
OESA-2025-2849
OESA-2025-2850
OESA-2025-2851
OPENSUSE-SU-2025:15805-1
OPENSUSE-SU-2025:15806-1
OPENSUSE-SU-2025:20153-1
OPENSUSE-SU-2026:10005-1
OPENSUSE-SU-2026:11270-1
PYSEC-2025-104
SUSE-SU-2025:4384-1
USN-7903-1
Found an issue in the description? Have something to add? Feel free to write us 👾