5.4Medium

CVE-2026-1287Potential SQL injection in column aliases via control characters

djangoproject Django; Red Hat Red Hat Ansible Automation Platform 2.5 for RHEL 8; Red Hat Red Hat Ansible Automation Platform 2.5 for RHEL 9; Red Hat Red Hat A… Published: (9 months ago)

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. `FilteredRelation` is subject to SQL injection in column aliases via control characters, using a suitably crafted dictionary, with dictionary expansion, as the `**kwargs` passed to `QuerySet` methods `annotate()`, `aggregate()`, `extra()`, `values()`, `values_list()`, and `alias()`. 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.

Weakness (CWE): CWE-89

Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.

Affected products and versions

VendorProductVersions
ansible automation platform 2.5 —
ansible automation platform 2.6 —
discovery 2 —
djangoproject Django 6.0 – < 6.0.2, fixed 6.0.2, 5.2 – < 5.2.11, fixed 5.2.11, 4.2 – < 4.2.28, fixed 4.2.28
Red Hat Red Hat Ansible Automation Platform 2 all versions
Red Hat Red Hat Ansible Automation Platform 2.5 all versions
Red Hat Red Hat Ansible Automation Platform 2.5 for RHEL 8 all versions
Red Hat Red Hat Ansible Automation Platform 2.5 for RHEL 9 all versions
Red Hat Red Hat Ansible Automation Platform 2.6 all versions
Red Hat Red Hat Ansible Automation Platform 2.6 for RHEL 9 all versions
Red Hat Red Hat Discovery 2 all versions
Red Hat Red Hat OpenStack Platform 16.2 —
Red Hat Red Hat OpenStack Platform 17.1 —
Red Hat Red Hat OpenStack Platform 18.0 —
Red Hat Red Hat Satellite 6 all versions
Red Hat Red Hat Satellite 6.16 for RHEL 8 all versions
Red Hat Red Hat Satellite 6.16 for RHEL 9 all versions
Red Hat Red Hat Satellite 6.17 for RHEL 9 all versions
Red Hat Red Hat Satellite 6.18 all versions
Red Hat Red Hat Satellite 6.18 for RHEL 9 all versions
Red Hat Red Hat Update Infrastructure 4 for Cloud Providers all versions
rhui 4 —
satellite 6.16 —
satellite 6.18 —
satellite capsule 6.16 —
satellite capsule 6.18 —
satellite maintenance 6.17 —
satellite utils 6.17 —

References and patches

CPE matches (NVD) (3)

  • cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:* ≥ 4.2 < 4.2.28
  • cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:* ≥ 5.2 < 5.2.11
  • cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:* ≥ 6.0 < 6.0.2