Django has released new security updates addressing a high-severity vulnerability that could lead to remote code execution (RCE). The open-source Python-based web framework uses a model-template-views architecture and is widely adopted for building web applications.
On Wednesday, maintainers published Django versions 6.1.4, 6.0.11, and 5.2.20, resolving seven security issues. Among them is CVE-2026-124827 (CVSS 8.8), dubbed Django4Shell, which includes publicly available proof-of-concept details.
The defect affects the GeoDjango RasterField component. Insufficient validation of user-controlled raster data allows an authenticated attacker to write arbitrary files to any accessible path on the server, potentially enabling RCE through multiple attack vectors.
Because RasterField falls back to the CharField form field, the flaw is reachable by default on models with RasterField registered in the admin or using ModelForms or writable model serializers.
The vulnerability is an incomplete fix for CVE-2026-87890, a server-side request forgery issue patched in October, which itself was an incomplete fix for CVE-2026-15307, a server-side file-write and request forgery bug patched in August. Protections from earlier patches do not extend to the RasterField assignment path.
Any GeoDjango application running on PostGIS that defines a RasterField may be vulnerable, especially those exposing the field via the Django admin, ModelForms, or writable model serializers. Attackers could exploit the flaw through a crafted JSON raster body containing a user-controlled name parameter and a non-default GDAL driver.
Possible impacts include dropping Python files into the working directory, writing files to site-packages, overwriting source code, deploying web shells, or corrupting configuration files. The updates also resolve XSS, cache poisoning, information disclosure, heap buffer overflow, and SQL injection vulnerabilities.


