Scan my site freeScan free

Security notices / Django CVE-2026-124827 Django4Shell, December 2026

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.

Last updated: Wednesday, December 2, 2026, 5:32 PM ETStatus: Fixes released. Update to Django 6.1.4, 6.0.11, or 5.2.20.

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

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

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.

We email you a link to confirm first, and every alert has a one-click unsubscribe. Alerts can include a short note about EverThread. Already a customer? Use your account email and your alerts include a link to your dashboard. Privacy

Sources

While you are here

Check your site's other basics free. We look at your home page the way a browser does. This check cannot tell you whether a Django site is unpatched. No account.

Or sign up free and we check it every day and email you when something changes.