Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2026-1312

published high CVSS 3.1 · 8.5

Potential SQL injection via QuerySet.order_by and FilteredRelation

Published
03 Feb 2026, 14:36:23 UTC
Updated
15 Jul 2026, 01:21:55 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
djangoproject — djangoDjango · 6.0 to < 6.0.2 (affected · semver) · 6.0.2 (unaffected · semver) · 5.2 to < 5.2.11 (affected · semver) · 5.2.11 (unaffected · semver) · 4.2 to < 4.2.28 (affected · semver) · 4.2.28 (unaffected · semver) · Other versions: unaffected Version-specific Not stated DSF
Red Hat — python3.12-djangoRed Hat Ansible Automation Platform 2.5 for RHEL 8 · 0:4.2.28-1.el8ap and later · Other versions: affected Unaffected Not stated redhat-SADP
Red Hat — python3.12-djangoRed Hat Ansible Automation Platform 2.5 for RHEL 9 · 0:4.2.28-1.el9ap and later · Other versions: affected Unaffected Not stated redhat-SADP
Red Hat — python3.12-djangoRed Hat Ansible Automation Platform 2.6 for RHEL 9 · 0:4.2.28-1.el9ap and later · Other versions: affected Unaffected Not stated redhat-SADP
Debian bookworm python-django Advisory build 3:3.2.25-0+deb12u2 DSA-6150-1
Ubuntu noble python-django Advisory build 3:4.2.11-1ubuntu1.14 USN-8009-1
Alpine Linux edge py3-django Fixed 4.2.28-r0 Package fix record
SUSE / openSUSE SLE-15-SP7 python311-Djangonoarch Advisory build 4.2.11-150600.3.47.1 SUSE-SU-2026:0440-1
Show 80 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Red Hat — python-djangoRed Hat Satellite 6.16 for RHEL 8 · 0:4.2.28-0.1.el8pc and later · Other versions: affected Unaffected Not stated redhat-SADP
Red Hat — python-djangoRed Hat Satellite 6.16 for RHEL 9 · 0:4.2.28-0.1.el9pc and later · Other versions: affected Unaffected Not stated redhat-SADP
Red Hat — foremanRed Hat Satellite 6.17 for RHEL 9 · 0:3.14.0.14-1.el9sat and later · Other versions: affected Unaffected Not stated redhat-SADP
Red Hat — libcompsRed Hat Satellite 6.17 for RHEL 9 · 0:0.1.23-0.3.el9pc and later · Other versions: affected Unaffected Not stated redhat-SADP
Red Hat — python-brotliRed Hat Satellite 6.17 for RHEL 9 · 0:1.2.0-0.1.el9pc and later · Other versions: affected Unaffected Not stated redhat-SADP
Red Hat — python-djangoRed Hat Satellite 6.17 for RHEL 9 · 0:4.2.28-0.1.el9pc and later · Other versions: affected Unaffected Not stated redhat-SADP
Red Hat — python-pulp-containerRed Hat Satellite 6.17 for RHEL 9 · 0:2.22.3-1.el9pc and later · Other versions: affected Unaffected Not stated redhat-SADP
Red Hat — python-pulp-rpmRed Hat Satellite 6.17 for RHEL 9 · 0:3.27.10-2.el9pc and later · Other versions: affected Unaffected Not stated redhat-SADP
Red Hat — rubygem-fog-kubevirtRed Hat Satellite 6.17 for RHEL 9 · 0:1.5.1-1.el9sat and later · Other versions: affected Unaffected Not stated redhat-SADP
Red Hat — rubygem-foreman_kubevirtRed Hat Satellite 6.17 for RHEL 9 · 0:0.4.3-1.el9sat and later · Other versions: affected Unaffected Not stated redhat-SADP
Red Hat — rubygem-katelloRed Hat Satellite 6.17 for RHEL 9 · 0:4.16.0.14-1.el9sat and later · Other versions: affected Unaffected Not stated redhat-SADP
Red Hat — rubygem-rubyipmiRed Hat Satellite 6.17 for RHEL 9 · 0:0.13.0-1.el9sat and later · Other versions: affected Unaffected Not stated redhat-SADP
Red Hat — satelliteRed Hat Satellite 6.17 for RHEL 9 · 0:6.17.7-1.el9sat and later · Other versions: affected Unaffected Not stated redhat-SADP
Red Hat — yggdrasil-worker-forwarderRed Hat Satellite 6.17 for RHEL 9 · 0:0.0.3-4.el9sat and later · Other versions: affected Unaffected Not stated redhat-SADP
Red Hat — python3.12-djangoRed Hat Satellite 6.18 for RHEL 9 · 0:4.2.30-1.el9pc and later · Other versions: affected Unaffected Not stated redhat-SADP
Red Hat — ansible-automation-platform-25/lightspeed-rhel8Red Hat Ansible Automation Platform 2.5 · 1772214630 and later · Other versions: affected Unaffected Not stated redhat-SADP
Red Hat — ansible-automation-platform-26/lightspeed-rhel9Red Hat Ansible Automation Platform 2.6 · 1772552788 and later · Other versions: affected Unaffected Not stated redhat-SADP
Red Hat — discovery/discovery-server-rhel9Red Hat Discovery 2 · 1770913597 and later · Other versions: affected Unaffected Not stated redhat-SADP
Red Hat — satellite/iop-advisor-backend-rhel9Red Hat Satellite 6.18 · 1773451075 and later · Other versions: affected Unaffected Not stated redhat-SADP
Red Hat — ansible-automation-platform-24/de-minimal-rhel8Red Hat Ansible Automation Platform 2 Unaffected Not required redhat-SADP
Red Hat — ansible-automation-platform-24/de-minimal-rhel9Red Hat Ansible Automation Platform 2 Unaffected Not required redhat-SADP
Red Hat — ansible-automation-platform-25/de-minimal-rhel8Red Hat Ansible Automation Platform 2 Unaffected Not required redhat-SADP
Red Hat — ansible-automation-platform-25/de-minimal-rhel9Red Hat Ansible Automation Platform 2 Unaffected Not required redhat-SADP
Red Hat — ansible-automation-platform-26/de-minimal-rhel9Red Hat Ansible Automation Platform 2 Unaffected Not required redhat-SADP
Red Hat — automation-controllerRed Hat Ansible Automation Platform 2 Affected Not stated redhat-SADP
Red Hat — python-djangoRed Hat Ansible Automation Platform 2 Unaffected Not required redhat-SADP
Red Hat — python-django20Red Hat OpenStack Platform 16.2 Unaffected Not required redhat-SADP
Red Hat — python-djangoRed Hat OpenStack Platform 17.1 Unaffected Not required redhat-SADP
Red Hat — python-djangoRed Hat OpenStack Platform 18.0 Unaffected Not required redhat-SADP
Red Hat — satellite-capsule:el8/python-djangoRed Hat Satellite 6 Affected Not stated redhat-SADP
Red Hat — python-djangoRed Hat Update Infrastructure 4 for Cloud Providers Affected Not stated redhat-SADP
Debian bullseye python-django Advisory build 2:2.2.28-1~deb11u12 DLA-4484-1
Debian trixie python-django Advisory build 3:4.2.28-0+deb13u1 DSA-6150-1
Ubuntu questing python-django Advisory build 3:5.2.4-1ubuntu2.3 USN-8009-1
Alpine Linux v3.23 py3-django Fixed 4.2.28-r0 Package fix record
Alpine Linux v3.24 py3-django Fixed 4.2.28-r0 Package fix record
SUSE / openSUSE openSUSE-Leap-15.6 python311-Djangonoarch Advisory build 4.2.11-150600.3.47.1 SUSE-SU-2026:0440-1
SUSE / openSUSE openSUSE-Leap-16.0 python313-Djangonoarch Advisory build 5.2.4-bp160.5.1 OPENSUSE-SU-2026:20184-1
SUSE / openSUSE openSUSE-Tumbleweed python311-Djangoaarch64 Advisory build 5.2.11-1.1 OPENSUSE-SU-2026:10160-1
SUSE / openSUSE openSUSE-Tumbleweed python311-Djangoppc64le Advisory build 5.2.11-1.1 OPENSUSE-SU-2026:10160-1
SUSE / openSUSE openSUSE-Tumbleweed python311-Djangos390x Advisory build 5.2.11-1.1 OPENSUSE-SU-2026:10160-1
SUSE / openSUSE openSUSE-Tumbleweed python311-Djangox86_64 Advisory build 5.2.11-1.1 OPENSUSE-SU-2026:10160-1
SUSE / openSUSE openSUSE-Tumbleweed python311-Django4aarch64 Advisory build 4.2.28-1.1 OPENSUSE-SU-2026:10247-1
SUSE / openSUSE openSUSE-Tumbleweed python311-Django4ppc64le Advisory build 4.2.28-1.1 OPENSUSE-SU-2026:10247-1
SUSE / openSUSE openSUSE-Tumbleweed python311-Django4s390x Advisory build 4.2.28-1.1 OPENSUSE-SU-2026:10247-1
SUSE / openSUSE openSUSE-Tumbleweed python311-Django4x86_64 Advisory build 4.2.28-1.1 OPENSUSE-SU-2026:10247-1
SUSE / openSUSE openSUSE-Tumbleweed python312-Djangoaarch64 Advisory build 5.2.11-1.1 OPENSUSE-SU-2026:10160-1
SUSE / openSUSE openSUSE-Tumbleweed python312-Djangoppc64le Advisory build 5.2.11-1.1 OPENSUSE-SU-2026:10160-1
SUSE / openSUSE openSUSE-Tumbleweed python312-Djangos390x Advisory build 5.2.11-1.1 OPENSUSE-SU-2026:10160-1
SUSE / openSUSE openSUSE-Tumbleweed python312-Djangox86_64 Advisory build 5.2.11-1.1 OPENSUSE-SU-2026:10160-1
SUSE / openSUSE openSUSE-Tumbleweed python312-Django4aarch64 Advisory build 4.2.28-1.1 OPENSUSE-SU-2026:10247-1
SUSE / openSUSE openSUSE-Tumbleweed python312-Django4ppc64le Advisory build 4.2.28-1.1 OPENSUSE-SU-2026:10247-1
SUSE / openSUSE openSUSE-Tumbleweed python312-Django4s390x Advisory build 4.2.28-1.1 OPENSUSE-SU-2026:10247-1
SUSE / openSUSE openSUSE-Tumbleweed python312-Django4x86_64 Advisory build 4.2.28-1.1 OPENSUSE-SU-2026:10247-1
SUSE / openSUSE openSUSE-Tumbleweed python312-Django6aarch64 Advisory build 6.0.2-1.1 OPENSUSE-SU-2026:10145-1
SUSE / openSUSE openSUSE-Tumbleweed python312-Django6ppc64le Advisory build 6.0.2-1.1 OPENSUSE-SU-2026:10145-1
SUSE / openSUSE openSUSE-Tumbleweed python312-Django6s390x Advisory build 6.0.2-1.1 OPENSUSE-SU-2026:10145-1
SUSE / openSUSE openSUSE-Tumbleweed python312-Django6x86_64 Advisory build 6.0.2-1.1 OPENSUSE-SU-2026:10145-1
SUSE / openSUSE openSUSE-Tumbleweed python313-Djangoaarch64 Advisory build 5.2.11-1.1 OPENSUSE-SU-2026:10160-1
SUSE / openSUSE openSUSE-Tumbleweed python313-Djangoppc64le Advisory build 5.2.11-1.1 OPENSUSE-SU-2026:10160-1
SUSE / openSUSE openSUSE-Tumbleweed python313-Djangos390x Advisory build 5.2.11-1.1 OPENSUSE-SU-2026:10160-1
SUSE / openSUSE openSUSE-Tumbleweed python313-Djangox86_64 Advisory build 5.2.11-1.1 OPENSUSE-SU-2026:10160-1
SUSE / openSUSE openSUSE-Tumbleweed python313-Django4aarch64 Advisory build 4.2.28-1.1 OPENSUSE-SU-2026:10247-1
SUSE / openSUSE openSUSE-Tumbleweed python313-Django4ppc64le Advisory build 4.2.28-1.1 OPENSUSE-SU-2026:10247-1
SUSE / openSUSE openSUSE-Tumbleweed python313-Django4s390x Advisory build 4.2.28-1.1 OPENSUSE-SU-2026:10247-1
SUSE / openSUSE openSUSE-Tumbleweed python313-Django4x86_64 Advisory build 4.2.28-1.1 OPENSUSE-SU-2026:10247-1
SUSE / openSUSE openSUSE-Tumbleweed python313-Django5aarch64 Advisory build 5.2.16-1.1 OPENSUSE-SU-2026:11270-1
SUSE / openSUSE openSUSE-Tumbleweed python313-Django5ppc64le Advisory build 5.2.16-1.1 OPENSUSE-SU-2026:11270-1
SUSE / openSUSE openSUSE-Tumbleweed python313-Django5s390x Advisory build 5.2.16-1.1 OPENSUSE-SU-2026:11270-1
SUSE / openSUSE openSUSE-Tumbleweed python313-Django5x86_64 Advisory build 5.2.16-1.1 OPENSUSE-SU-2026:11270-1
SUSE / openSUSE openSUSE-Tumbleweed python313-Django6aarch64 Advisory build 6.0.2-1.1 OPENSUSE-SU-2026:10145-1
SUSE / openSUSE openSUSE-Tumbleweed python313-Django6ppc64le Advisory build 6.0.2-1.1 OPENSUSE-SU-2026:10145-1
SUSE / openSUSE openSUSE-Tumbleweed python313-Django6s390x Advisory build 6.0.2-1.1 OPENSUSE-SU-2026:10145-1
SUSE / openSUSE openSUSE-Tumbleweed python313-Django6x86_64 Advisory build 6.0.2-1.1 OPENSUSE-SU-2026:10145-1
SUSE / openSUSE openSUSE-Tumbleweed python314-Django5aarch64 Advisory build 5.2.16-1.1 OPENSUSE-SU-2026:11270-1
SUSE / openSUSE openSUSE-Tumbleweed python314-Django5ppc64le Advisory build 5.2.16-1.1 OPENSUSE-SU-2026:11270-1
SUSE / openSUSE openSUSE-Tumbleweed python314-Django5s390x Advisory build 5.2.16-1.1 OPENSUSE-SU-2026:11270-1
SUSE / openSUSE openSUSE-Tumbleweed python314-Django5x86_64 Advisory build 5.2.16-1.1 OPENSUSE-SU-2026:11270-1
Ubuntu noble python3-django Advisory build 3:4.2.11-1ubuntu1.14 USN-8009-1
Ubuntu questing python3-django Advisory build 3:5.2.4-1ubuntu2.3 USN-8009-1

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.

en · DSF · cna

en · redhat-SADP · adp

A flaw was found in Django. A remote attacker could exploit a SQL injection vulnerability in the `.QuerySet.order_by()` method. This occurs when column aliases containing periods are used, and the same alias is also present in `FilteredRelation` via a specially crafted dictionary. Successful exploitation could lead to unauthorized information disclosure or arbitrary code execution within the database.

Vendor advisories explicitly linked to this CVE.

15

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
8.5 / 10
Severity
high
Provider
redhat-SADP · adp
Vector string
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H

Additional Assessments

Additional normalized CVSS assessments
VersionScoreSeverityProviderVectorScenarios
3.1 5.4 medium CISA-ADP · adp CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N —

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
djangoproject Django 6.0 to < 6.0.2 (affected · semver)6.0.2 (unaffected · semver)5.2 to < 5.2.11 (affected · semver)5.2.11 (unaffected · semver)4.2 to < 4.2.28 (affected · semver)4.2.28 (unaffected · semver)Default: unaffected DSF · cna
Red Hat Red Hat Ansible Automation Platform 2.5 for RHEL 8 0:4.2.28-1.el8ap and later (unaffected · rpm)Default: affected redhat-SADP · adp
Red Hat Red Hat Ansible Automation Platform 2.5 for RHEL 9 0:4.2.28-1.el9ap and later (unaffected · rpm)Default: affected redhat-SADP · adp
Red Hat Red Hat Ansible Automation Platform 2.6 for RHEL 9 0:4.2.28-1.el9ap and later (unaffected · rpm)Default: affected redhat-SADP · adp
Red Hat Red Hat Satellite 6.16 for RHEL 8 0:4.2.28-0.1.el8pc and later (unaffected · rpm)Default: affected redhat-SADP · adp
Red Hat Red Hat Satellite 6.16 for RHEL 9 0:4.2.28-0.1.el9pc and later (unaffected · rpm)Default: affected redhat-SADP · adp
Red Hat Red Hat Satellite 6.17 for RHEL 9 0:3.14.0.14-1.el9sat and later (unaffected · rpm)Default: affected redhat-SADP · adp
Red Hat Red Hat Satellite 6.17 for RHEL 9 0:0.1.23-0.3.el9pc and later (unaffected · rpm)Default: affected redhat-SADP · adp
Red Hat Red Hat Satellite 6.17 for RHEL 9 0:1.2.0-0.1.el9pc and later (unaffected · rpm)Default: affected redhat-SADP · adp
Red Hat Red Hat Satellite 6.17 for RHEL 9 0:4.2.28-0.1.el9pc and later (unaffected · rpm)Default: affected redhat-SADP · adp
Red Hat Red Hat Satellite 6.17 for RHEL 9 0:2.22.3-1.el9pc and later (unaffected · rpm)Default: affected redhat-SADP · adp
Red Hat Red Hat Satellite 6.17 for RHEL 9 0:3.27.10-2.el9pc and later (unaffected · rpm)Default: affected redhat-SADP · adp
Red Hat Red Hat Satellite 6.17 for RHEL 9 0:1.5.1-1.el9sat and later (unaffected · rpm)Default: affected redhat-SADP · adp
Red Hat Red Hat Satellite 6.17 for RHEL 9 0:0.4.3-1.el9sat and later (unaffected · rpm)Default: affected redhat-SADP · adp
Red Hat Red Hat Satellite 6.17 for RHEL 9 0:4.16.0.14-1.el9sat and later (unaffected · rpm)Default: affected redhat-SADP · adp
Red Hat Red Hat Satellite 6.17 for RHEL 9 0:0.13.0-1.el9sat and later (unaffected · rpm)Default: affected redhat-SADP · adp
Red Hat Red Hat Satellite 6.17 for RHEL 9 0:6.17.7-1.el9sat and later (unaffected · rpm)Default: affected redhat-SADP · adp
Red Hat Red Hat Satellite 6.17 for RHEL 9 0:0.0.3-4.el9sat and later (unaffected · rpm)Default: affected redhat-SADP · adp
Red Hat Red Hat Satellite 6.18 for RHEL 9 0:4.2.30-1.el9pc and later (unaffected · rpm)Default: affected redhat-SADP · adp
Red Hat Red Hat Ansible Automation Platform 2.5 1772214630 and later (unaffected · rpm)Default: affected redhat-SADP · adp
Red Hat Red Hat Ansible Automation Platform 2.6 1772552788 and later (unaffected · rpm)Default: affected redhat-SADP · adp
Red Hat Red Hat Discovery 2 1770913597 and later (unaffected · rpm)Default: affected redhat-SADP · adp
Red Hat Red Hat Satellite 6.18 1773451075 and later (unaffected · rpm)Default: affected redhat-SADP · adp
Red Hat Red Hat Ansible Automation Platform 2 Default: unaffected redhat-SADP · adp
Red Hat Red Hat Ansible Automation Platform 2 Default: unaffected redhat-SADP · adp
Red Hat Red Hat Ansible Automation Platform 2 Default: unaffected redhat-SADP · adp
Red Hat Red Hat Ansible Automation Platform 2 Default: unaffected redhat-SADP · adp
Red Hat Red Hat Ansible Automation Platform 2 Default: unaffected redhat-SADP · adp
Red Hat Red Hat Ansible Automation Platform 2 Default: affected redhat-SADP · adp
Red Hat Red Hat Ansible Automation Platform 2 Default: unaffected redhat-SADP · adp
Red Hat Red Hat OpenStack Platform 16.2 Default: unaffected redhat-SADP · adp
Red Hat Red Hat OpenStack Platform 17.1 Default: unaffected redhat-SADP · adp
Red Hat Red Hat OpenStack Platform 18.0 Default: unaffected redhat-SADP · adp
Red Hat Red Hat Satellite 6 Default: affected redhat-SADP · adp
Red Hat Red Hat Update Infrastructure 4 for Cloud Providers Default: affected redhat-SADP · adp

Weaknesses

2
  • CWE-89 CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') (DSF · cna)
  • CWE-89 Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') (redhat-SADP · adp)

References

15

Provider assertions

3

DSF · cna

Potential SQL injection via QuerySet.order_by and FilteredRelation

redhat-SADP · adp

Django: Django: SQL injection via crafted column aliases in QuerySet.order_by()

CISA-ADP · adp

CISA ADP Vulnrichment

Provenance

Schema
5.2
Searchable
yes
Content hash
f3d52e42c88ee41c43fe75117d5f67a84e8972e97522cd0482408b980e98559f
Ingested
23 Sep 2026, 09:04:07 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected