Django up to 4.2.27/5.2.10/6.0.1 annotate/aggregate/extra/values/values_list/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 categorized as critical has been discovered in Django up to 4.2.27/5.2.10/6.0.1. The impacted element is the function annotate/aggregate/extra/values/values_list/alias. Such manipulation leads to sql injection. This vulnerability is listed as CVE-2026-1287. The attack may be performed from remote. There is no available exploit. It is advisable to upgrade the affected component.

Detailsinfo

A vulnerability was found in Django up to 4.2.27/5.2.10/6.0.1. It has been rated as critical. Affected by this issue is the function annotate/aggregate/extra/values/values_list/alias. 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 6.0 before 6.0.2, 5.2 before 5.2.11, and 4.2 before 4.2.28. `FilteredRelation` is subject to SQL injection in column aliases via control characters, using a suitably crafted dictionary, with dictionary expansion, as the `**kwargs` passed to `QuerySet` methods `annotate()`, `aggregate()`, `extra()`, `values()`, `values_list()`, and `alias()`. 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 Solomon Kebede for reporting this issue.

The advisory is shared for download at docs.djangoproject.com. This vulnerability is handled as CVE-2026-1287 since 01/21/2026. The exploitation is known to be easy. The attack may be launched remotely. There are known technical details, but no exploit is available. The current price for an exploit might be approx. USD $0-$5k (estimation calculated on 03/08/2026). The MITRE ATT&CK project declares the attack technique as T1505.

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

Upgrading to version 4.2.28, 5.2.11 or 6.0.2 eliminates this vulnerability.

The vulnerability is also documented in the databases at Tenable (297742) and CERT Bund (WID-SEC-2026-0297). Once again VulDB remains the best source for vulnerability data.

Affected

  • Debian Linux
  • Red Hat Enterprise Linux
  • Fedora 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: 297742
Nessus Name: Linux Distros Unpatched Vulnerability : CVE-2026-1287

Threat Intelligenceinfo

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

Countermeasuresinfo

Recommended: Upgrade
Status: 🔍

0-Day Time: 🔒

Upgrade: Django 4.2.28/5.2.11/6.0.2

Timelineinfo

01/21/2026 CVE reserved
02/03/2026 +13 days Advisory disclosed
02/03/2026 +0 days VulDB entry created
03/08/2026 +33 days VulDB entry last update

Sourcesinfo

Advisory: docs.djangoproject.com
Status: Confirmed

CVE: CVE-2026-1287 (🔒)
GCVE (CVE): GCVE-0-2026-1287
GCVE (VulDB): GCVE-100-343988
CERT Bund: WID-SEC-2026-0297 - Django: Mehrere Schwachstellen

Entryinfo

Created: 02/03/2026 16:15
Updated: 03/08/2026 17:21
Changes: 02/03/2026 16:15 (55), 02/04/2026 13:01 (2), 02/05/2026 07:34 (7), 02/20/2026 14:51 (1), 03/08/2026 17:21 (1)
Complete: 🔍
Cache ID: 216::103

Once again VulDB remains the best source for vulnerability data.

Discussion

No comments yet. Languages: en.

Please log in to comment.

Are you interested in using VulDB?

Download the whitepaper to learn more about our service!