December 3, 2026 / news

Django Fixes Critical GeoDjango RCE in 6.1.4, 6.0.11, and 5.2.20 — Third Pass on the Same Raster Flaw

Django shipped 6.1.4, 6.0.11, and 5.2.20 on December 2, 2026 with seven security fixes, led by CVE-2026-124827 — a high-severity GDAL RasterField file-write that can yield RCE, the third patch for this code path in 2026.

Title: Django 6.1.4, 6.0.11, and 5.2.20 Close CVE-2026-124827 — Server-Side File Write in GeoDjango RasterField That Can Become RCE

Summary: On December 2, 2026 the Django project issued security releases 6.1.4, 6.0.11, and 5.2.20 covering seven vulnerabilities. The headline flaw is CVE-2026-124827, which Django rates “high” under its own security policy: an application that hands django.contrib.gis.db.models.RasterField a raster definition whose name comes from the user and whose driver is not the default lets the GDAL library place a file wherever the attacker chooses, and some raster drivers turn that arbitrary write into remote code execution. Mohamed K. Fathy, the researcher who reported it, scores it CVSS 9.0 and has coined the name Django4Shell. Since RasterField reuses the CharField form field when no explicit one is defined, the risky path was live out of the box anywhere such a model showed up in the admin, a ModelForm, or a writable model serializer; only PostGIS implementations are in scope, and geometry fields are untouched. The fix takes RasterField out of forms by default (editable now defaults to False) and raises GDALException when a dict or JSON string names a non-default driver — operators who deliberately pass such definitions must wrap them in GDALRaster to mark them trusted. That closes the file write but not server-side request forgery, which Django says is still possible when untrusted input reaches a RasterField, so validating raster input remains on the application. This is the third repair of the same GeoDjango raster area in 2026: CVE-2026-124827 is an incomplete fix for CVE-2026-87890, which itself incompletely patched CVE-2026-15307 back in August. One of the remaining six fixes carries the same “high” rating as the headline flaw: CVE-2026-132092, SQL injection in range and in lookups when queries use aliases or key transforms containing percent signs. The other five are moderate or low — XSS in truncatechars_html, cache poisoning via dot segments, two admin information-leakage bugs, and a GDAL heap buffer overflow. Existing cached responses survive the upgrade, so clear caches that may hold poisoned entries, and move all deployments to one of the three releases promptly.

References:

← All news