Django patches GeoDjango RasterField RCE dubbed Django4Shell
Original title: New Django4Shell Vulnerability Enables Django RCE via GeoDjango Form Validation
Staff-authenticated RasterField assignment can write attacker-chosen files, including web shells, until Django is upgraded.
Django maintainers released 6.1.4, 6.0.11, and 5.2.20 to fix seven issues, led by CVE-2026-124827 (CVSS 9.0), named Django4Shell by Mohamed K. Fathy of Robusta Technology Group. Assigning a crafted raster to GeoDjango RasterField can make GDAL write a file to an attacker-chosen path and, depending on the driver, run code as the web server user. The same releases also fix SQL injection in range and in lookups, XSS in truncatechars_html, and cache poisoning via dot segments. Fathy says exploitation mainly requires staff-level authentication plus a RasterField exposed through admin or ModelForms.
Unconfirmed: No confirmed in-the-wild exploitation is stated; exposure claims come from the researcher.
- Fixed releases are Django 6.1.4, 6.0.11, and 5.2.20.
- CVE-2026-124827 is described as an incomplete fix following CVE-2026-87890 and CVE-2026-15307.
- Other fixes are CVE-2026-132092, CVE-2026-115868, and CVE-2026-125673.
- Fathy says a crafted JSON raster can overwrite source, drop web shells, or plant sitecustomize.py.
Impact: Arbitrary file write and remote code execution as the web server user
| Product | Affected | Fixed in |
|---|---|---|
| Django | — | 6.1.4, 6.0.11, and 5.2.20 |
- 1.Upgrade Django to 6.1.4, 6.0.11, or 5.2.20.
- 2.Review GeoDjango models that expose RasterField through admin, ModelForms, or writable serializers.
- ATT&CK
- T1505.003 Web Shell
- Vendors
- Django
- Products
- GeoDjango
- Organizations
- Robusta Technology Group
Vulnerabilities mentioned
All| CVE | Vulnerability | CVSS | EPSS | Signals | Published |
|---|---|---|---|---|---|
CVE-2026-132092+3 related CVEs | SQL injection in Django range and in lookups | 9.3 group max | — |
From the original article
3 min read at thehackernews.com
The maintainers of Django have released versions 6. 1. 4, 6.
thehackernews.com
A short excerpt; the article and its images belong to the publisher. Summary, key facts and assessment above are AI-written from the article and can be wrong.