New Django4Shell Vulnerability Enables Django RCE via GeoDjango Form Validation
AI Summary
A critical remote code execution vulnerability, CVE-2026-124827 (Django4Shell), affects Django's GeoDjango module due to insecure handling of raster data in RasterField assignments. The flaw allows attackers with staff-level access to write arbitrary files—such as Python startup hooks like sitecustomize.py or .pth files—into privileged locations, enabling code execution upon server restart or worker fork. The vulnerability exploits incomplete fixes for prior issues CVE-2026-87890 and CVE-2026-15307, and is exploitable via crafted JSON raster payloads when GDAL's EHdr driver is present and writable paths exist. Django maintainers have released patched versions 6.1.4, 6.0.11, and 5.2.20 to address this and several other vulnerabilities.
AI-extracted · verify before operational use