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

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.

Published: 2026-02-03 Last update: 2026-02-04 Assigner: 6a34fbeb-21d4-45e7-8e0a-62b95bc12c92 Source: 6a34fbeb-21d4-45e7-8e0a-62b95bc12c92

Conclusion & alert: CVE-2026-1207 is rated Moderate Risk (52.3/100): CVSS Medium severity, with high exploitation likelihood (EPSS 5.29%, 90th percentile). Core evidence: EPSS ranks this CVE among the most likely to be exploited in the near term. Mandatory action: High exploitation likelihood—assess exposure and prioritize remediation.

Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.

Exploit prediction scoring system (EPSS) score for CVE-2026-1207

EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).

# Date Old EPSS score New EPSS score Delta (New - Old)
1 2026-05-28 6.10% 5.29% -0.81%
2 2026-05-22 5.29% 6.10% +0.81%
3 2026-04-30 5.29%

Full EPSS history (18 records total)

Common vulnerability scoring system (CVSS) metrics for CVE-2026-1207

CVSS metrics for this CVE.

Base score Version Severity Vector Exploitability Impact Score source
5.4 3.1 MEDIUM
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N Click to expand
Attack vector (AV:N)
Could be attacked over the internet or any normal routed network—not just someone sitting at the machine.
Attack complexity (AC:L)
Once they can reach the bug, pulling it off is straightforward—no weird race conditions or rare setup.
Privileges required (PR:L)
A normal user session is enough; they don’t have to be admin.
User interaction (UI:N)
Nobody has to click “OK” or open a trap file; it can work without a victim helping.
Scope (S:U)
Damage stays in the same “trust bubble” as the broken component—no big spill into unrelated systems.
Confidentiality (C:L)
Some sensitive info could get out, but not a total data dump.
Integrity (I:L)
Attackers could change some data, but it’s limited—not everything goes.
Availability (A:N)
Service keeps running; no real outage angle.
2.8 2.5 134c704f-9b21-4f2e-91b3-4a467353bcc0

Weakness enumeration for CVE-2026-1207

GitHub Security Advisory for CVE-2026-1207

GHSA-mwm9-4648-f68q · Severity: high · Ecosystem: pip — Django has an SQL Injection issue

OS Trackers for CVE-2026-1207

vendor priority summary link
alpine CVE-2026-1207: 1 source package rows (py3-django); 2 state rows across 2 repos (3.23-community, edge-community); fixed 2, open 0. https://security.alpinelinux.org/vuln/CVE-2026-1207
debian not yet assigned CVE-2026-1207 not yet assigned priority: Debian including 1 source packages (python-django), 5 status rows across 5 suites (bookworm, bullseye, forky, sid, trixie): resolved 5. https://security-tracker.debian.org/tracker/CVE-2026-1207
redhat high https://access.redhat.com/security/cve/CVE-2026-1207
suse high CVE-2026-1207 severity important: SUSE including 11 source package names (python3-Django-2.2.28-bp156.30.1, python311-Django-4.2.11-150600.3.47.1, …), 13 product×package rows across 5 product lines (SUSE Linux Enterprise Module for Package Hub 15 SP7, SUSE Package Hub 15 SP6, … (5 product lines)): Fixed 13. https://www.suse.com/security/cve/CVE-2026-1207/
ubuntu medium CVE-2026-1207 medium priority: Ubuntu including 1 source packages (python-django), 8 status rows across 8 suites (bionic, focal, jammy, noble, questing, trusty, upstream, xenial): released 6, not-affected 2. https://ubuntu.com/security/CVE-2026-1207

Affected software / configurations for CVE-2026-1207

Vendor Product Version Raw CPE
djangoproject django >= 4.2, < 4.2.28 cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*
djangoproject django >= 5.2, < 5.2.11 cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*
djangoproject django >= 6.0, < 6.0.2 cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*

References for CVE-2026-1207

cvelogic Threat Intelligence