Skip to main content
ExploitedNot in CISA KEV yetFix available

CVE-2026-1207

Potential SQL injection via raster lookups on PostGIS

Exploitation confirmed. First attested on 2026-07-06 by GCVE · previdian, GCVE · shadowserver.

  • Published2026-02-03
  • Fixed in6.0.2 · 5.2.11 · 4.2.28
  • WeaknessCWE-89

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

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.

Timeline

dates in UTC
  1. 2026-02-0315:16CVE publishedNVD
  2. 2026-07-0611:34Listed as exploited by GCVEGCVE
  3. 2026-07-0611:34Exploitation first reportedGCVE

Versions per branch

NVD · OSV
Django
BranchAffectedFixed in
6.0≥ 6.0, < 6.0.26.0.2
6.0≥ 6.0.0, < 6.0.26.0.2
6.0≥ 6.0a1, < 6.0.26.0.2
5.2≥ 5.2, < 5.2.115.2.11
5.2≥ 5.2.0, < 5.2.115.2.11
5.2≥ 5.2a1, < 5.2.115.2.11
4.2≥ 4.2, < 4.2.284.2.28
4.2≥ 4.2.0, < 4.2.284.2.28
4.2≥ 4.2a1, < 4.2.284.2.28

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Products declared by the CNA1 product

As DSF, the CNA that assigned this CVE, declared them in the CVE record; versions as written.

  • djangoproject Djangoother versions: not affected

    package djangohttps://pypi.org/project/Django/

    Affected
    • ≥ 6.0, < 6.0.2fixed in 6.0.2semver
    • ≥ 5.2, < 5.2.11fixed in 5.2.11semver
    • ≥ 4.2, < 4.2.28fixed in 4.2.28semver

    Not affected = 6.0.2 · = 5.2.11 · = 4.2.28

Source: the CNA record (CVE Program), © The MITRE Corporation,CVE terms of useCVE recordupdated 2026-02-03

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • automation-controllerRed Hat:ansible_automation_platform:2.6::el9all versions · fixed in 0:4.7.9-1.el9apand 4 other packages
  • automation-controllerRed Hat:ansible_automation_platform:2.5::el9all versions · fixed in 0:4.6.26-1.el9apand 4 other packages
  • automation-controllerRed Hat:ansible_automation_platform:2.5::el8all versions · fixed in 0:4.6.26-1.el8apand 4 other packages
  • automation-controllerRed Hat:ansible_automation_platform_developer:2.6::el9all versions · fixed in 0:4.7.9-1.el9apand 1 other package
  • automation-controllerRed Hat:ansible_automation_platform_developer:2.5::el9all versions · fixed in 0:4.6.26-1.el9apand 1 other package
  • automation-controllerRed Hat:ansible_automation_platform_developer:2.5::el8all versions · fixed in 0:4.6.26-1.el8apand 1 other package
  • automation-gatewayRed Hat:ansible_automation_platform:2.5::el9all versions · fixed in 0:2.5.20260225-1.el9apand 2 other packages
  • automation-gatewayRed Hat:ansible_automation_platform:2.5::el8all versions · fixed in 0:2.5.20260225-1.el8apand 2 other packages

121 more package ranges on OSV.dev

Vendor advisories

  • CVE-2026-1207 Red Hat Product Security73 products fixed · 7 known affected

    Django: Django: SQL Injection via RasterField band index parameter

    ansible-automation-platform-24/lightspeed-rhel8 as a component of Red Hat Ansible Automation Platform 2 · automation-controller.src as a component of Red Hat Ansible Automation Platform 2 · python-django-bash-completion (satellite-capsule:el8) as a component of Red Hat Satellite 6 · +4 more

  • RHSA-2026:14835 Red Hat Product Security2 products fixed

    Red Hat Security Advisory: Satellite 6.18.5 Async Update

  • RHSA-2026:6291 Red Hat Product Security1 product fixed

    Red Hat Security Advisory: General availability of the satellite/iop-advisor-backend-rhel9 container image

  • RHSA-2026:5971 Red Hat Product Security4 products fixed

    Red Hat Security Advisory: Satellite 6.16.7 Async Update

  • RHSA-2026:5970 Red Hat Product Security50 products fixed

    Red Hat Security Advisory: Satellite 6.17.7 Async Update

  • RHSA-2026:3959 Red Hat Product Security4 products fixed

    Red Hat Security Advisory: Red Hat Ansible Automation Platform 2.5 Product Security and Bug Fix Update

4 more advisories

Full record on NVD

Fix

  1. Update Django to 6.0.2 · 5.2.11 · 4.2.28
  2. Vendor fix Red Hat Product Security RHSA-2026:14835 · 4 productsBefore applying this update, make sure all previously released errata relevant to your system have been applied. For detailed instructions how to apply this update, refer to: https://access.redhat.com/documentation/en-us/red_hat_satellite/6.18/html/updating_red_hat_satellite/index
  3. Vendor fix Red Hat Product Security RHSA-2026:6291 · 1 productFor Red Hat Lightspeed in Satellite installation see the Red Hat Satellite documentation.
  4. Vendor fix Red Hat Product Security RHSA-2026:5971 · 8 productsBefore applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258
  5. Vendor fix Red Hat Product Security RHSA-2026:5970 · 87 productsBefore applying this update, make sure all previously released errata relevant to your system have been applied. For detailed instructions how to apply this update, refer to: https://docs.redhat.com/en/documentation/red_hat_satellite/6.17/html/updating_red_hat_satellite/index
  6. Vendor fix Red Hat Product Security RHSA-2026:3959 · 8 productsFor details on how to apply this update, refer to Ansible Automation Platform documentation.
  7. Vendor fix Red Hat Product Security RHSA-2026:3962 · 4 productsBefore applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://docs.redhat.com/en/documentation/red_hat_ansible_automation_platform/2.5#Upgrading

Advisories and patches

Detection

read 2026-11-01 01:02 UTC
Nuclei template
available
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

Identifiers

Technical details

CVSS v3 vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L
Published
2026-02-03
Last modified
2026-07-15
NVD status
Modified
GitHub advisory
GHSA-mwm9-4648-f68q

Frequently asked questions

What is CVE-2026-1207?

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.

Is CVE-2026-1207 actively exploited?

Active exploitation of CVE-2026-1207 has not been confirmed. Its EPSS score was 1.9% on 2026-11-25, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2026-1207?

CVE-2026-1207 has a CVSS v3 base score of 8.3 (High severity), with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L.

Running Django? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website checks · 250 API requests/month

Sources for this record