Django4Shell (CVE-2026-124827): What We Know So Far

Django4Shell can lead to remote code execution through vulnerable GeoDjango raster functionality. Authentication requirements depend on how the application exposes it.

Django4Shell (CVE-2026-124827): What We Know So Far

Published: 2 December 2026 | Last Updated: 2 December 2026 (UTC)

Django4Shell (CVE-2026-124827) is a vulnerability in the GeoDjango component of the Django Python web framework that allows server-side file writes, potentially leading to remote code execution (RCE).

While exploitation through the Django admin interface requires staff-level access with appropriate model permissions, applications exposing vulnerable raster functionality to anonymous users could be exploitable without authentication.

At a Glance

Vulnerability NameDjango4Shell
CVECVE-2026-124827
Disclosure Date2 December 2026
Affected ProductDjango (GeoDjango)
Vulnerability TypeArbitrary file write
ImpactRemote code execution
CVSS v3.18.8 (High)
Authentication RequiredApplication-dependent
Exploitation StatusNo confirmed exploitation identified
Public ExploitExploitation technique disclosed; standalone PoC not verified
CISA KEVNo listing identified
Previdian KEVNot listed
Patch AvailableYes

What Is Django4Shell?

Discovered by security researcher Mohammed Fathy, Django4Shell affects how GeoDjango processes user-controlled raster data assigned to RasterField.

Insufficient restrictions on raster definitions allow the underlying Geospatial Data Abstraction Library (GDAL) to write files to unintended locations on the server.

Depending on the available raster drivers and filesystem permissions, an attacker could manipulate application files and achieve code execution with the privileges of the Django application process.

The vulnerability can be triggered during form processing, before the associated database object is saved.

Who Is Affected?

According to the Django security advisory, the following supported versions are affected:

Django BranchAffected VersionsFixed Version
6.1Before 6.1.46.1.4
6.0Before 6.0.116.0.11
5.2 LTSBefore 5.2.205.2.20

Earlier, unsupported Django releases may also be affected.

The vulnerability specifically affects applications using GeoDjango's RasterField, which is implemented on PostGIS. Geometry fields are not affected.

Is Django4Shell Exploitable Without Authentication?

Potentially. Authentication requirements depend on how the application exposes raster functionality.

In the standard Django admin interface, exploitation requires an active staff account with permission to add or modify the affected model. Superuser privileges are not required.

However, Django also identifies ModelForms and writable model serializers as affected surfaces.

Applications that permit ordinary registered users or anonymous visitors to submit unvalidated raster definitions could therefore be exposed without staff privileges or, potentially, without authentication.

Unauthenticated exploitation has not been independently demonstrated in the sources reviewed.

Is Django4Shell Being Exploited in the Wild?

As of 2 December 2026, Previdian has not observed exploitation attempts targeting CVE-2026-124827 in our honeypot network yet.

Technical exploitation details have been publicly disclosed, but confirmed malicious exploitation has not been identified in the sources reviewed.

The vulnerability is not currently listed in Previdian KEV.

Is a Patch or Mitigation Available?

Yes. Django released security updates on 2 December 2026.

The updates exclude RasterField from automatically generated ModelForms by default and restrict the use of non-default raster drivers when processing untrusted definitions.

However, Django warns that server-side request forgery (SSRF) remains possible when applications assign unvalidated input to raster fields.

Developers should follow Django's raster security guidance even after upgrading.

What Should Defenders Do?

  • Patch Django: Upgrade to 6.1.4, 6.0.11 or 5.2.20, or a later supported release containing the fix.
  • Review application exposure: Identify forms, administrative interfaces and API functionality accepting user-controlled raster data.
  • Restrict access: Temporarily disable exposed raster submission functionality where immediate patching is not possible.
  • Validate raster input: Review application-level validation to address remaining SSRF risks.
  • Investigate suspicious activity: Review unexpected file modifications, application process execution and outbound network connections.

Update the application's dependency definitions, rebuild any affected container images and redeploy the application. Verify the installed Django version using python -m django --version within the deployed application environment.

Updates

  • 2 December 2026: Public disclosure and release of Django security updates. Initial publication.

References

Stay Ahead of Emerging Vulnerabilities

Previdian helps security teams identify emerging exploitation threats, assess exposure and prioritise remediation using real-world attacker intelligence.

Request a demo.