SQL Injection in Djangoproject Django
CVE-2026-1312
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.
Vulnerability class: SQL Injection
Published · last modified .
CVSS v3 metric
CVSS v3 base score 5.4 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N.
EPSS exploit prediction
EPSS: 0.009 (56.6th percentile), scored .
Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 57th percentile — 56.6% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.008 · newest: 0.009 · change: +0.000
Affected products
- Djangoproject Django — versions 6.0, 6.0.2, 5.2
Weakness classification (CWE)
Public proof-of-concept exploits
References
- 6a34fbeb-21d4-45e7-8e0a-62b95bc12c92 (vendor-advisory, Patch, Vendor Advisory)
- 6a34fbeb-21d4-45e7-8e0a-62b95bc12c92 (mailing-list, Release Notes)
- 6a34fbeb-21d4-45e7-8e0a-62b95bc12c92 (vendor-advisory, Patch, Vendor Advisory)
- 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
- 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
- 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
- 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
- 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
- 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
- 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
Frequently asked questions
- What is CVE-2026-1312?
- CVE-2026-1312 is a medium-severity vulnerability in Djangoproject Django, classified under SQL Injection. CVSS score: 5.4/10. Published 2026-02-03.
- How severe is CVE-2026-1312?
- Medium severity. CVSS v3 base score is 5.4 out of 10.
- Is CVE-2026-1312 known to be exploited?
- 2 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.