Attackers Exploit SQL Injection in Django GeoDjango RasterField Lookups
Active Exploitation · 4 sources · Updated 2mo ago · First seen Feb 26, 2026

Attackers are attempting to exploit CVE-2026-1207, a SQL injection vulnerability in Django applications using GeoDjango with the PostGIS backend. Improper handling of the band index parameter in RasterField lookups can allow remote attackers to inject SQL, potentially exposing sensitive data, modifying database contents, or bypassing authentication. The vulnerability has a CVSS v3.1 score of 5.4 and affects Django 6.0 before 6.0.2, 5.2 before 5.2.11, and 4.2 before 4.2.28; unsupported branches were not evaluated and may also be affected. Django issued the patched releases on February 3, 2026.
CrowdSec reported exploitation attempts beginning February 26, with steady weekly activity focused on reconnaissance for vulnerable Django and PostGIS configurations rather than broad spraying. Previdian separately reported 49 attempts from eight source IPs across 16 sensors beginning June 12 and cited additional evidence from Shadowserver; its report stated that the vulnerability was not listed in CISA KEV. Organizations using PostGIS-backed RasterField lookups should prioritize upgrading to 6.0.2, 5.2.11, or 4.2.28 or later within the respective release series, validate internet-facing exposure, review application logs for suspicious lookup activity, and disable production debug mode.
Why it matters
CVE-2026-1207 exposes Django applications that use GeoDjango’s PostGIS-backed RasterField lookups and allow attacker-controlled band indexes to reach those lookups. Successful SQL injection can expose or modify database data and potentially bypass application authentication; exposure is configuration-specific, not universal across Django deployments. CrowdSec and Previdian report exploitation attempts in the wild, but the supplied evidence does not establish successful compromise or victim data loss.
- Affected organizations: Operators of geospatial applications using raster data, particularly internet-facing services connected to sensitive databases.
- Severity: CVSS v3.1 5.4, medium. Business consequences depend on accessible data and application database privileges; the published assessment assigns confidentiality and integrity impact, but no availability impact.
- Observed scope: CrowdSec describes focused reconnaissance and steady probing rather than broad spraying. Previdian reports 49 attempts from eight source IPs across 16 sensors, with the latest observation on October 7, 2026.
- Downstream exposure: Previdian flags components in Red Hat Ansible Automation Platform 2, Satellite 6, and Red Hat Update Infrastructure 4. Validate component versions and vendor advisories rather than treating entire product families as vulnerable.
- Prioritization: Both reports state that the CVE was absent from CISA KEV at their reporting times. That does not negate the reported exploitation attempts.


