Django Vulnerability CVE-2026-124827: GeoDjango RasterField Flaw Can Write Files to an Attacker-Chosen Location, and the Fixed Versions to Install
Django has fixed CVE-2026-124827, a high-severity flaw in GeoDjango's RasterField that could make GDAL write a file to a location an attacker controls. Update to 6.1.4, 6.0.11 or 5.2.20.
Where Worldwide
On this page 8 sections
A newly published flaw in Django, the Python web framework, can make a server write a file to a location an attacker controls. It affects apps that use GeoDjango's RasterField. Django released fixed versions on Dec. 2, 2026. Any business running a Django website, customer portal or internal tool should check its version and update this week.
What happened with the Django RasterField vulnerability
On Dec. 2, 2026, the Django team published security releases for CVE-2026-124827, titled "Server-side file-write via RasterField assignment". Django's announcement says the issue "could cause GDAL to write a file to an attacker-controlled location."
Django rates the issue high under its own security policy. Its announcement does not give a CVSS score. HeroDevs published a write-up on the flaw and reports that NVD scores it 8.7.
The fixes are in Django 6.1.4, Django 6.0.11 and Django 5.2.20. Django credits Mohammed Fathy with reporting the issue.
The same announcement also lists a second identifier, CVE-2026-132809. This article covers CVE-2026-124827 only. Read Django's announcement for the details of the other entry.
What is confirmed and what is only reported
With a fresh vulnerability, it helps to keep what the vendor says apart from what others report.
Confirmed in Django's own announcement:
- The identifier CVE-2026-124827 and the title quoted above.
- The impact: GDAL could be made to write a file to a location the attacker controls.
- High severity under the Django security policy.
- The fixed releases: 6.1.4, 6.0.11 and 5.2.20.
- The release date, Dec. 2, 2026, and the reporter, Mohammed Fathy.
Reported by HeroDevs (our sources do not show this on Django's own page):
- The flaw affects supported upstream releases in the 5.2, 6.0 and 6.1 lines.
- NVD scores it 8.7.
- HeroDevs writes: "Django says some raster drivers could turn this into remote code execution." In plain terms, on some setups, writing a file could become a way for an attacker to run their own code on your server.
- HeroDevs also writes that "server-side request forgery is still possible if untrusted input is assigned to
RasterField." Server-side request forgery means tricking your server into sending requests for the attacker.
Not known from the sources:
- Whether anyone has exploited it. Neither source we used says so either way.
- Which raster drivers could lead to code execution.
- Whether the request forgery note still applies after you update. Our sources do not make this clear. Treat it as unsafe to pass untrusted input to
RasterField, patched or not. - Whether Django versions outside the 5.2, 6.0 and 6.1 lines are affected. The sources only talk about supported releases.
Who is affected by CVE-2026-124827
The advisory title points at one place: assigning a value to a GeoDjango RasterField. The apps to check first are Django projects that store raster data through GeoDjango, especially where a visitor, an upload or an outside system can affect what ends up in that field.
Many businesses do not know their website or app runs on Django, especially if an agency or vendor built it. Do not assume you are safe until someone has checked. Note too that the fixed versions cover every app on the 5.2, 6.0 and 6.1 lines, whether or not it uses RasterField, so it makes sense to update every Django install anyway.
What to do this week
| If your app runs | Update to |
|---|---|
| Django 6.1.x | Django 6.1.4 |
| Django 6.0.x | Django 6.0.11 |
| Django 5.2.x | Django 5.2.20 |
| An older line | Move to a supported line above; our sources do not cover older versions |
Checklist:
- List every Django app you run: public websites, customer portals, APIs, internal tools and anything a vendor hosts for you.
- Check the installed Django version on each one (commands below).
- Search the code for
RasterField. Any match moves that app to the top of the list. - Update to 6.1.4, 6.0.11 or 5.2.20, test in staging, then deploy to production.
- Review every place that assigns a value to
RasterField. Make sure anything a visitor or outside system controls cannot reach it. - If a vendor runs the app, ask in writing which Django version is in production and when they will update. Updating your own copy is not the same as the version actually running live, as we covered in Updated Is Not the Same as Patched.
How to check your Django version
On the server or in the app's environment, run:
python -m django --version- or
pip show django
Also check the version pinned in your requirements or lock file, because a deployment can reinstall an old version even after someone updated it by hand. To find RasterField usage, search the codebase for the word RasterField in models and forms.
Why this matters for a business website or app
A web server usually holds the things a business cares about most: customer records, payment links, login sessions and the code itself. A flaw that lets an outsider choose where a file is written on that server is serious on its own. HeroDevs reports Django's view that some raster drivers could turn it into remote code execution, which would mean an attacker running commands on the machine.
Mapping features are common in business apps: service areas, delivery zones, property maps, field reports. These are often built once and then left alone. That is exactly the kind of code that misses a framework update. If nobody on your side owns watching Django security releases, ask who does. Our post Who Is Patching the Software That Runs Your Business? covers how to set that up.
Django vulnerability questions people are asking
What is CVE-2026-124827?
It is a Django vulnerability in GeoDjango's RasterField. Django says it could cause GDAL to write a file to an attacker-controlled location. Django rates it high.
Which Django versions fix CVE-2026-124827?
Django 6.1.4, 6.0.11 and 5.2.20, released Dec. 2, 2026.
What is the CVSS score for CVE-2026-124827?
Django's announcement gives no CVSS score. HeroDevs reports that NVD scores it 8.7.
Is CVE-2026-124827 being exploited?
Not known. Neither source we used reports attacks.
Can the Django RasterField flaw lead to remote code execution?
Possibly. HeroDevs writes that Django says some raster drivers could turn it into remote code execution. The sources do not name those drivers.
Am I affected if I do not use GeoDjango?
The advisory ties the flaw to RasterField assignment, so apps that never use it are at much lower risk. Supported 5.2, 6.0 and 6.1 installs should still move to the fixed versions.
Is Django4Shell the same as CVE-2026-124827?
HeroDevs' write-up on CVE-2026-124827 uses django4shell in its web address. Django's announcement title, quoted above, does not use a nickname.
The bigger lesson
A framework update is part of owning a web app, not an optional extra. The code that is most likely to be missed is the code that works quietly in the background, like a mapping feature built years ago. Know which framework each of your apps runs on, know who watches its security releases, and make sure the fix reaches production, not just a developer's laptop.
Want help checking your Django apps and servers? See security hardening or request a quote.
Get security alerts like this by email, with our free checklist, at security alerts.
Sources: Django security releases, Dec. 2, 2026; HeroDevs: CVE-2026-124827 Django RasterField file write.
Have a question about this article?
Ask it here and we will answer you directly by email. Questions are private, never posted.
Security alerts by email
Hear about the next one first.
When attackers start using a flaw in software businesses run on, we email what it is, whether it touches you and what to do that week, with a round-up of our latest security writing. Free, one-click unsubscribe. You get the checklist straight away: 12 things to secure this week.
Want a result like this?
Security alerts, breaches and the technology a business runs on: what happened, who it affects and what to do.
Get a Tech QuoteKeep reading
Gootloader Takedown: Operation Endgame Seizes 235 Servers and 257 Domains Behind Gootloader, CastleRAT and StealC, What Is Confirmed and What to Check This Week
Europol and global partners say they dismantled the infrastructure behind Gootloader, CastleRAT and StealC, re...
TSMC Data Breach: Employee Data Leaked Through a Cloud Provider, What TSMC Confirms, What the Seller Claims and What to Check This Week
TSMC says data on current and former employees was posted online after one of its cloud service providers was...
Q-Dir and DesktopOK Malware: AhnLab Confirms Tampered Installers Dropped a Python RAT, the Affected Versions and What to Check This Week
Some installers for SoftwareOK's Q-Dir and DesktopOK were altered to drop a Python remote access trojan. Here...