On this page
With the December 2 security update of Django there are a total of seven bugs fixed. In the raster definition the name is attacker controlled. So is the non-default driver selection. GDAL saves the file where the attacker specifies. Some drivers will actually execute that file as code on the server. Django published 6.1.4, 6.0.11, 5.2.20 on December 2, 2026. The flaw is present in any older releases on the supported lines.
The issue is CVE-2026-124827. Django severity is high. The bug has been reported by Mohammed Fathy The name is Django4Shell, and is rated 9.0. Not exploited, according to Guard feed from HOL. No mention of exploitation in Django advisory. But the route to the flaw's not so exotic.
The third hole in the same wall.
There have been three patches released in this chain. One of them, CVE-2026-15307, is a file write via spatial lookups vulnerability from August 2026. CVE-2026-87890 in October 2026.
August bug had incomplete patch. It was still possible to forge requests with crafted raster payloads. Both patches monitored values from spatial lookups. RasterField assignment was outside of both fixes. CVE-2026-124827 is just that forgotten path in the same module four months later.
How a normal form gets it.
RasterField just uses the CharField form field. So the RasterField model used to be accessible by default if it was sitting in the admin, ModelForm, or writable model serializer. It didn't even require any weird custom code. Fathy says the attacker has a choice for the path, the content of the file and the name. The only requirement is that you login as staff level. He gave examples like overwriting application source code or placing a web shell in a static directory. One file of Python planted in the working dir will execute on a worker restart.
There are a few apps that are unaffected by the bug.
It is only PostGIS that has RasterField (and it didn't touch the geometry fields). A Django app without any GeoDjango and without RasterField model is not vulnerable. Out of reach: app where none of its admin/ModelForms/writable serializers contains a RasterField, and no untrusted input is ever assigned to it. Six more bugs affect even more apps, simple Django app still requires this update.
Verifying Your Version and Models.
Run first python3 -c "import django; print(django.get_version())" and see if it matches 6.1.4, 6.0.11 and 5.2.20 for your line. Then grep for RasterField in your source code. For each model that uses it, check if it's in the admin, in a ModelForm or writable via a serializer. That is the combination you are looking for. And the one to act on. After the upgrade, search for any files that your team did NOT put in the project or static folder.
Including the SQL injection that went with it
CVE-2026-132092 might be possible SQL injection on range and lookups. Django also has a high severity. You have to have a query that has aliases or key transforms with % signs in it. Incorrect use, meaning the right side of the range in Django above two values. It had to be a bilateral transform for in. Most apps don't have these conditions satisfied. You're building aliases or transforms based on user input? Better jump to the latest version soon. An attacker could inject percent signs. After this patch there need to be precisely two rhs values for the range lookup.
The other five in a nutshell.
A cross site scripting vulnerability was found in truncatechars_html filter with moderate severity denoted as CVE-2026-115868. The bug accepted input as long as truncation length, as an HTML attribute. CVE-2026-125673 is a potential low-severity cache poisoning issue. The normalize of dot paths was not done properly. It was possible to serve the cached response for wrong URL. The attacker doesn't need to be logged in. Cache middleware or cache_page has to be used. Django says that responses that are cached aren't cleaned by upgrade, so you have to clear those caches manually. There's a couple info leaks in the admin changelist for staff users that can see.
First CVE-2026-119642 is the usage of the pk alias in the key of the OneToOneField.
Then the second CVE-2026-127929 is from the usage of reverse relations. The first one automatically applied to all models with multi-table inheritance. Here is low severity heap-buffer-overflow vulnerability in OGRGeometry.wkb. CVE-2026-132809. Large geometries on 64-bit (larger than 4GB) can lead to segmentation faults or undefined behavior.
In simple terms, what this is not.
Not all Django sites show this weakness on the open Internet without any need to login. File write goes through admin/form/serializer, etc and in the reporter's own description, the most prominent condition is that of staff-level authentication. It is not a re-hash of the August problem with a new number. Lookup path is still blocked as it was after the previous fixes. Hole is assignment this time. Same room, different door in.
How to patch CVE-2026-124827
You can update via pip install -U Django==6.1.4. Or 6.0.11 or 5.2.20 for the older lines. RasterField sees two bug fixes in this release. RasterField is editable=False by default now. It gets ignored in ModelForms unless the developer explicitly adds it. If dict or JSON string specifies non-default driver, GDALException is also raised. If there is a good reason to use a different driver, wrap it with GDALRaster. The value is trusted with this wrapper. Before you deploy, read the second change. It's possible for a working raster upload with passing raw defs to break. Django warns about request forgery that can occur by setting untrusted input to RasterField. Raster input is still the app's responsibility to validate. Flush out any caches that might contain poisoned responses due to the dot segment issue. The upgrade keeps cached responses. Django did not run any kind of evaluation on the unsupported series.
They *might* be affected. There's no release to fix for in their line.
HOL's assessment
Someone making fixes in August and October to GeoDjango might think it's been wrapped up. No it wasn't. That's important when you understand how different teams interpret vendor fixes. Each has the name of the path that is fixed. When a new problem appears in the same component, what are the other ways to get to the same sink? For RasterField, the answer was setting it in a form. Simplest way possible. You can get RasterField through forms and admin, so leave it as open until you patch it. Proof of this is available in the Guard page for CVE-2026-124827.
How to download Guard?
HOL Guard is open source and free. You can download Guard Desktop from https://hol.org/guard/install for macOS 13+ on Apple Silicon, Windows x64, Linux x86_64 without using terminal. Same page has a one-line terminal install too. After installing, hol-guard doctor will tell you that daemon is started and the intercept layer is up and working.
Related: PHP November 2026 security release · LiteLLM MCP stdio command injection (CVE-2026-136535) · nginx HTTP/2 server takeover (CVE-2026-123007)
Sources
Django security releases issued December 2, 2026: https://www.djangoproject.com/weblog/2026/dec/02/security-releases/
Django archive of security issues: https://docs.djangoproject.com/en/dev/releases/security/
The Hacker News on Django4Shell, December 2, 2026: https://thehackernews.com/2026/12/new-django4shell-vulnerability-enables.html
How do I fix CVE-2026-124827?
Upgrade Django. Use 6.1.4, 6.0.11, 5.2.20. RasterField then sets editable to False by default. If the driver name is a dict (or a JSON string) with something other than a default driver, GDALException is raised. Other driver code has to surround it with GDALRaster definition. Flush out any caches that may have cached poisoned responses. They aren't cleared during an upgrade.
Which Django versions are impacted by CVE-2026-124827?
For Django 6.1 (before 6.1.4), 6.0 (before 6.0.11) and 5.2 (before 5.2.20) when using RasterField on PostGIS for a model. Maybe the previous unsupported series (that Django didn't evaluate) is in the same situation too.
Is CVE-2026-124827 in the wild?
However, there was no known exploitation given when Django released it on December 2, 2026. HOL lists the issue on their Guard feed as not being known to be exploited. Django in their advisory does not mention exploitation either.