# 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.2.28

CVE-2026-1312 is fixed in 3 products on 1 platform, first by python3-django 3:4.2.11-1ubuntu1.14, released February 3, 2026. It is not reported as exploited. Patch Radar priority: Routine.

- Web page: https://patchblox.com/security/cve/CVE-2026-1312
- Priority: Routine
- CVSS: 5.4 (medium)
- EPSS: 0.0090
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Feb 3, 2026

## 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.

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | python-Django opensuse-leap 15.6 | 4.2.11-150600.3.47.1 | [SUSE-SU-2026:0440-1](https://patchblox.com/security/data/fix/linux/suse-su-2026-0440-1.md) | Feb 11, 2026 |
| Linux | python-Django opensuse-leap 16.0 | 5.2.4-bp160.5.1 | [OPENSUSE-SU-2026:20184-1](https://patchblox.com/security/data/fix/linux/opensuse-su-2026-20184-1.md) | Feb 7, 2026 |
| Linux | python-Django sles 15.7 | 4.2.11-150600.3.47.1 | [SUSE-SU-2026:0440-1](https://patchblox.com/security/data/fix/linux/suse-su-2026-0440-1.md) | Feb 11, 2026 |
| Linux | python-django Debian 12.15 (bookworm) | 3:3.2.25-0+deb12u2 | [DEBIAN-CVE-2026-1312](https://patchblox.com/security/data/fix/linux/debian-cve-2026-1312.md) | Feb 3, 2026 |
| Linux | python-django Debian 13.5 (trixie) | 3:4.2.28-0+deb13u1 | [DEBIAN-CVE-2026-1312](https://patchblox.com/security/data/fix/linux/debian-cve-2026-1312.md) | Feb 3, 2026 |
| Linux | python-django Debian 14 | 3:4.2.28-1 | [DEBIAN-CVE-2026-1312](https://patchblox.com/security/data/fix/linux/debian-cve-2026-1312.md) | Feb 3, 2026 |
| Linux | python3-django Ubuntu 24.04.5 LTS (noble) | 3:4.2.11-1ubuntu1.14 | [python3-django 3:4.2.11-1ubuntu1.14](https://patchblox.com/security/data/fix/linux/ubuntu-noble-python3-django-3-4.2.11-1ubuntu1.14.md) | Feb 3, 2026 |
| Linux | python3-django Ubuntu 25.10 (questing) | 3:5.2.4-1ubuntu2.3 | [python3-django 3:5.2.4-1ubuntu2.3](https://patchblox.com/security/data/fix/linux/ubuntu-questing-python3-django-3-5.2.4-1ubuntu2.3.md) | Feb 3, 2026 |

---

Data as of 2026-11-08T13:06:02Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
