CVE-2026-1207
JSON

5.4medium

Potential SQL injection via raster lookups on PostGIS

Severity
5.4medium CVSS:3.1 by CISA-ADP
Exploit likelihood
1.88% (higher than 80% of CVEs)
Published
Last changed
Assigned by
DSF
Also known as
GHSA-mwm9-4648-f68qBIT-DJANGO-2026-1207PYSEC-2026-44

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.

Affected

Product or packageVersionsReported by
djangofrom 6.0 before 6.0.2, from 5.2 before 5.2.11, from 4.2 before 4.2.28
Not affected: 6.0.2, 5.2.11, 4.2.28
CVE List
python3.12-djangoNot specified
Not affected: from 0:4.2.28-1.el8ap before *, from 0:4.2.28-1.el9ap before *, from 0:4.2.30-1.el9pc before *
CVE List
python-djangoNot specified
Not affected: from 0:4.2.28-0.1.el8pc before *, from 0:4.2.28-0.1.el9pc before *
CVE List
foremanNot specified
Not affected: from 0:3.14.0.14-1.el9sat before *
CVE List
libcompsNot specified
Not affected: from 0:0.1.23-0.3.el9pc before *
CVE List
python-brotliNot specified
Not affected: from 0:1.2.0-0.1.el9pc before *
CVE List
python-pulp-containerNot specified
Not affected: from 0:2.22.3-1.el9pc before *
CVE List
python-pulp-rpmNot specified
Not affected: from 0:3.27.10-2.el9pc before *
CVE List
rubygem-fog-kubevirtNot specified
Not affected: from 0:1.5.1-1.el9sat before *
CVE List
rubygem-foreman_kubevirtNot specified
Not affected: from 0:0.4.3-1.el9sat before *
CVE List
rubygem-katelloNot specified
Not affected: from 0:4.16.0.14-1.el9sat before *
CVE List
rubygem-rubyipmiNot specified
Not affected: from 0:0.13.0-1.el9sat before *
CVE List

All scores

CISA-ADP5.4medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
redhat-SADP8.3high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L
GitHubhigh CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U
PyPA Advisory Database5.4medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
Bitnami Vulnerability Databasehigh rating

Classification

CWE-89

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

Se descubrió un problema en 6.0 antes de 6.0.2, 5.2 antes de 5.2.11 y 4.2 antes de 4.2.28. Las búsquedas de ráster en 'RasterField' (solo implementado en PostGIS) permiten a atacantes remotos inyectar SQL a través del parámetro de índice de banda. Series de Django anteriores no soportadas (como 5.0.x, 4.1.x y 3.2.x) no fueron evaluadas y también pueden estar afectadas. Django desea agradecer a Tarek Nakkouch por reportar este problema.

References

https://docs.djangoproject.com/en/dev/releases/security/advisory, fix, patch, vendor-advisory
https://groups.google.com/g/django-announceadvisory, article, mailing-list, release-notes, web
https://www.djangoproject.com/weblog/2026/feb/03/security-releases/advisory, fix, patch, vendor-advisory
https://access.redhat.com/security/cve/CVE-2026-1207vdb-entry, web
https://bugzilla.redhat.com/show_bug.cgi?id=2436338issue-tracking, web
https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-1207.jsonweb
https://access.redhat.com/errata/RHSA-2026:3959vendor-advisory, web
https://access.redhat.com/errata/RHSA-2026:5971vendor-advisory, web
https://access.redhat.com/errata/RHSA-2026:3958vendor-advisory, web
https://access.redhat.com/errata/RHSA-2026:5970vendor-advisory, web
https://access.redhat.com/errata/RHSA-2026:14835vendor-advisory, web
https://access.redhat.com/errata/RHSA-2026:3962vendor-advisory, web

Sources

SourceRecordLicence
CVE ListCVE-2026-1207 changed 2026-07-15CVE Terms of Use
GitHub Advisory DatabaseGHSA-mwm9-4648-f68q changed 2026-09-10CC-BY-4.0
NVDCVE-2026-1207 changed 2026-07-15Public domain
PyPA Advisory DatabasePYSEC-2026-44 changed 2026-06-10CC-BY-4.0
Bitnami Vulnerability DatabaseBIT-DJANGO-2026-1207 changed 2026-09-10Apache-2.0