Security notice
Do you run a Django site, especially one that uses GeoDjango RasterField? Django's official December 2, 2026 security notice says a flaw in RasterField could let a user-controlled raster definition write a file to an attacker-controlled location, which could enable remote code execution. Django rated it high. The official CVE record lists CVSS 3.1 8.8. Update to Django 6.1.4, 6.0.11, or 5.2.20. The researcher who reported it, Mohammed Fathy, named it Django4Shell.
Django, in an official security notice posted December 2, 2026 by Jacob Walls, issued Django 6.1.4, 6.0.11, and 5.2.20 and encouraged all users to upgrade as soon as possible. The notice describes CVE-2026-124827 as a server-side file write through GeoDjango RasterField assignment. Django said assigning a raster data definition with a user-controlled name parameter and a non-default driver could cause GDAL to write a file to an attacker-controlled location, and that, depending on the raster driver, this could enable remote code execution. Django said the flaw was reachable by default on models with RasterField registered in the admin or using ModelForms or writable model serializers. RasterField is only implemented on PostGIS, Django said, and geometry fields were not affected. Django rated this issue high under its security policy. The official CVE record, published by the Django Software Foundation on December 2, 2026, at 8:20 AM ET and updated at 10:44 AM ET, lists CVSS 3.1 8.8 (AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H) and CVSS 4.0 8.7, thanks Mohammed Fathy for the report, and states that earlier, unsupported Django series such as 5.1.x, 5.0.x, and 4.2.x were not evaluated and may also be affected. Official supported affected ranges in that record are Django 6.1 before 6.1.4, 6.0 before 6.0.11, and 5.2 before 5.2.20. Mohammed Fathy named the issue Django4Shell and rates it critical, according to MATT on December 2, 2026. That name and the critical rating are the researcher's, not Django's official wording. We are not using a 9.0 score that has appeared in some press coverage; MATT said that 9.0 figure has no primary source. The official scores are Django's high rating and the CVE record's 8.8 and 8.7. Django said the fixed RasterField now defaults to not being editable in a ModelForm unless it is explicitly included, and that assigning a dict or JSON string that specifies a non-default driver now raises an error. To use other drivers, Django said, wrap the definition in GDALRaster to show the value is trusted. Django also said this change only limits server-side file writes, and that server-side request forgery is still possible if untrusted input is assigned to RasterField. Follow Django's official raster security considerations and validate untrusted input. The same official December 2 release also fixes CVE-2026-132092, a high-severity SQL injection issue in range and in lookups, CVE-2026-115868, a moderate cross-site scripting issue in truncatechars_html, and four low-severity issues, including CVE-2026-125673, a cache-poisoning flaw. For that cache issue, Django said existing cached responses are not invalidated, so users should clear any potentially affected caches after upgrading. The official Django notice does not itself say whether this flaw is being exploited. A CISA Coordinator SSVC assessment attached to the official CVE record, dated December 2, 2026, at 9:49 AM ET, set Exploitation to none. MATT, on December 2, 2026, also said none reported as of that date. Those are not official Django statements, and they are not a CISA KEV listing. CVE-2026-124827 is not in the official CISA Known Exploited Vulnerabilities catalog, version 2026.11.30, released November 30, 2026, at 2:44 PM ET. GitHub Advisory Database entry GHSA-fh3p-824r-m74q, published December 2, 2026, at 10:32 AM ET, restates the official CVE affected range and the 8.8 score. NVD listed the CVE on December 2, 2026, with status Deferred as of 11:17 AM ET, and showed the Django Software Foundation scores as secondary scores. NVD had not published its own score. EverThread does not test for this. (Django official security releases, Dec 2, 2026; official CVE-2026-124827 record; GitHub advisory GHSA-fh3p-824r-m74q; NVD CVE-2026-124827; Django raster security considerations; MATT, Dec 2, 2026; official CISA KEV feed)
What happened
- Official Django notice. Django, in a notice posted December 2, 2026 by Jacob Walls, issued 6.1.4, 6.0.11, and 5.2.20 and asked users to upgrade as soon as possible. For CVE-2026-124827, Django said assigning a raster data definition to GeoDjango RasterField with a user-controlled name and a non-default driver could cause GDAL to write a file to an attacker-controlled location, which could enable remote code execution depending on the raster driver. Django said this was reachable by default on models with RasterField registered in the admin or using ModelForms or writable model serializers, that RasterField is only implemented on PostGIS, and that geometry fields were not affected. Django rated the issue high. (Django official security releases, Dec 2)
- Official CVE record and scores. The official CVE-2026-124827 record, published by the Django Software Foundation on December 2, 2026, at 8:20 AM ET, lists CVSS 3.1 8.8 and CVSS 4.0 8.7, and gives official supported affected ranges as Django 6.1 before 6.1.4, 6.0 before 6.0.11, and 5.2 before 5.2.20. It also says earlier unsupported series such as 5.1.x, 5.0.x, and 4.2.x were not evaluated and may also be affected. (official CVE-2026-124827 record)
- The Django4Shell name. Mohammed Fathy reported the issue, per Django. According to MATT on December 2, 2026, Fathy named it Django4Shell and rates it critical. That name and the critical rating are the researcher's, not Django's official wording. We are not using a 9.0 score from some press coverage; MATT said that figure has no primary source. (MATT, Dec 2; Django official security releases, Dec 2)
- What the fix changes, and what still needs care. Django said RasterField now defaults to not being editable in a ModelForm unless it is explicitly included, and that assigning a dict or JSON string that specifies a non-default driver now raises an error. To use other drivers, Django said, wrap the definition in GDALRaster to show the value is trusted. Django also said this only limits server-side file writes, and that server-side request forgery is still possible if untrusted input is assigned to RasterField. Follow Django's official raster security considerations. (Django official security releases, Dec 2)
- Other issues in the same release. The same official notice also fixes CVE-2026-132092 (high: potential SQL injection in range and in lookups), CVE-2026-115868 (moderate: potential cross-site scripting in truncatechars_html), CVE-2026-125673 (low: potential cache poisoning via dot segments in request paths), CVE-2026-119642 and CVE-2026-127929 (low: information leakage in the admin changelist), and CVE-2026-132809 (low: a heap buffer overflow in a GeoDjango geometry property). For the cache-poisoning issue, Django said existing cached responses are not invalidated, so users should clear any potentially affected caches after upgrading. (Django official security releases, Dec 2)
Who should worry
You run Django 6.1 before 6.1.4, 6.0 before 6.0.11, or 5.2 before 5.2.20, or another series that may be affected. CVE-2026-124827 matters most if you use GeoDjango RasterField on PostGIS and that field can be set through the admin, a form, or a writable serializer. If you do not use RasterField, that particular issue may not apply to you, but the same official release also fixes a high-severity SQL injection issue and other flaws, so you should still upgrade. If you run an unsupported series such as 4.2, 5.0, or 5.1, the official CVE record says those versions were not evaluated and may also be affected; this release does not patch them, so move to a supported fixed version. If you do not run Django, this notice does not apply to you.
What to do now
- Upgrade to Django 6.1.4, 6.0.11, or 5.2.20, as listed in the official December 2, 2026 notice.
- After upgrading, clear any potentially affected caches, as Django asked for the separate cache-poisoning fix in the same release.
- If you use RasterField, follow Django's official raster security considerations and do not assign untrusted input to that field. If you cannot upgrade immediately, review whether RasterField is exposed in the admin, a form, or a writable API.
What to send your developer, agency or host
Upgrade Django to 6.1.4, 6.0.11, or 5.2.20, as listed in Django's official December 2, 2026 security notice. After upgrading, clear any potentially affected caches. If you use GeoDjango RasterField, follow Django's official raster security considerations. EverThread does not test for this.
Common questions
Does this mean my site was hacked?
Only if you run an affected Django version and this issue was used against your site. This is a report about a flaw in Django, including GeoDjango RasterField, not a report that a particular site was broken into.
Can EverThread tell me if I am affected?
No. EverThread does not test for this. We check your home page from the outside, the way a browser sees it. We cannot see whether a Django application you run is unpatched, so if our scan does not warn you about this, that does not mean you are safe.
Is there a CVE?
Yes. The official record is CVE-2026-124827, published December 2, 2026, at 8:20 AM ET by the Django Software Foundation. GitHub Advisory Database entry GHSA-fh3p-824r-m74q, published December 2, 2026, at 10:32 AM ET, restates the official affected range and the 8.8 score.
Is this in CISA KEV?
No. The official CISA Known Exploited Vulnerabilities catalog, version 2026.11.30, released November 30, 2026, at 2:44 PM ET, does not list CVE-2026-124827. A CISA Coordinator SSVC assessment attached to the CVE record, dated December 2, 2026, at 9:49 AM ET, set Exploitation to none. That SSVC note is not a KEV listing.
Is it being exploited?
Django's official notice does not say. The CISA Coordinator SSVC assessment on the CVE record set Exploitation to none on December 2, 2026, at 9:49 AM ET. MATT, on December 2, 2026, also said none reported as of that date. Those are not official Django statements, and they are not evidence of later activity after those times.
Why do some articles say 9.0 or critical?
Django officially rates the issue high. The official CVE record lists CVSS 3.1 8.8 and CVSS 4.0 8.7. According to MATT, the researcher rates it critical, and a 9.0 figure in some press coverage has no primary source. We use the official Django and CVE scores.
Where can I follow official updates?
Follow Django's official December 2 security notice, the official CVE-2026-124827 record, and Django's raster security considerations. All current notices are on our notices page.
Security alerts by email
Hear about the next one first.
When a flaw puts websites at risk, we send one email: what happened, who it affects and what to do. It's free, whether or not you use EverThread.
Sources
- Django official security releases, December 2, 2026: "Django security releases issued: 6.1.4, 6.0.11, and 5.2.20," posted by Jacob Walls on December 2, 2026, retrieved December 2, 2026. Official fixed releases: 6.1.4, 6.0.11, and 5.2.20. Official description of CVE-2026-124827, official high severity under the Django security policy, official statement that the issue was reachable by default in the admin, ModelForms, or writable model serializers, that RasterField is PostGIS-only, and that geometry fields were not affected. Official residual warning that server-side request forgery is still possible if untrusted input is assigned to RasterField. Official list of the six other CVEs in the same release, including the request to clear caches after the CVE-2026-125673 fix. The official notice does not use the name Django4Shell and does not state whether the flaw is being exploited.
- Official CVE-2026-124827 record: Django Software Foundation, published December 2, 2026, at 8:20 AM ET, updated 10:44 AM ET, retrieved December 2, 2026. Official supported affected ranges: 6.1 before 6.1.4, 6.0 before 6.0.11, and 5.2 before 5.2.20. Official statement that earlier unsupported series such as 5.1.x, 5.0.x, and 4.2.x were not evaluated and may also be affected. Official CVSS 3.1 8.8 and CVSS 4.0 8.7. Credit to Mohammed Fathy as reporter. A CISA Coordinator SSVC assessment on the record, dated December 2, 2026, at 9:49 AM ET, set Exploitation to none. That is not a KEV listing.
- GitHub Advisory Database GHSA-fh3p-824r-m74q: published December 2, 2026, at 10:32 AM ET, retrieved December 2, 2026. Restates the official CVE affected range and the CVSS 3.1 8.8 score. Marked unreviewed in the GitHub Advisory Database. The django/django repository security-advisories list did not return a separate reviewed vendor advisory when checked the same day.
- NVD CVE-2026-124827: retrieved December 2, 2026. NVD listed the record with status Deferred, last modified December 2, 2026, at 11:17 AM ET, and showed the Django Software Foundation CVSS 3.1 8.8 and CVSS 4.0 8.7 scores as secondary scores. NVD had not published its own score.
- Django official raster security considerations: linked from the official December 2 notice. Follow this guidance when accepting raster input.
- MATT, Django4Shell (CVE-2026-124827) explained: December 2, 2026, retrieved December 2, 2026. Used only for the researcher's Django4Shell name and critical rating, the statement that none were reported as of December 2, and the note that a 9.0 figure in some press coverage has no primary source. We do not repeat exploit detail from that article.
- Official CISA Known Exploited Vulnerabilities catalog: catalog version 2026.11.30, released November 30, 2026, at 2:44 PM ET, retrieved December 2, 2026. CVE-2026-124827 is not listed.