5.4
MEDIUM CVSS 3.1
CVE-2026-1312
Potential SQL injection via QuerySet.order_by and FilteredRelation
Description

An issue was discovered in 6.0 before 6.0.2, 5.2 before 5.2.11, and 4.2 before 4.2.28. `.QuerySet.order_by()` is subject to SQL injection in column aliases containing periods when the same alias is, using a suitably crafted dictionary, with dictionary expansion, used in `FilteredRelation`. 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.

INFO

Published Date :

Feb. 3, 2026, 3:16 p.m.

Last Modified :

Feb. 4, 2026, 5:35 p.m.

Remotely Exploit :

Yes !

Source :

6a34fbeb-21d4-45e7-8e0a-62b95bc12c92
Affected Products

The following products are affected by CVE-2026-1312 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Djangoproject django
CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 3.1 MEDIUM 134c704f-9b21-4f2e-91b3-4a467353bcc0
Solution
Update Django to patched versions to fix SQL injection vulnerability in order_by.
  • Update Django to version 6.0.2 or later.
  • Update Django to version 5.2.11 or later.
  • Update Django to version 4.2.28 or later.
  • Update unsupported Django versions.
References to Advisories, Solutions, and Tools

Here, you will find a curated list of external links that provide in-depth information, practical solutions, and valuable tools related to CVE-2026-1312.

URL Resource
https://docs.djangoproject.com/en/dev/releases/security/ Vendor Advisory Patch
https://groups.google.com/g/django-announce Release Notes
https://www.djangoproject.com/weblog/2026/feb/03/security-releases/ Patch Vendor Advisory
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2026-1312 is associated with the following CWEs:

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2026-1312 vulnerability anywhere in the article.

  • CybersecurityNews
Critical Django Vulnerabilities Enables DoS and SQL Injection Attacks

Django Vulnerabilities The development team has issued urgent security updates to fix six critical vulnerabilities affecting multiple versions of the popular Python web framework.The flaws, which incl ... Read more

Published Date: Feb 04, 2026 (1 day, 6 hours ago)
  • Daily CyberSecurity
Urgent Django Update: Patches 3 Critical SQL Injections & DoS Risks

The maintainers of the popular Python web framework Django have issued an urgent security release to squash a cluster of high-severity vulnerabilities that could allow attackers to manipulate database ... Read more

Published Date: Feb 04, 2026 (1 day, 12 hours ago)

The following table lists the changes that have been made to the CVE-2026-1312 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • Initial Analysis by [email protected]

    Feb. 04, 2026

    Action Type Old Value New Value
    Added CPE Configuration OR *cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:* versions from (including) 4.2 up to (excluding) 4.2.28 *cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:* versions from (including) 5.2 up to (excluding) 5.2.11 *cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:* versions from (including) 6.0 up to (excluding) 6.0.2
    Added Reference Type Django Software Foundation: https://docs.djangoproject.com/en/dev/releases/security/ Types: Patch, Vendor Advisory
    Added Reference Type Django Software Foundation: https://groups.google.com/g/django-announce Types: Release Notes
    Added Reference Type Django Software Foundation: https://www.djangoproject.com/weblog/2026/feb/03/security-releases/ Types: Patch, Vendor Advisory
  • CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0

    Feb. 03, 2026

    Action Type Old Value New Value
    Added CVSS V3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
  • New CVE Received by 6a34fbeb-21d4-45e7-8e0a-62b95bc12c92

    Feb. 03, 2026

    Action Type Old Value New Value
    Added Description An issue was discovered in 6.0 before 6.0.2, 5.2 before 5.2.11, and 4.2 before 4.2.28. `.QuerySet.order_by()` is subject to SQL injection in column aliases containing periods when the same alias is, using a suitably crafted dictionary, with dictionary expansion, used in `FilteredRelation`. 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.
    Added CWE CWE-89
    Added Reference https://docs.djangoproject.com/en/dev/releases/security/
    Added Reference https://groups.google.com/g/django-announce
    Added Reference https://www.djangoproject.com/weblog/2026/feb/03/security-releases/
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
Vulnerability Scoring Details
Base CVSS Score: 5.4
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality Impact
Integrity Impact
Availability Impact