Django up to 4.2.26/5.1.14/5.2.8 FilteredRelation QuerySet.annotate/QuerySet.alias sql injection

CVSS Meta Temp Score
CVSS is a standardized scoring system to determine possibilities of attacks. The Temp Score considers temporal factors like disclosure, exploit and countermeasures. The unique Meta Score calculates the average score of different sources to provide a normalized scoring system.
Current Exploit Price (≈)
Our analysts are monitoring exploit markets and are in contact with vulnerability brokers. The range indicates the observed or calculated exploit price to be seen on exploit markets. A good indicator to understand the monetary effort required for and the popularity of an attack.
CTI Interest Score
Our Cyber Threat Intelligence team is monitoring different web sites, mailing lists, exploit markets and social media networks. The CTI Interest Score identifies the interest of attackers and the security community for this specific vulnerability in real-time. A high score indicates an elevated risk to be targeted for this vulnerability.
6.0$0-$5k0.00

Summaryinfo

A vulnerability classified as critical was found in Django up to 4.2.26/5.1.14/5.2.8. Affected by this issue is the function QuerySet.annotate/QuerySet.alias of the component FilteredRelation. Such manipulation leads to sql injection. This vulnerability is uniquely identified as CVE-2025-13372. The attack can be launched remotely. No exploit exists. Upgrading the affected component is advised.

Detailsinfo

A vulnerability, which was classified as critical, has been found in Django up to 4.2.26/5.1.14/5.2.8. Affected by this issue is the function QuerySet.annotate/QuerySet.alias of the component FilteredRelation. The manipulation with an unknown input leads to a sql injection vulnerability. Using CWE to declare the problem leads to CWE-89. The product constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component. Impacted is confidentiality, integrity, and availability. CVE summarizes:

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.

The advisory is available at docs.djangoproject.com. This vulnerability is handled as CVE-2025-13372 since 11/18/2025. The exploitation is known to be easy. The attack may be launched remotely. Technical details are known, but there is no available exploit. The structure of the vulnerability defines a possible price range of USD $0-$5k at the moment (estimation calculated on 01/10/2026). This vulnerability is assigned to T1505 by the MITRE ATT&CK project.

The vulnerability scanner Nessus provides a plugin with the ID 277097 (Linux Distros Unpatched Vulnerability : CVE-2025-13372), which helps to determine the existence of the flaw in a target environment.

Upgrading to version 4.2.27, 5.1.15 or 5.2.9 eliminates this vulnerability.

The vulnerability is also documented in the databases at Tenable (277097), EUVD (EUVD-2025-200249) and CERT Bund (WID-SEC-2025-2717). If you want to get best quality of vulnerability data, you may have to visit VulDB.

Affected

  • Debian Linux
  • Red Hat Enterprise Linux
  • Fedora Linux
  • Ubuntu Linux
  • SUSE Linux
  • SUSE openSUSE
  • Open Source Django

Productinfo

Type

Name

Version

License

CPE 2.3info

CPE 2.2info

CVSSv4info

VulDB Vector: 🔒
VulDB Reliability: 🔍

CVSSv3info

VulDB Meta Base Score: 6.3
VulDB Meta Temp Score: 6.0

VulDB Base Score: 6.3
VulDB Temp Score: 6.0
VulDB Vector: 🔒
VulDB Reliability: 🔍

CVSSv2info

AVACAuCIA
💳💳💳💳💳💳
💳💳💳💳💳💳
💳💳💳💳💳💳
VectorComplexityAuthenticationConfidentialityIntegrityAvailability
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock

VulDB Base Score: 🔒
VulDB Temp Score: 🔒
VulDB Reliability: 🔍

Exploitinginfo

Class: Sql injection
CWE: CWE-89 / CWE-74 / CWE-707
CAPEC: 🔒
ATT&CK: 🔒

Physical: No
Local: No
Remote: Yes

Availability: 🔒
Status: Not defined

EPSS Score: 🔒
EPSS Percentile: 🔒

Price Prediction: 🔍
Current Price Estimation: 🔒

0-DayUnlockUnlockUnlockUnlock
TodayUnlockUnlockUnlockUnlock

Nessus ID: 277097
Nessus Name: Linux Distros Unpatched Vulnerability : CVE-2025-13372

Threat Intelligenceinfo

Interest: 🔍
Active Actors: 🔍
Active APT Groups: 🔍

Countermeasuresinfo

Recommended: Upgrade
Status: 🔍

0-Day Time: 🔒

Upgrade: Django 4.2.27/5.1.15/5.2.9

Timelineinfo

11/18/2025 CVE reserved
12/02/2025 +14 days Advisory disclosed
12/02/2025 +0 days VulDB entry created
01/10/2026 +39 days VulDB entry last update

Sourcesinfo

Advisory: docs.djangoproject.com
Status: Confirmed

CVE: CVE-2025-13372 (🔒)
GCVE (CVE): GCVE-0-2025-13372
GCVE (VulDB): GCVE-100-334082
EUVD: 🔒
CERT Bund: WID-SEC-2025-2717 - Django: Mehrere Schwachstellen

Entryinfo

Created: 12/02/2025 16:35
Updated: 01/10/2026 02:34
Changes: 12/02/2025 16:35 (56), 12/02/2025 17:25 (1), 12/04/2025 11:55 (2), 12/30/2025 12:14 (7), 01/10/2026 02:34 (1)
Complete: 🔍
Cache ID: 216::103

If you want to get best quality of vulnerability data, you may have to visit VulDB.

Discussion

No comments yet. Languages: en.

Please log in to comment.

Want to stay up to date on a daily basis?

Enable the mail alert feature now!