Django's December 2 security release fixes seven bugs. Two are rated High: a SQL injection in the range and in lookups, and a file write through RasterField on PostGIS that can lead to remote code execution. No public exploit or in-the-wild use yet.
python -m django --version or pip show django inside the container.All seven fixes ship in the same three releases. The RasterField file write (CVE-2026-124827) also affects every Django before 5.2. Those versions are out of support and get no fix, so move to a supported line.
6.1.0 – 6.1.36.1.4Affected6.0.0 – 6.0.106.0.11Affected5.2.0 – 5.2.195.2.20Affectedall versionsNo fix. Upgrade to 5.2.20+AffectedUpdateCacheMiddleware and cache_page().Sources: Django security release, Dec 2 2026 · NVD CVE-2026-132092 · NVD CVE-2026-124827
Running an affected version isn't the whole story. Each bug needs a certain pattern in your app. Here is what has to be true, and what we've confirmed so far.
RasterField only exists there. Geometry fields aren't affected.name and pick a non-default GDAL driver. Reachable by default through the admin, ModelForms and writable serializers.RasterField. Validate it.%.__range called with more than two values, or __in combined with a bilateral transform.The two High bugs drive the urgency. The rest are worth knowing, especially if you cache pages or give staff accounts admin access.
CVE-2026-132092SQL injection in range/in lookups with % in aliases or key transformsHighCVE-2026-124827File write → RCE via RasterField assignment on PostGISHighCVE-2026-115868XSS in truncatechars_html when output lands in an HTML attributeModerateCVE-2026-125673Cache poisoning via ./.. segments in request paths. Clear caches after upgrading.LowCVE-2026-119642Admin data leak via pk alias on OneToOneField primary keys (staff only)LowCVE-2026-127929Admin data leak via reverse relations in changelist lookups (staff only)LowCVE-2026-132809Heap overflow in OGRGeometry.wkb for geometries over 4 GBLowEvery Django install: requirements.txt, lock files, and the packages baked into container images.
Internet-facing apps first. Bump anything on PostGIS with RasterField in the admin, a form or a writable API to the top.
Upgrade within your line, for example:
pip install "Django>=5.2.20,<5.3"Clear page caches, then hunt for odd raster uploads and query-string abuse. See detection below.
class SiteForm(forms.ModelForm):
class Meta:
model = Site
exclude = ["raster"] # keep RasterField out of forms, admin and serializers
That matches the new default in 6.1.4/6.0.11/5.2.20 (editable=False). Upgrading is still the fix.
Draft signals from the advisory. We'll swap in lab-validated rules once we've reproduced both bugs.
Requests that set a raster field to JSON with a non-default driver and a name that looks like a file path.
"driver":"GTiff" … "name":"/app/…"
The Python web worker writing new files outside its media or temp folders, especially .py files or anything under the app's own code tree.
gunicorn → write /app/**/*.py
Filter parameters that pass __range more than two values, or % inside JSON key lookups, on APIs that expose ORM filtering.
?price__range=1,2,3 · ?data__k%25ey__in=…
Security release 6.1.4, 6.0.11 and 5.2.20 ship, fixing 7 CVEs.
Scores published: 9.8 for the SQL injection, 8.8 for the RasterField file write.
Upwind opens an investigation, maps exposure across customer environments and starts lab reproduction.
We'll update this page with lab results, validated detections, and any public exploit.
Upwind shows which workloads run an affected Django, whether they're reachable from the internet, and which use PostGIS, with runtime detection for unexpected file writes and post-exploitation behavior.