New Django4Shell Vulnerability Enables Django RCE via GeoDjango Form Validation
PatchDjangoGeoDjango (django.contrib.gis)Our summary
Django's core team has shipped versions 6.1.4, 6.0.11, and 5.2.20, fixing seven security issues including a critical bug dubbed Django4Shell by researcher Mohamed K. Fathy of Robusta Technology Group. Tracked as CVE-2026-124827 (CVSS 9.0), it marks the third attempt to fully close a chain of flaws in GeoDjango's raster-handling code, following incomplete fixes for CVE-2026-87890 and the original CVE-2026-15307 disclosed back in August 2026. The new flaw lives in the RasterField assignment path within django.contrib.gis, where a staff-authenticated user can submit a crafted JSON raster payload to control the write path, filename, and content, letting GDAL drop files such as sitecustomize.py that execute automatically at Python startup with the web server's privileges. Because RasterField defaults to admin and ModelForm exposure and the vulnerable EHdr GDAL driver ships in virtually every build, Fathy warns that most GeoDjango deployments using raster data are affected out of the box; the release also patches an SQL injection (CVE-2026-132092), an XSS issue in truncatechars_html (CVE-2026-115868), and a request-path cache poisoning bug (CVE-2026-125673).
The Hacker News publishes this story on its own site; we link to it rather than reprint it.
Worried this affects your company?
Discuss a security assessment of your internet-facing systems. Scope agreed before testing.