Django patches GeoDjango file-write flaw called Django4Shell
Original title: High-Severity Django4Shell Vulnerability Could Allow Hackers to Compromise Web Servers
CVE-2026-124827 can write files through RasterField and sometimes lead to code execution; no exploitation is confirmed.
Django released 6.1.4, 6.0.11, and 5.2.20 on December 2, 2026, to fix a high-severity GeoDjango flaw tracked as CVE-2026-124827 and called Django4Shell. Untrusted raster definitions processed through RasterField and GDAL can write a file to an attacker-chosen location; code execution depends on the raster driver and filesystem permissions. Geometry fields are unaffected. The patch makes RasterField noneditable by default and rejects non-default drivers in dictionary and JSON definitions, but Django says server-side request forgery can remain if untrusted input is assigned to the field.
Unconfirmed: No exploitation is confirmed, a standalone proof of concept was not verified, and code execution depends on the driver and permissions.
- Researcher Mohammed Fathy reported the RasterField issue.
- Django admin access needs a staff account; public forms may need none.
- Previdian reported no confirmed exploitation and no verified standalone proof of concept.
- The main development branch was patched as well.
- Administrators should verify the running version after upgrading.
Impact: Attacker-controlled file writes and possible remote code execution
| Product | Affected | Fixed in |
|---|---|---|
| Django GeoDjango RasterField | — | 6.1.4, 6.0.11, and 5.2.20 |
- 1.Upgrade affected deployments to Django 6.1.4, 6.0.11, or 5.2.20.
- 2.Review public raster endpoints, writable serializers, and staff forms.
- 3.Validate raster input before assigning it to RasterField.
- CVEs
- CVE-2026-124827
Vulnerabilities mentioned
All| CVE | Vulnerability | CVSS | EPSS | Signals | Published |
|---|---|---|---|---|---|
| CVE-2026-124827 | Arbitrary file creation in Django RasterField via name | 8.7 | 3% | PoC ×5 |
From the original article
2 min read at gbhackers.com
Django has released versions 6. 1. 4, 6.
By Divya · gbhackers.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.