
Django releases 6.1.4, 6.0.11 and 5.2.20 to fix CVE-2026-124827 GeoDjango RCE
Django released updates fixing seven flaws, including CVE-2026-124827, a CVSS 9.0 GeoDjango RCE issue. The vulnerability extends prior incomplete raster fixes and can be reachable through default admin or ModelForm paths. It matters because exposed GIS applications could suffer file writes that lead to code execution under the web server.
Django maintainers published versions 6.1.4, 6.0.11 and 5.2.20 to address seven security issues, including CVE-2026-124827, a critical flaw in GeoDjango's RasterField model. The advisory says the bug can let an attacker write files to paths selected through a crafted JSON raster body, and it is reachable by default when RasterField is exposed in the admin, ModelForms or writable serializers. The advisory does not report active exploitation.
Evidence for the severity comes from the CVE record, which assigns CVSS 9.0, and from the chain of prior fixes. CVE-2026-124827 is described as an incomplete fix for CVE-2026-87890, itself an incomplete patch for CVE-2026-15307, a GeoDjango raster parsing issue from August 2026. Researcher Mohamed K. Fathy named the new issue Django4shell and said the target path, filename and content can be controlled. The Django advisory confirms the RasterField fallback to CharField, while the Django4shell label comes from the researcher rather than Django.
The recurrence of incomplete GeoDjango fixes shows how a narrow patch can leave adjacent code paths open. Earlier issues covered spatial lookup raster parsing and SSRF through GDAL VRT payloads, while the new advisory points to RasterField assignment. Fathy said three of four exploitation preconditions are met by default in standard deployments: RasterField models, admin or ModelForm exposure, and the EHdr driver in standard GDAL builds. The fourth is a writable target path.
The stakes center on web servers running Django with GeoDjango for mapping, government, agricultural or environmental work. The advisory says the flaw could let an attacker overwrite source code, drop web shells into static directories, corrupt configuration files, read secrets, or plant sitecustomize.py and.pth files that execute when Python starts. That moves a file-write bug into privileged code execution under the web server's OS user. Django has released fixes for the flaw.
It affects Django sites using GeoDjango RasterField, especially mapping, government, agricultural and environmental platforms. If unpatched, an attacker could write files that Python executes, exposing secrets and web-server privileges.
Sources (1)
- [1]New Django4Shell Vulnerability Enables Django RCE via GeoDjango Form Validation(https://thehackernews.com/2026/12/new-django4shell-vulnerability-enables.html)