Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate with low privileges to GeoDjango app
-
ExploitSubmit crafted raster dict/JSON with non-MEM driver and controlled path
-
ExecutionRasterField writes file at attacker-controlled location
-
ImpactDriver-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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv2 – 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)
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
Affected Packages
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
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
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.
Primary rating from Vendor (DSF).
CVSS VectorVendor: DSF
Lifecycle Timeline
3DescriptionCVE.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
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.
Apply vendor patch.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
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
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
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
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
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
An authentication/authorization bypass in the djust Python live-view framework (versions prior to 1.0.7) lets unauthenti
Unauthenticated arbitrary Python module import in djust before 1.0.7 lets any client that can reach the WebSocket or SSE
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
Cross-site scripting (XSS) vulnerability in the dismissChangeRelatedObjectPopup function in contrib/admin/static/admin/j
Forged content modification in django-page-cms through 2.0.13 lets unauthenticated remote attackers exploit five CSRF-ex
Cross-site request forgery in djust's Server-Sent-Events transport affects all versions prior to 1.0.7 and allows a cros
Unauthenticated remote attackers can read live Django view and session state and invoke server-side handlers through dju
EUVD-2026-141381
GHSA-fh3p-824r-m74q
NVD
CVE.org
Vulnrichment
Exploit-DB