Django has released 6.1.4, 6.0.11 and 5.2.20 to fix seven security issues. The headline is CVE-2026-124827 (CVSS 9.0), which researcher Mohamed K. Fathy calls Django4Shell.
It’s the third try at the same hole in GeoDjango’s raster handling. The August fix for CVE-2026-15307 (server-side file writes) was incomplete, which led to CVE-2026-87890 (SSRF via crafted GDAL VRT payloads) in October. That fix didn’t cover the RasterField assignment path. Per Fathy, the attacker “controls the target path, file content, and filename via a crafted JSON raster body.” Drop a sitecustomize.py into the worker’s working directory, and Python runs it automatically on the next reload, gunicorn fork, cron job or subprocess, with the web server user’s privileges.
Who should care
Only apps that use GeoDjango (django.contrib.gis) with raster fields fed by user input. If that’s you, upgrade now. Either way, upgrade anyway for the other six fixes.
python -m pip show django | grep -i ^version
python -m pip install --upgrade "django>=6.1.4" # or 6.0.11 / 5.2.20 on older branches
My take
Three patches for the same bug class means this one Needs Garlic. After you upgrade, run your web worker as a user that can’t write to its own code or site-packages directories. That one habit turns a lot of “RCE” bugs into “annoying” bugs.
God Bless, and Needs Garlic!