Skip to main content
Mallory
← Back to News
actively-exploited-vulnerabilityopen-source-dependency-vulnerabilityinternet-facing-service-vulnerabilitywidely-deployed-product-advisory

Attackers Exploit SQL Injection in Django GeoDjango RasterField Lookups

Active Exploitation · 4 sources · Updated 2mo ago · First seen Feb 26, 2026

Attackers Exploit SQL Injection in Django GeoDjango RasterField Lookups

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.
This is being exploited nowSee which actors are running it and whether you're in range.
Check your exposure
Event timeline

How this story unfolded

Events from the most recent confirmed update back to the earliest known activity.

12 events · Jan 19, 2026 – Feb 26, 2026
  1. Feb 26, 20269mo ago

    CrowdSec first observes exploitation attempts

    CrowdSec first observed attacks targeting CVE-2026-1207 and claimed to be the first organization to confirm exploitation in the wild. Its report describes focused probing of vulnerable Django and PostGIS configurations, with payloads attempting to trigger database errors or extract information.

    CVE-2026-1207: Django SQLi Vulnerability Exploited in the Wild
  2. Feb 18, 202610mo ago

    CrowdSec releases detection rule for CVE-2026-1207

    CrowdSec released a detection rule to identify exploitation attempts targeting the Django SQL injection vulnerability.

    CVE-2026-1207: Django SQLi Vulnerability Exploited in the Wild
  3. Reported Feb 3, 202610mo ago

    Previdian observes further exploitation in October

    Previdian records its latest observed exploitation attempt against CVE-2026-1207 on October 7, demonstrating continued activity months after its initial detection.

    CVE-2026-1207 Exploitation Observed - Django | Previdian
  4. Reported Feb 3, 202610mo ago

    Compensating WAF-rule availability reported

    Previdian's timeline records compensating WAF-rule availability for CVE-2026-1207, with ModSecurity, Cloudflare, and AWS WAF listed as supported export formats. The supplied content does not provide deployable rules.

    CVE-2026-1207 Exploitation Observed - Django | Previdian
  5. Reported Feb 3, 202610mo ago

    Previdian adds CVE-2026-1207 to its known-exploited feed

    Previdian added CVE-2026-1207 to its own known-exploited-vulnerability feed. This was distinct from inclusion in CISA's Known Exploited Vulnerabilities catalog.

    CVE-2026-1207 Exploitation Observed - Django | Previdian
  6. Reported Feb 3, 202610mo ago

    Shadowserver exploitation evidence recorded

    Previdian records Shadowserver exploitation evidence for CVE-2026-1207 dated July 6, 2026, providing additional corroboration of attacks.

    CVE-2026-1207 Exploitation Observed - Django | Previdian
  7. Reported Feb 3, 202610mo ago

    Public proof-of-concept availability reported

    Previdian dates public proof-of-concept availability for CVE-2026-1207 to June 12, 2026, while warning that potential proof-of-concept artifacts are unverified.

    CVE-2026-1207 Exploitation Observed - Django | Previdian
  8. Reported Feb 3, 202610mo ago

    Previdian first detects exploitation in honeypot sensors

    Previdian first observed exploitation attempts against CVE-2026-1207 in its honeypot sensors. It assigns confirmed confidence to its exploitation assessment based on sensor observations and third-party evidence.

    CVE-2026-1207 Exploitation Observed - Django | Previdian
  9. Reported Feb 3, 202610mo ago

    Nuclei scanner template becomes available

    Previdian dates the availability of a ProjectDiscovery Nuclei scanner template for CVE-2026-1207 to June 1, 2026.

    CVE-2026-1207 Exploitation Observed - Django | Previdian
  10. Feb 3, 202610mo ago

    Django releases patched versions 6.0.2, 5.2.11, and 4.2.28

    Django released versions 6.0.2, 5.2.11, and 4.2.28 to address CVE-2026-1207. Earlier versions in those release series were affected; unsupported branches were not evaluated and could also be vulnerable.

    CVE-2026-1207 Exploitation Observed - Django | Previdian
  11. Feb 3, 202610mo ago

    Django RasterField SQL injection vulnerability published

    CVE-2026-1207 was published, describing SQL injection through the band index parameter in PostGIS-backed RasterField lookups. Django credited Tarek Nakkouch with reporting the vulnerability.

    CVE-2026-1207: Django SQLi Vulnerability Exploited in the Wild
  12. Jan 19, 202611mo ago

    CVE-2026-1207 identifier reserved

    The CVE identifier was reserved for the SQL injection vulnerability affecting Django's PostGIS-backed RasterField lookups.

    CVE-2026-1207 Exploitation Observed - Django | Previdian
Linked entities

Related entities

Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.

Open in app →

Affected products

2 linked
DjangoDjango
Do you run this?Correlate live exploitation activity against the software you actually run, and see where you're exposed.
See Who's Exploiting This
Mallory platform

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which threat actors are using it right now, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.