Skip to main content

Django CVE-2026-124827

| EUVDEUVD-2026-141381 HIGH
External Control of File Name or Path (CWE-73)
2026-12-02 DSF GHSA-fh3p-824r-m74q
8.7
CVSS 4.0 · Vendor: DSF
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate with low privileges to GeoDjango app
  2. Exploit
    Submit crafted raster dict/JSON with non-MEM driver and controlled path
  3. Execution
    RasterField writes file at attacker-controlled location
  4. Impact
    Driver-dependent escalation to code execution

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V5 - File Handling File name/path control
Exploitation Conditions

Exploitation requires an application that uses django.contrib.gis.db.models.RasterField AND assigns attacker-influenced dict objects or JSON strings directly to that field without custom validation. The attacker must supply a raster data definition specifying a non-default GDAL driver (anything other than the in-memory 'MEM' driver) and an attacker-controlled name/path value, causing a file to be written at that location; escalation to code execution is driver-dependent. Per the CVSS vector (PR:L), low-privileged authentication is required. Limiting factors: deployments that do not use GeoDjango raster fields are not affected; applications that only accept trusted input or that already wrap values explicitly in GDALRaster are not newly exposed; and the RCE outcome depends on which raster driver the attacker can invoke. The complete fix is upgrading to Django 5.2.20, 6.0.11, or 6.1.4 - the patch restricts dict/JSON assignments to the MEM driver but, per the vendor, does not prevent network requests, so untrusted input should still receive custom validation.

Impact

This is a genuinely serious, real-world-relevant flaw but not a drop-everything emergency based on the supplied signals. The vendor CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H) scores 8.7 (High): network-reachable, low attack complexity, no user interaction, with high impact to confidentiality, integrity and availability - consistent with CWE-73 (external control of file name/path) escalating to potential remote code execution. The one meaningful brake is PR:L: the vector states low-privileged authentication is required, so this is not a fully unauthenticated flaw. The input shows no EPSS score, no CISA KEV listing, and no PoC/exploit reference, so there is no public exploit identified at time of analysis and no evidence of active exploitation - the elevated score is driven by impact, not by observed in-the-wild activity. The vuln.today decision label is 'this_week' (not act_now/emergency), which aligns with 'high severity, patch promptly but no confirmed exploitation.' Important caveat: the base CVSS assumes the vulnerable code path is reachable, but exploitation is conditional on the application actually assigning untrusted dict/JSON input to a GeoDjango RasterField with a non-default driver - many Django deployments do not use django.contrib.gis at all, which lowers practical exposure well below what the raw 8.7 implies.

Exploit ScenarioDerived

An attacker with low-privileged authenticated access to an application that assigns user-controlled dict objects or JSON strings to a django.contrib.gis RasterField submits a raster data definition specifying a non-default GDAL driver (e.g. a disk-writing driver) together with a controlled name/path. Because GDALRaster opens rasters in write mode, Django creates a file at the attacker-chosen location, and depending on the raster driver this file write can be leveraged into remote code execution. No public exploit identified at time of analysis; the network vector and low complexity make exploitation straightforward where the vulnerable input path exists.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv2 – Dec 02, 2026

GeoDjango's RasterField in Django 5.2 before 5.2.20, 6.0 before 6.0.11, and 6.1 before 6.1.4 will create files at attacker-chosen paths when an application assigns an attacker-influenced dict or JSON data definition to the field, because the 'name' parameter is passed through to the underlying GDAL raster driver unchecked; depending on which driver is invoked this can escalate to remote code execution. The flaw is only reachable in applications that use django.contrib.gis.db.models.RasterField and feed it untrusted raster definitions without custom validation, and per the CVSS vector (PR:L) an attacker needs low-privileged authentication. No public exploit code or active exploitation was identified at time of analysis, and the vendor has released fixed versions 5.2.20, 6.0.11 and 6.1.4.

Earlier versions of this analysis (1)
v1 Dec 02, 2026 - 13:46 CVSS 8.8

GeoDjango's RasterField in Django 6.1 before 6.1.4, 6.0 before 6.0.11, and 5.2 before 5.2.20 can create files at attacker-chosen locations, and depending on the GDAL raster driver involved this may escalate to remote code execution. Only applications that use django.contrib.gis with a RasterField (which requires GDAL) and that assign untrusted dict objects or JSON strings directly to that field are exposed; the vector requires authenticated access (PR:L) and the weakness is a developer-dependent misuse pattern rather than default Django behaviour. No public exploit has been identified at time of analysis, and vendor-released patch versions 6.1.4, 6.0.11 and 5.2.20 are available.

RemediationAI

Upgrade to Django 5.2.20, 6.0.11 or 6.1.4, the versions containing the fix commits referenced in the advisory (https://www.djangoproject.com/weblog/2026/dec/02/security-releases/ and https://docs.djangoproject.com/en/dev/releases/security/). Two caveats matter: projects on unsupported branches (5.1.x, 5.0.x, 4.2.x) were not evaluated by the vendor and should be moved onto a supported, patched series. Applying the patch is necessary but not sufficient for applications that accept untrusted raster input, because the fix only restricts dict/JSON data definitions to the in-memory 'MEM' driver and, per the vendor, does not prevent network requests - so any code path that passes attacker-influenced definitions to RasterField still needs custom validation, and the trade-off of dropping dict/JSON support for other drivers is that callers who genuinely need e.g. GeoTIFF output must explicitly construct a GDALRaster object, which the documentation treats as the signal that file writing is acceptable. Applications that cannot upgrade immediately can limit exposure by ensuring RasterField only ever receives trusted values or pre-wrapped GDALRaster instances, at the cost of losing the convenience of accepting raw dict/JSON definitions.

Affected VersionsENISA

Django 5.2 <5.2.20
Django 6.1 <6.1.4
Django 6.0 <6.0.11

Affected Packages

euvd django fix: 5.2.20, 6.0.11, 6.1.4

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Django's GeoDjango subsystem wraps the GDAL/OGR raster library. A RasterField stores raster data and, on assignment, implicitly converts the supplied value into a gdal.GDALRaster object; GDALRaster accepts a dict (or a JSON string equivalent) describing a dataset - including a 'driver' key and a 'name' key - and opens that dataset in write mode. Because 'name' is interpreted by the chosen GDAL driver as a filesystem path (or, for some drivers, a remote resource), a non-'MEM' driver lets the caller cause a file to be created at a location of their choosing. This is CWE-73 (External Control of File Name or Path); the code-execution outcome is not intrinsic to the file write but depends on which driver the attacker can reach. The fix (commits a3934abd, b70d0988, 6b5d29ea, 02d09443) makes RasterField default to editable=False, adjusts deconstruct accordingly, and adds an init_raster hook that preprocesses the input and raises a GDALException when a dict/JSON definition requests any driver other than the in-memory 'MEM' driver; values explicitly wrapped in GDALRaster() are still permitted to use other drivers. The documentation notes this restriction prevents file writes but does not prevent network requests, so untrusted input still requires custom validation. Deployments that do not use GeoDjango raster fields, or that only pass trusted input or pre-wrapped GDALRaster objects, are not newly exposed.

Know when Django gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (DSF) PRIMARY 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
vuln.today AI 8.8 HIGH

PR:L because exploitation requires a low-privileged authenticated path to submit data to a RasterField; AV:N/AC:L as crafted input deterministically triggers the file write, with high impact from potential RCE.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (DSF).

CVSS VectorVendor: DSF

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

3
Analysis Updated
Dec 02, 2026 - 14:30 vuln.today
v2 - CVSS changed
CVSS changed
Dec 02, 2026 - 14:22 NVD
8.8 (HIGH) 8.7 (HIGH)
CVE Published
Dec 02, 2026 - 13:20 cve.org
HIGH 8.8

DescriptionCVE.org

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.

Executive ViewAI

Why It Matters

GeoDjango's RasterField vulnerability (CVE-2026-124827) allows authenticated low-privileged users to write files to arbitrary locations, potentially leading to remote code execution in applications that process untrusted raster definitions. This poses a significant risk to organizations using affected Django versions in GIS-enabled applications, as a compromised low-privilege account could escalate to full system compromise.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

Prevalence
High
Django is a very widely deployed web framework, though GIS raster fields are niche
Data Quality
4 sources
Confidence: Medium
EUVD NVD CVE.org Vulnrichment GitHub

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS N/A
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

44
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

More in Django

View all
CVE-2021-23336 MEDIUM POC
5.9 Feb 15

The package python/cpython from 0 and before 3.6.13, from 3.7.0 and before 3.7.10, from 3.8.0 and before 3.8.8, from 3.9

CVE-2017-12794 MEDIUM POC
6.1 Sep 07

In Django 1.10.x before 1.10.8 and 1.11.x before 1.11.5, HTML autoescaping was disabled in a portion of the template for

CVE-2022-34265 CRITICAL POC
9.8 Jul 04

An issue was discovered in Django 3.2 before 3.2.14 and 4.0 before 4.0.6. Rated critical severity (CVSS 9.8), this vulne

CVE-2021-35042 CRITICAL POC
9.8 Jul 02

Django 3.1.x before 3.1.13 and 3.2.x before 3.2.5 allows QuerySet.order_by SQL injection if order_by is untrusted input

CVE-2019-19844 CRITICAL POC
9.8 Dec 18

Django before 1.11.27, 2.x before 2.2.9, and 3.x before 3.0.1 allows account takeover. Rated critical severity (CVSS 9.8

CVE-2026-61594 CRITICAL POC
9.1 Sep 16

An authentication/authorization bypass in the djust Python live-view framework (versions prior to 1.0.7) lets unauthenti

CVE-2026-61599 HIGH POC
8.8 Sep 16

Unauthenticated arbitrary Python module import in djust before 1.0.7 lets any client that can reach the WebSocket or SSE

CVE-2020-9402 HIGH POC
8.8 Mar 05

Django 1.11 before 1.11.29, 2.2 before 2.2.11, and 3.0 before 3.0.4 allows SQL Injection if untrusted data is used as a

CVE-2016-6186 MEDIUM POC
6.1 Aug 05

Cross-site scripting (XSS) vulnerability in the dismissChangeRelatedObjectPopup function in contrib/admin/static/admin/j

CVE-2026-93456 HIGH POC
8.4 Sep 18

Forged content modification in django-page-cms through 2.0.13 lets unauthenticated remote attackers exploit five CSRF-ex

CVE-2026-61593 HIGH POC
8.1 Sep 16

Cross-site request forgery in djust's Server-Sent-Events transport affects all versions prior to 1.0.7 and allows a cros

CVE-2026-61590 HIGH POC
7.4 Sep 16

Unauthenticated remote attackers can read live Django view and session state and invoke server-side handlers through dju

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy