The Hacker News
Django fixes critical GeoDjango flaw enabling 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. This article, 1st of 2.
- Wed 2 Dec, 16:01 UTC. SecurityOnline, its first report on the story. Django fixes Django4Shell RCE flaw in GeoDjango RasterField.
The Hacker News reports that Django’s maintainers have issued security releases for versions 6.1.4, 6.0.11 and 5.2.20 to fix seven vulnerabilities, including a critical flaw that could enable remote code execution via GeoDjango form validation. The leading CVE tied to this issue is CVE-2026-124827 (CVSS 9.0), dubbed Django4shell by Mohamed K. Fathy of Robusta Technology Group.
The vulnerability is described as an incomplete fix in CVE-2026-87890, which itself extended an earlier issue, CVE-2026-15307, addressed in August 2026, all centring on GeoDjango’s spatial lookup and GDAL handling.
The report details that CVE-2026-124827 arises when attacker-controlled bytes reach a RasterField assignment path, allowing an adversary to overwrite files and drop remote code-execution primitives such as sitecustomize.py into a worker’s Python path. By writing a targeted file into site-packages, an attacker could execute payloads on server start-up, potentially gaining the privileges of the web server OS user.
The piece notes four pre-conditions for exploitation, including RasterField exposure via ModelForm or admin, and writable target paths. It also quotes Django maintainers warning that, for organisations using GeoDjango with raster data, and with default admin access and standard GDAL builds, exposure remains likely until patches are applied. The article mentions additional fixes addressing SQL injection (CVE-2026-132092), XSS (CVE-2026-115868) and cache poisoning (CVE-2026-125673). It cites Fathy describing mitigation as wrapping raster bytes in a GDALRaster for spatial lookups.
How the story developed
2 articles from 2 outlets since 2 Dec. Still developing; the latest report was 3 hours ago. This was the first report.
- Wed 2 Dec, 15:00 UTC. The Hacker News, first report. Django fixes critical GeoDjango flaw enabling remote code execution. This article, 1st of 2.
- Wed 2 Dec, 16:01 UTC. SecurityOnline, its first report on the story. Django fixes Django4Shell RCE flaw in GeoDjango RasterField.
- CVE not in KEV
- No CVE
- Larger: an outlet’s first report
- Coverage over time
Show all 2 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 · This article, 1st of 2
- Django fixes Django4Shell RCE flaw in GeoDjango RasterField16:01 · SecurityOnline