CVEvulnerability
CVE-2026-1312
5.4 MEDIUM
Official page ↗
- Status
- Modified
- Published
- 2026-02-03
- Last modified
- 2026-07-15
- Assigner
- 6a34fbeb-21d4-45e7-8e0a-62b95bc12c92
- CVSS 3.1 (134c704f-9b21-4f2e-91b3-4a467353bcc0)
- 5.4 MEDIUM — CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
- CVSS 3.1 (0b0ca135-0b70-47e7-9f44-1890c2a1c46c)
- 8.5 HIGH — CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H
- Weaknesses
- CWE-89
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.
Affected configurations
• djangoproject django (>= 4.2 < 4.2.28)
• djangoproject django (>= 5.2 < 5.2.11)
• djangoproject django (>= 6.0 < 6.0.2)
Related
Weakness · CWE (1)
- CWE-89 Improper Neutralization of Special Elements used in an SQL Command weakness
References
- https://docs.djangoproject.com/en/dev/releases/security/ Patch, Vendor Advisory
- https://groups.google.com/g/django-announce Release Notes
- https://www.djangoproject.com/weblog/2026/feb/03/security-releases/ Patch, Vendor Advisory
- https://access.redhat.com/errata/RHSA-2026:14835 access.redhat.com
- https://access.redhat.com/errata/RHSA-2026:2694 access.redhat.com
- https://access.redhat.com/errata/RHSA-2026:3958 access.redhat.com
- https://access.redhat.com/errata/RHSA-2026:3959 access.redhat.com
- https://access.redhat.com/errata/RHSA-2026:3960 access.redhat.com
- https://access.redhat.com/errata/RHSA-2026:3962 access.redhat.com
- https://access.redhat.com/errata/RHSA-2026:5970 access.redhat.com
- https://access.redhat.com/errata/RHSA-2026:5971 access.redhat.com
- https://access.redhat.com/errata/RHSA-2026:6291 access.redhat.com
- https://access.redhat.com/security/cve/CVE-2026-1312 access.redhat.com
- https://bugzilla.redhat.com/show_bug.cgi?id=2436342 bugzilla.redhat.com
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-1312.json security.access.redhat.com