What to do3 steps
No fixed Django release exists yet.
The finder lists 6.1.2, the newest release, as affected. Watch the Django security releases and upgrade when one names this issue.
Find the forms that expose a RasterField.
The reported path needs a
ModelFormor Django Admin view for a model with aRasterField. A project that does not use GeoDjango rasters is outside the reported conditions.Limit who has staff access to those forms.
The reported path needs a logged-in staff or admin user, so fewer such accounts means fewer people who can reach it.
Are you affected?only if all are true
- Django 6.1.2 with GeoDjango, and GDAL built with the EHdr driver (the finder calls this the standard build).
- A ModelForm or Django Admin view exposes a model with a RasterField.
- The attacker is logged in as a staff or admin user who can submit that form.
Ask your agent
- Prompt for your own agent, read-onlyAm I affected by Django4Shell?
Read the prompt
Check whether the systems I am authorized to inspect are affected by Django4Shell. According to its finder, Django 6.1.2 checks raster values only in QuerySet lookups, so a staff user who submits a crafted JSON raster to a ModelForm or admin form with a GeoDjango RasterField makes GDAL write a Python file to disk during form validation. It is exploitable under these conditions: - Django 6.1.2 with GeoDjango, and GDAL built with the EHdr driver (the finder calls this the standard build). - A ModelForm or Django Admin view exposes a model with a RasterField. - The attacker is logged in as a staff or admin user who can submit that form. What the catalog says to do on an affected system (report these, do not carry them out): 1. No fixed Django release exists yet. 2. Find the forms that expose a RasterField. 3. Limit who has staff access to those forms. For each host, container image or application, report affected, not affected, fixed or unknown, with the evidence, and list anything you could not access. Work read-only: do not change configuration, restart services or send exploit input. More: https://django.2shell.wtf/django4shell
Timeline1 event
Disclosed
Robusta Technology Group publishes the Django4Shell advisory
Sources checked on . This page tells you how to check and what to install. It cannot tell you that you are safe.