Django Releases Security Updates Fixing High-Severity Django4Shell RCE in GeoDjango

Django maintainers have issued versions 6.1.4, 6.0.11, and 5.2.20 to address seven vulnerabilities, including the high-severity CVE-2026-124827 known as Django4Shell. The flaw resides in the GeoDjango RasterField component and stems from insufficient validation of user-controlled raster data, enabling an authenticated attacker to write arbitrary files to any accessible server path. This can lead to remote code execution through multiple vectors such as dropping Python files, overwriting source code, or deploying web shells. The issue represents an incomplete remediation of earlier vulnerabilities CVE-2026-87890 and CVE-2026-15307, both of which also involved server-side file write and request forgery problems. Applications using PostGIS with RasterField exposed via the admin, ModelForms, or writable serializers are particularly at risk. Orca Security notes that exploitation is possible via crafted JSON raster bodies leveraging a user-controlled name parameter and non-default GDAL drivers. The updates also resolve additional issues including XSS, cache poisoning, information disclosure, heap buffer overflow, and SQL injection.

SecurityWeekTranslated from English

Read at source

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.

Meridian digestThe week's most consequential security stories, distilled into one briefing.See the digest

More in Vulns & Exploits

Critical vBulletin Remote Code Execution Flaw Enables Unauthenticated Command Execution
CISA Adds CVE-2026-87887 Acronis Backup Incorrect Authorization Vulnerability to Known Exploited Vulnerabilities Catalog
Critical 21-Year-Old Linux Kernel Flaw CVE-2026-139281 Allows Remote IPv6 Firewall Bypass