5.4Medium

CVE-2026-1207Potential SQL injection via raster lookups on PostGIS

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. Raster lookups on ``RasterField`` (only implemented on PostGIS) allows remote attackers to inject SQL via the band index parameter. 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 Tarek Nakkouch 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