Skip to content
Django4Shell: CVE-2026-124827 RasterField flaw enables file write and possible RCE

Django4Shell: CVE-2026-124827 RasterField flaw enables file write and possible RCE

First seen 2 Dec 2026, 15:54 UTC • •

Article Content

Browse articles
ThreatCluster AI
ThreatCluster •December 2, 2026 at 18:17 UTC
  • •Django 6.1.4, 6.0.11 and 5.2.20 fix CVE-2026-124827 (Django4Shell), a high-severity RasterField file-write flaw.
  • •Applications that expose RasterField through ModelForms, admin or writable serializers are reachable, and the researcher describes staff-level access as sufficient.
  • •Django says the flaw could enable remote code execution depending on the raster driver; no confirmed in-the-wild exploitation has been reported.
  • •Sites without GeoDjango RasterField on PostGIS are not affected; geometry fields are excluded.
  • •Upgrade, and until then block untrusted raster submissions, since SSRF remains possible even after the patch.

Django released versions 6.1.4, 6.0.11 and 5.2.20 on 2 December 2026 to fix CVE-2026-124827, dubbed Django4Shell, a high-severity (CVSS 8.8 per the verified record; The Hacker News reports CVSS 9.0) server-side file-write flaw in GeoDjango's RasterField assignment path.

Django's advisory says that assigning a raster definition with an user-controlled name and a non-default GDAL driver could write a file to an attacker-controlled location, which depending on the driver could enable remote code execution.

The flaw is described as an incomplete fix for CVE-2026-87890, which itself was an incomplete fix for CVE-2026-15307.

Robusta Technology Group's Mohammed Fathy is credited with the research and says an authenticated staff user could submit a crafted JSON raster through a ModelForm or Django admin view to write sitecustomize.py or.pth files, though these exploitation details come from the researcher's write-up and have not been independently verified.

Django states RasterField falls back to the CharField form field, so it was reachable by default in admin and ModelForms, and only PostGIS-backed RasterField is affected, not geometry fields.

The fix sets RasterField editable to False by default and raises GDALException for dict or JSON definitions specifying non-default drivers. Django notes server-side request forgery remains possible if untrusted input reaches RasterField.

Cybersecuritynews reports no confirmed and no independent demonstration of unauthenticated attack as of 2 December. The same releases also fix other issues, including a separate high-severity SQL injection flaw in range and lookups.

Start a free Starter trial for enhanced analysis

Ask AI about this cluster

Or ask in your own assistant: ClaudeChatGPTPerplexityGemini

Timeline

2026-08-04
CVE-2026-15307 patched in Django 6.0.8 and 5.2.17
Django fixed a high-severity spatial lookup file-write and request forgery flaw that Django's advisory later showed was incomplete.
www.djangoproject.com
2026-10-06
CVE-2026-87890 fixed in Django 6.1.2, 6.0.9 and 5.2.18
The follow-up fix for raster lookup values is described by Django as an incomplete patch for CVE-2026-15307.
www.djangoproject.com
2026-12-02
CVE-2026-124827 (Django4Shell) disclosed and fixed
Django released 6.1.4, 6.0.11 and 5.2.20 addressing the RasterField assignment-path file write; The Hacker News and Cybersecuritynews covered the release the same day.
The Hacker News

More articles in this cluster (11)

Following this threat?

Track Robusta Technology Group and CVE-2026-111362 in your own feed — you're alerted when they show up in new reporting, leak sites or exploitation.

Free account · no card needed

Common questions

Am I affected?
You are exposed if you use django.contrib.gis RasterField on PostGIS and assign it from admin, ModelForms or writable serializers. Geometry fields are not affected.
Is this being exploited?
Cybersecuritynews reports no confirmed exploitation in the wild and no independent demonstration of unauthenticated attack as of 2 December 2026.
What should we do first?
Upgrade to Django 6.1.4, 6.0.11 or 5.2.20. If you cannot patch immediately, disable raster submissions from untrusted users.