Django · Release roundup · 7 CVEs
Django Dec release
Patch now if…RoundupPublic exploit needs an editable GeoDjango RasterField.
TL;DR
Django fixed seven bugs on 2 Dec 2026. Django4Shell has a public exploit that writes files and can run code, but only via a GeoDjango RasterField users can edit; no attacks seen. The 9.8 SQL injection needs a specific query pattern; update Django.
More details
Django rates two bugs high (Django4Shell and the SQL injection), one moderate and four low. Mohammed Fathy reported Django4Shell; per the public exploit, GDAL writes the file before anything is saved and the code runs the next time Python starts, for example on a worker restart. Django's August and October fixes covered GeoDjango's spatial lookups, not assigning a value to RasterField.
How scary is it?
The bugs 7 advisories
HighDjango Django4Shell: file write via RasterFieldPatch now if…
Only with GeoDjango's RasterField (PostGIS) editable in the admin, a ModelForm or a writable serializer. A crafted raster value with a non-default driver makes GDAL write a file where the attacker chooses; Django says this "could enable remote code execution" depending on the driver. A public exploit logs in as staff; no attacks reported.
HighDjango SQL injection in range and in lookupsPatch now if…
Only in queries with aliases or key transforms containing percent signs, and then only with more than two values passed to __range (a misuse) or a bilateral transform on __in. The CVE record scores it 9.8; Django rates it high.
1 medium and 4 low: opt-in features or low impact
- MediumDjangoCVE-2026-115868
- LowDjangoCVE-2026-125673
- LowDjangoCVE-2026-119642
- LowDjangoCVE-2026-127929
- LowDjangoCVE-2026-132809
Are you affected? only if all are true
1Django before 6.1.4 / 6.0.11 / 5.2.20command
Every earlier 6.1, 6.0 and 5.2 release; all seven bugs need this. Django didn't evaluate its unsupported series (5.1, 5.0, 4.2 and older), which "may also be affected" and get no fixes. This checklist covers Django4Shell, the bug behind the verdict; the other six need other features: the range and in lookups, the truncatechars_html filter or Truncator.chars(html=True), the cache middleware or cache_page(), the admin change list and GeoDjango's OGRGeometry.1,2,6
python -m django --version2You use GeoDjango's RasterFieldcommand
A model with django.contrib.gis.db.models.RasterField. It exists only on PostGIS; geometry fields aren't affected.1
grep -rn "RasterField" --include="*.py" .3Someone untrusted can edit it
RasterField was editable by default and fell back to a plain text form field, so it was reachable on any model registered in the admin or used in a ModelForm or writable serializer. Who can attack depends on who can submit that form: through the admin that's a staff login, which is what the public exploit uses; a form open to ordinary users or the public lowers the bar.1,2,4
What to do
1Upgrade to 6.1.4, 6.0.11 or 5.2.20
Released 2 Dec 2026, these fix all seven bugs. Django 4.2 LTS support ended on 7 Apr 2026 and 5.1 on 3 Dec 2025; they got no release, so move to a supported line. After upgrading, RasterField defaults to editable=False and is left out of a ModelForm unless explicitly included, and assigning a dict or JSON string with a non-default driver raises GDALException.1,9,6
Latest safe versions checked 3 Dec
2Can't upgrade yet: lock RasterField
The exploit's author suggests setting editable=False on each RasterField yourself (what the fix makes the default) or removing or restricting admin access to models that have one.4,1
3Validate raster input anyway
The fix stops file writes, not network requests: Django says server-side request forgery is still possible if untrusted input is assigned to RasterField, and to validate it before accepting it. To use another driver on purpose, wrap the trusted value in GDALRaster.1,5
4Cache users: clear caches
If you use the cache middleware or cache_page(), clear any caches that might be affected after upgrading: Django says responses already poisoned through dot segments in the path (CVE-2026-125673) aren't invalidated by the upgrade.1
5Read the scores with care
The 9.8 on the SQL injection is the CVSS 3.1 score in Django's CVE record; Django's own rating is high. The bug needs queries with aliases or key transforms containing percent signs, plus either more than two values passed to __range (a misuse) or a bilateral transform with __in; Django deprecated percent signs in aliases and key transforms in 6.0. Our reading: the 9.8 assumes that code is already in your app. Django4Shell is 8.8 there; the exploit's README says 9.0.3,1,2,4
This page shows you how to check. It can't tell you you're safe.
Sources (9) and changelog
- Django: 2 Dec 2026 security releases, all seven bugs, ratings and fixed versions 2 Dec
- CVE record CVE-2026-124827: Django "high", CVSS 8.8, CISA exploitation none, older series not evaluated
- CVE record CVE-2026-132092: Django "high", CVSS 9.8
- Joshua van der Poll: public Django4Shell exploit, staff login, runs on next restart 2 Dec
- Django docs: GDAL raster security considerations, file writes blocked but not network requests
- Django: supported versions, 4.2 support ended 7 Apr 2026
- Django security archive: August and October fixes covered spatial lookups
- CISA KEV catalog: none of the seven listed
- PyPI: Django 6.1.4, 6.0.11 and 5.2.20 released 2 Dec 2026
- Published.