Saturday 5 December 2026 · UTC
Global

Your region, kept on this device.

Vulnerability · Djangoproject Django

CVE-2026-124827

An issue was discovered in Django 6.1 before 6.1.4, 6.0 before 6.0.11, and 5.2 before 5.2.20. `django.contrib.gis.db.models.RasterField` allows the creation of files at attacker-controlled locations via the `name` parameter of a data definition. Depending on the raster driver, this could enable remote code execution. Earlier, unsupported Django series (such as 5.1.x, 5.0.x, and 4.2.x) were not evaluated and may also be affected. Django would like to thank Mohammed Fathy for reporting this issue.

CVSS score (v4.0)8.7High
Exploitation: unknown in current evidence
Patch reported for this CVE
No KEV listing in this record

Am I affected?

Check a product version without an account, or sign in for saved inventory assessments.

Ask about this evidence

Timeline

  1. Published by NVD
  2. First covered by RedTeamDaily
  3. Last updated by NVD

Affected products

ProductVersions
Djangoproject Django
Component identitycpe:2.3:a:djangoproject:django
from 5.2 before 5.2.20; from 6.0 before 6.0.11; from 6.1 before 6.1.4

Source evidence and freshness

Lifecycle: Deferred. Technical severity: CVSS 4.0 · Provider: 6a34fbeb-21d4-45e7-8e0a-62b95bc12c92. Exploitation evidence and inventory applicability are separate assessments.

CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

Last retrieval: Last verified conclusion: Last material change:
Provider-specific scores
  • 6a34fbeb-21d4-45e7-8e0a-62b95bc12c92 · CVSS 4.0 · 8.7 High CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • 6a34fbeb-21d4-45e7-8e0a-62b95bc12c92 · CVSS 3.1 · 8.8 High CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

NVD record · CVE record and primary references

Remediation by product and branch

Djangoproject Django

from 5.2 before 5.2.20 · Branch 5.2.x

fix available · Verified fixed release: 5.2.20

Required deployment conditions
{
  "all": [
    {
      "key": "database",
      "equals": "postgis"
    },
    {
      "key": "untrusted_raster_input"
    }
  ]
}

Configuration prerequisites require review

Confirm the release branch and deployment prerequisites, then verify the installed build and expected security behaviour after changing it.

Django Software Foundation CNA advisory · Verified:

from 6.0 before 6.0.11 · Branch 6.0.x

fix available · Verified fixed release: 6.0.11

Required deployment conditions
{
  "all": [
    {
      "key": "database",
      "equals": "postgis"
    },
    {
      "key": "untrusted_raster_input"
    }
  ]
}

Configuration prerequisites require review

Confirm the release branch and deployment prerequisites, then verify the installed build and expected security behaviour after changing it.

Django Software Foundation CNA advisory · Verified:

from 6.1 before 6.1.4 · Branch 6.1.x

fix available · Verified fixed release: 6.1.4

Required deployment conditions
{
  "all": [
    {
      "key": "database",
      "equals": "postgis"
    },
    {
      "key": "untrusted_raster_input"
    }
  ]
}

Configuration prerequisites require review

Confirm the release branch and deployment prerequisites, then verify the installed build and expected security behaviour after changing it.

Django Software Foundation CNA advisory · Verified:

FIRST EPSS forecast

No EPSS score has been imported for this vulnerability. This is unavailable data, not a zero forecast.

A model forecast of exploitation activity in the next 30 days. It does not establish applicability, observed attacks, impact or organisation-specific risk. FIRST methodology and limits

Change history

Changes to the source evidence for this vulnerability. Retrievals that changed nothing are not listed. Email already sent is not edited afterwards.

  1. Patch reported ·

    • Patch reported: not recorded → yes
    Recorded entry #45216

    Reason recorded: Primary advisory checked: https://www.djangoproject.com/weblog/2026/dec/02/security-releases/

    {
      "fields": [
        {
          "kind": "value",
          "field": "patch_available",
          "label": "Patch reported",
          "revised": true,
          "previous": null
        }
      ]
    }
  2. Affected rule added ·

    Djangoproject Django from 5.2 before 5.2.20 · branch 5.2.x (Django Software Foundation CNA)

    Recorded entry #45215

    Reason recorded: Primary advisory checked: https://www.djangoproject.com/weblog/2026/dec/02/security-releases/

    {
      "fields": [],
      "rule": {
        "to": "5.2.20",
        "from": "5.2",
        "branch": "5.2.x",
        "source": "Django Software Foundation CNA",
        "fixedIn": "5.2.20",
        "toInclusive": false,
        "fixedVerified": true,
        "fromInclusive": true
      }
    }
  3. Affected rule added ·

    Djangoproject Django from 6.0 before 6.0.11 · branch 6.0.x (Django Software Foundation CNA)

    Recorded entry #45214

    Reason recorded: Primary advisory checked: https://www.djangoproject.com/weblog/2026/dec/02/security-releases/

    {
      "fields": [],
      "rule": {
        "to": "6.0.11",
        "from": "6.0",
        "branch": "6.0.x",
        "source": "Django Software Foundation CNA",
        "fixedIn": "6.0.11",
        "toInclusive": false,
        "fixedVerified": true,
        "fromInclusive": true
      }
    }
  4. Affected rule added ·

    Djangoproject Django from 6.1 before 6.1.4 · branch 6.1.x (Django Software Foundation CNA)

    Recorded entry #45213

    Reason recorded: Primary advisory checked: https://www.djangoproject.com/weblog/2026/dec/02/security-releases/

    {
      "fields": [],
      "rule": {
        "to": "6.1.4",
        "from": "6.1",
        "branch": "6.1.x",
        "source": "Django Software Foundation CNA",
        "fixedIn": "6.1.4",
        "toInclusive": false,
        "fixedVerified": true,
        "fromInclusive": true
      }
    }

Coverage

CSO Online· · Critical priority

Django releases fixes for seven flaws, including a high-severity remote code execution bug

released security updates for seven vulnerabilities, two rated high. The most serious, CVE-2026-124827, affects RasterField in applications using and can allow file writes that may lead to remote code execution, while a separate high-severity SQL injection flaw, CVE-2026-132092, is rated critical by at CVSS 4.0 score 9.3.

Orca Security Blog· · High priority

High-severity Django4Shell flaw in GeoDjango lets attackers write files and possibly run code

has released versions 6.1.4, 6.0.11 and 5.2.20 to fix CVE-2026-124827, a high-severity vulnerability in , its geographic data module. The flaw, nicknamed Django4Shell and disclosed on 2 December 2026, could let attackers write files to affected web servers and, in some cases, execute code remotely. Sites using GeoDjango should upgrade promptly.

Sources: NVD and CISA known exploited vulnerabilities catalogue.