
Django Patches Critical Django4Shell RCE Flaw in GeoDjango RasterField
The Django project has issued security updates for versions 6.1.4, 6.0.11, and 5.2.20 to fix seven vulnerabilities, including a critical remote code execution issue tracked as CVE-2026-124827 with a CVSS score of 9.0. The flaw, dubbed Django4shell by researcher Mohamed K. Fathy, stems from an incomplete fix for CVE-2026-87890, which itself was an incomplete patch for CVE-2026-15307 originally addressed in August 2026. CVE-2026-124827 allows attackers to achieve arbitrary file writes by bypassing protections on the RasterField assignment path, enabling the planting of files such as sitecustomize.py or .pth modules that execute on interpreter startup. Exploitation requires staff-level access and the presence of django.contrib.gis with a RasterField exposed through ModelForms or the admin interface, conditions that are met by default in many GeoDjango deployments using standard GDAL builds. The vulnerability affects government, mapping, GIS, agricultural, and environmental platforms that rely on raster data handling. Additional fixes address SQL injection in range and in lookups, a cross-site scripting issue in truncatechars_html, and cache poisoning via dot segments in request paths.
The Hacker NewsDec 2, 2026Translated from English