CVE-2026-1312SQL Injection in Django

CWE-89SQL Injection9 documents8 sources
Severity
5.4MEDIUMNVD
EPSS
0.0%
top 98.57%
CISA KEV
Not in KEV
Exploit
No known exploits
Affected products
Timeline
PublishedFeb 3

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.

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:NExploitability: 2.8 | Impact: 2.5

Affected Packages3 packages

CVEListV5djangoproject/django6.06.0.2+2
NVDdjangoproject/django4.24.2.28+2
PyPIdjangoproject/django6.0a16.0.2+2

Patches

🔴Vulnerability Details

4
OSV
CVE-2026-1312: An issue was discovered in 62026-02-03
OSV
Django has an SQL Injection issue2026-02-03
GHSA
Django has an SQL Injection issue2026-02-03
CVEList
Potential SQL injection via QuerySet.order_by and FilteredRelation2026-02-03

📋Vendor Advisories

3
Ubuntu
Django vulnerabilities2026-02-03
Red Hat
Django: Django: SQL injection via crafted column aliases in QuerySet.order_by()2026-02-03
Debian
CVE-2026-1312: python-django - An issue was discovered in 6.0 before 6.0.2, 5.2 before 5.2.11, and 4.2 before 4...2026

🕵️Threat Intelligence

1
Wiz
CVE-2026-1312 Impact, Exploitability, and Mitigation Steps | Wiz
CVE-2026-1312 — SQL Injection in Djangoproject Django | cvebase