The Django team released security updates 6.1.4, 6.0.11, and 5.2.20 on Wednesday (December 2, 2026) to patch seven vulnerabilities, headlined by a critical flaw dubbed Django4Shell (CVE-2026-124827, CVSS 9.0). The issue affects the GeoDjango module in applications using django.contrib.gis.db.models.RasterField with PostGIS and the GDAL library.
Why the flaw remained open since August
Reported by Mohamed K. Fathy, head of cybersecurity at Robusta Technology Group, the vulnerability stems from an incomplete August 2026 fix for CVE-2026-15307, according to Upwind Security and The Hacker News. While spatial lookups were secured in the earlier patch, direct assignment to RasterField through ModelForm, the Django admin, or writable serializers remained exposed.
By supplying a crafted JSON raster payload that specifies a non-default GDAL driver, an attacker could trigger arbitrary server-side file writes, creating a path to drop web shells and achieve remote code execution (RCE).
What changes in the Django patches
According to the official Django security release notice, the updates introduce two core safeguards:
- Non-editable by default:
RasterFieldnow defaults toeditable=False, excluding it fromModelFormand the admin interface unless developers explicitly include it. - Non-default driver rejection: assigning a dictionary or JSON string that specifies a non-default GDAL driver now raises a
GDALException.
The December 2 releases also address an XSS flaw in truncatechars_html (CVE-2026-115868) and an SQL injection bug (CVE-2026-132092). As of release time, no public PoC exploits, active in-the-wild attacks, or CISA KEV listings have been reported.
By Spark