Django4Shell Flaw Enables GeoDjango File Writes and Potential Remote Code Execution
Vulnerability Disclosure · 44 sources · Updated 36m ago · First seen Dec 2, 2026

Django released versions 6.1.4, 6.0.11 and 5.2.20 to fix seven security vulnerabilities, including CVE-2026-124827, dubbed Django4Shell. The GeoDjango flaw allows attackers who can submit malicious raster definitions to an exposed RasterField assignment path to write arbitrary files through GDAL and potentially execute code with web-server privileges. Django rates the issue high severity, while reporting researcher Mohamed K. Fathy considers it critical; a CVSS score of 9.0 has been reported. Exploitation requires an exposed input, a suitable GDAL driver and a writable destination; the standard Django admin attack path requires staff-level authentication. No known exploitation was reported at publication.
The vulnerability affects raster assignment through exposed admin fields, ModelForms and writable serializers, rather than the spatial-query paths covered by earlier fixes for CVE-2026-15307 and CVE-2026-87890, which addressed raster-related file writes and server-side request forgery. The new patch restricts raster drivers and makes RasterField non-editable by default, although untrusted raster assignments can still pose server-side request forgery risks. Organizations should upgrade affected deployments promptly and review application paths that accept untrusted raster data. The releases also fix six other vulnerabilities, including SQL injection, potential cross-site scripting and cache poisoning.
Why it matters
Exposed GeoDjango applications risk attacker-controlled file writes and potential web-server compromise; separately, vulnerable Django ORM queries can expose databases to SQL injection.
Django4Shell can enable source-code modification, configuration corruption, or planted Python startup files, with code execution dependent on GDAL drivers, filesystem permissions, and subsequent execution/loading. The separate SQL injection vulnerability can affect applications without GeoDjango, but requires specific query-construction patterns. These are conditional exposures, not evidence that every Django deployment is exploitable. Django advisory, execution mechanics
Public proof-of-concept details for Django4Shell are available. An earlier Upwind report stated that none were public, but subsequent reporting and the supplied researcher disclosure establish availability. No confirmed in-the-wild exploitation or named compromised organizations are established by the supplied content; absence of reporting is not proof of no exploitation. earlier report, later reporting, researcher disclosure, incident-reporting status
Industry-specific impact is not established. Government, mapping, agricultural, and environmental platforms are mentioned as common users of raster functionality, but no affected organization, sector-targeted activity, or sector-specific incident is identified. usage context
Geography-specific impact is not established. National advisories describe product exposure and update recommendations, not confirmed affected operations, geographic targeting, or jurisdiction-specific obligations. Canadian advisory, Guyana advisory


