Django patches Django4Shell RasterField flaw that can lead to RCE
Original title: Django Patches ‘Django4Shell’ Flaw Leading to RCE
Authenticated attackers can write arbitrary files through GeoDjango RasterField; fixes are 6.1.4, 6.0.11, and 5.2.20, with a public PoC.
Django maintainers released versions 6.1.4, 6.0.11, and 5.2.20 to fix seven security bugs, including high-severity CVE-2026-124827, dubbed Django4Shell. Insufficient validation of user-controlled raster data in GeoDjango RasterField lets an authenticated attacker write arbitrary files, which can lead to remote code execution. GeoDjango applications on PostGIS that expose RasterField through the admin, ModelForms, or writable serializers are especially affected. Orca Security says a crafted JSON raster body can be used, and a proof of concept is public.
Unconfirmed: The report does not say attackers are exploiting CVE-2026-124827 in real attacks.
- CVE-2026-124827 has a CVSS score of 8.8 and publicly available proof-of-concept details.
- RasterField falls back to CharField, so admin and ModelForm paths are reachable by default.
- Maintainers describe it as an incomplete fix for earlier SSRF and file-write bugs.
- The same updates also fix XSS, cache poisoning, disclosure, heap overflow, and SQL injection.
Impact: Authenticated arbitrary file write that can lead to RCE
| Product | Affected | Fixed in |
|---|---|---|
| Django | GeoDjango RasterField installs before the fixed releases | 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.Check GeoDjango apps on PostGIS that expose RasterField via admin, ModelForms, or writable serializers.
- CVEs
- CVE-2026-124827
- Vendors
- Django
- Products
- GeoDjango
- Organizations
- Orca Security
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 securityweek.com
Users should patch immediately, as proof-of-concept (PoC) exploit details are publicly available. The post Django Patches ‘Django4Shell’ Flaw Leading to RCE appeared first on SecurityWeek.
By Ionut Arghire · securityweek.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.