Incident sheet · Security & Risk

Filed
Read
4 min · 706 words
Severity
Routine

Django patches seven flaws, including RCE the researcher calls Django4Shell

Django's 2 December advisory fixes seven flaws including Django4Shell RCE via RasterField and a CVSS 9.3 SQL injection requiring no privileges. Upgrades to 6.1.4, 6.0.11 or 5.2.20 urged.

Django patches seven flaws, including RCE the researcher calls Django4Shell
Feed — Pexels / pixabay

Event log

  1. Django released fixes for seven vulnerabilities on 2 December; supported versions are 6.1.4, 6.0.11 and 5.2.20.
  2. CVE-2026-124827 (Django4Shell) allows arbitrary file writes via RasterField, potentially enabling remote code execution.
  3. CVE-2026-132092 is a SQL injection flaw rated 9.3/10 under CVSS 4.0 by Snyk, requiring no prior privileges.
  4. Snyk is unaware of any reported exploitation of the RCE flaw.
  5. RasterField is now non-editable by default, requiring changes to applications that accept raster data via forms.

Django shipped fixes for seven vulnerabilities on 2 December, including two rated high severity, and told users to upgrade immediately to 6.1.4, 6.0.11 or 5.2.20, depending on their release series. Snyk said it has seen no reported exploitation of the remote code execution flaw. That is the only piece of good news in the advisory.

The more serious issue for most estates is CVE-2026-132092, a SQL injection flaw in range and in lookups when queries contain percent signs in aliases or key transforms. Snyk scored it 9.3 out of 10 — critical — under CVSS 4.0, and noted that attackers need no prior privileges to exploit it. It is not confined to GeoDjango deployments.

What does Django4Shell actually do?

CVE-2026-124827, named Django4Shell by security researcher Mohammed Fathy of Robusta Technology Group, affects Django's RasterField, which handles geospatial raster data on PostGIS. Under certain conditions, attackers can write files to locations of their choosing on the server, potentially enabling remote code execution. Snyk said successful attackers could alter application code and reach credentials and other sensitive data available to the process.

The flaw affects applications that expose RasterField through editable forms — including Django's admin interface — or through writable model serializers. In most deployments, exploitation requires access to a staff or administrator account. Whether the file write becomes code execution also depends on filesystem permissions.

The patch restricts unauthorized file writes, but Django warned that applications accepting untrusted raster data through RasterField could remain exposed to server-side request forgery even after upgrading. Django had already fixed related request forgery issues in spatial database queries in August, with a follow-up in October for one the earlier patch missed. Neither covered the model field.

The remaining fixes address cache poisoning, cross-site scripting, a heap buffer overflow, and two information disclosure vulnerabilities in the administrative interface. Older, unsupported Django versions should be treated as potentially vulnerable where the exploitation conditions exist; the advisory covers only supported series.

How exposed is the enterprise estate?

Akshat Tyagi, associate practice leader at HFS Research, flagged mapping platforms and government systems as warranting particular attention. "For CISOs, the immediate priority is to identify which applications use these affected features, especially where external users can submit data," he said.

Lalit Rawat, CISO at Kanerika, urged treating the RCE flaw as an emergency. "A staff account is a low bar," he said. "Admin logins get phished, and they often stay active long after people leave."

The exposure is wider than applications that deliberately accept raster data. Before the update, registering a model containing a RasterField in the admin interface could make the field accessible through forms by default, even where developers never intended to accept such input.

Software composition analysis finds the version, not the risk. Rawat said determining exploitability requires examining configuration and filesystem permissions. "A simple test for any CISO is to ask which internet-facing apps run django.contrib.gis with the default admin," he said. "If that takes more than a day to answer, the inventory is the finding."

What does remediation look like beyond patching?

Django advised clearing potentially affected caches after upgrading, because the cache-poisoning fix does not invalidate previously cached responses. Tyagi recommended reviewing application logs for signs of pre-patch exploitation.

Rawat advised restricting web application processes from sensitive internal services such as cloud metadata endpoints, and making application code and package directories read-only. Detection means comparing files against a known-good build and looking for unexpected Python startup files. Background workers, scheduled jobs and older container images should not escape the upgrade, he added.

Snyk told enterprises that find evidence of exploitation to rotate credentials accessible to the Django process and rebuild affected systems from a trusted image.

RasterField is now non-editable by default, so applications that legitimately collect raster data through forms may need modification and testing. Rawat recommended validating raster data before it reaches the field and requiring security approval before restoring the old behaviour.

"The challenge is that many enterprises run older or heavily customized applications," Tyagi said. "Finding every affected system and making these changes without disrupting business operations may be harder than installing the update."

via infoworld.com/feed/ (Source)

Filed under

Share this article:

More from Tom Whitfield

Tom Whitfield

Show full bio

Market editor covering people, launches and day-to-day practice in enterprise information technology and the leaders who run at CIO Monitor.

275 articles

The newsroom digest

One email a day with the stories that matter. No noise.

By subscribing you agree to the privacy policy.

Cross-references

‹ Previous articleNext article ›