SecurityWeekIonut Arghire
Django fixes Django4Shell flaw that enables remote code execution
Part of the CVE-2026-124827 story · since 2 Dec
- Wed 2 Dec, 15:00 UTC. The Hacker News, first report. Django fixes critical GeoDjango flaw enabling remote code execution.
- Wed 2 Dec, 16:01 UTC. SecurityOnline, its first report on the story. Django fixes Django4Shell RCE flaw in GeoDjango RasterField.
- Thu 3 Dec, 12:30 UTC. SecurityWeek, its first report on the story. Django fixes Django4Shell flaw that enables remote code execution. This article, 3rd of 3.
Django has issued security updates for versions 6.1.4, 6.0.11 and 5.2.20 to fix seven vulnerabilities, including CVE-2026-124827, known as Django4Shell, which allows remote code execution. The flaw affects GeoDjango’s RasterField component, where user-controlled raster data is insufficiently validated, enabling an authenticated attacker to write arbitrary files to the server.
Exploitation could occur via a crafted JSON raster body containing a user-controlled name parameter and a non-default GDAL driver, potentially dropping Python files into the working directory, writing to site-packages, overwriting source code, deploying web shells, or corrupting configuration files. Django’s maintainers note that RasterField falls back to the CharField form field, making the issue reachable by default on models with RasterField registered in the admin, ModelForms, or writable serializers.
The vulnerability stems from an incomplete fix for CVE-2026-87890 (an SSRF patch from October) and, in turn, for CVE-2026-15307 (a prior server-side file-write and request forgery bug patched in August). Orca Security explains that earlier protections do not extend to the RasterField assignment path, creating a persistent attack surface addressed by the new releases. Any GeoDjango application using PostGIS with RasterField exposed via Django admin, ModelForms, or writable serializers may be vulnerable.
In addition to the RCE fix, the updates address other issues including XSS, cache poisoning, information disclosure, heap buffer overflow and SQL injection.
How the story developed
3 articles from 3 outlets since 2 Dec. Still developing; the latest report was 11 hours ago. This was the 3rd report, 21 hours after the first.
- Wed 2 Dec, 15:00 UTC. The Hacker News, first report. Django fixes critical GeoDjango flaw enabling remote code execution.
- Wed 2 Dec, 16:01 UTC. SecurityOnline, its first report on the story. Django fixes Django4Shell RCE flaw in GeoDjango RasterField.
- Thu 3 Dec, 12:30 UTC. SecurityWeek, its first report on the story. Django fixes Django4Shell flaw that enables remote code execution. This article, 3rd of 3.
- CVE not in KEV
- No CVE
- Larger: an outlet’s first report
- Coverage over time
Show all 3 articles as a listHide the list
- Wed 2 DecDay 02
- Django fixes critical GeoDjango flaw enabling remote code execution15:00 · The Hacker News · First report
- Django fixes Django4Shell RCE flaw in GeoDjango RasterField16:01 · SecurityOnline
- Thu 3 DecDay 11
- Django fixes Django4Shell flaw that enables remote code execution12:30 · SecurityWeek · This article, 3rd of 3