High 8.8
Django Software Foundation · Django · CVE-2026-124827
Django4Shell: Django sites that use GeoDjango raster fields could let a user write files to the server
Django, a popular framework for building websites in Python, has released updates fixing seven flaws. The lead one, named Django4Shell by the researcher who found it, is in the mapping add-on GeoDjango: where a site has a RasterField that can be edited through the admin, a form or an API, a user could make the server write a file to a place of their choosing, which can lead to running code on it. Django rates it high and its CVE record scores it 8.8; the researcher says a staff-level login is the main requirement. The same updates fix a high-severity SQL injection (CVE-2026-132092) that applies only to particular query patterns. No attacks have been reported.
- Affected
- Django 6.1 before 6.1.4, 6.0 before 6.0.11 and 5.2 before 5.2.20. Django4Shell only applies to sites that use GeoDjango (django.contrib.gis) with a RasterField, which works only on PostGIS databases; ordinary geometry fields are not affected. The other six flaws, including the SQL injection in range and in lookups and a cross-site scripting flaw in the truncatechars_html filter, depend on how a site's own code is written.
- What to do
- Update to Django 6.1.4, 6.0.11 or 5.2.20 and redeploy. After the update RasterField is no longer editable by default, and code that supplies raster definitions with a non-default driver has to wrap them in GDALRaster, so test first if you use raster fields. Django says the range lookup now needs exactly two values. If you use Django's cache middleware or cache_page, clear the cache after upgrading, as Django advises for the cache poisoning fix (CVE-2026-125673). If an agency or developer maintains a Django site for you, ask them to confirm it has been updated.General information summarised from the vendor's advisory at the time of writing, not professional advice. Check the vendor's current advisory before acting.
- Why it’s here
- Security releases for a web framework behind many business sites and web apps, with a named flaw that is getting press coverage; narrow conditions, and fixes are out.
