Django Urges Immediate Upgrades After Discovery of High-Severity RCE Flaws
Key Facts
- Django released 6.1.4, 6.0.11 and 5.2.20 on December 2, 2026 to fix seven security issues.
- CVE-2026-124827 is rated high severity: assigning crafted raster data to GeoDjango RasterField can cause GDAL to write a file to an attacker-controlled location.
- RasterField falls back to the CharField form field, so the flaw was reachable by default on models with RasterField in the admin, ModelForms or writable serializers.
- The fix makes RasterField non-editable by default and raises GDALException when a dict or JSON string specifies a non-default driver.
- The same release fixes CVE-2026-132092, a high-severity SQL injection in range and in lookups, plus five lower-severity issues.
- Orca researchers, who dubbed the issue Django4Shell, describe it as an incomplete fix chain reaching back to CVE-2026-87890 and CVE-2026-15307.
Django has urged users to upgrade immediately after releasing security updates for seven vulnerabilities, including two rated high severity. Versions 6.1.4, 6.0.11 and 5.2.20 were published on December 2, 2026, and the project says all users should move to them as soon as possible.
The most serious issue is CVE-2026-124827, a server-side file-write flaw in GeoDjango’s RasterField that researchers have dubbed Django4Shell. Under certain conditions, it can enable remote code execution.
The RasterField flaw
GeoDjango’s RasterField stores raster data and runs on PostGIS. Django says assigning raster data with a user-controlled name parameter and a non-default driver could cause GDAL to write a file to an attacker-controlled location. Depending on the raster driver, that file write can become code execution.
The reach of the flaw is what makes it serious. RasterField falls back to the CharField form field, so it was reachable by default on any model that exposes RasterField through the admin, a ModelForm or a writable serializer. An attacker who can submit crafted raster data to one of those endpoints does not need a separate login bypass; the assignment itself is the attack.
Orca Security researchers describe the issue as an incomplete-fix chain: CVE-2026-124827 is an incomplete fix for CVE-2026-87890 from October 2026, which was itself an incomplete fix for CVE-2026-15307 from August 2026. That history matters because teams that patched the earlier issues may assume they are covered when they are not.
The fix changes defaults
The Django fix does two things. First, RasterField now defaults to non-editable, so it is excluded from ModelForms unless explicitly included. Second, assigning a dict or JSON string that specifies a non-default driver now raises a GDALException. To use other drivers, developers must wrap the definition in GDALRaster to show the value is trusted.
The advisory adds an important qualification: the exception only limits server-side file writes. Server-side request forgery remains possible if untrusted input is assigned to RasterField, so Django points developers to its raster security considerations and asks them to validate input before accepting it.
Geometry fields were not affected, and RasterField is only implemented on PostGIS, which narrows the exposed population to GeoDjango deployments on that backend.
The other six issues
The same release fixes a second high-severity issue, CVE-2026-132092, a potential SQL injection in range and in lookups. The range lookup now requires exactly two right-hand-side values. Django notes that percent signs in column aliases and key transforms were deprecated in 6.0 and are scheduled for removal in 2028.
The remaining five are lower severity: CVE-2026-115868, a cross-site scripting issue in truncatechars_html; CVE-2026-125673, cache poisoning through dot segments in request paths; CVE-2026-119642 and CVE-2026-127929, admin changelist information leaks; and CVE-2026-132809, a heap buffer overflow in OGRGeometry.wkb for geometries larger than 4GB on 64-bit platforms.
Users with cached responses affected by the dot-segment bug should clear those caches after upgrading, since existing cached responses are not invalidated by the patch.
What to do
Upgrade to 6.1.4, 6.0.11 or 5.2.20 depending on the release series. Then audit where RasterField is exposed: search for models with RasterField registered in the admin, used in ModelForms or accepted through writable serializers. Anywhere untrusted input can reach the field should be treated as exposed until patched.
For teams that pinned around the earlier incomplete fixes, the Orca analysis is a reason to re-test rather than assume coverage. An incomplete fix for the same attack surface means the vulnerable code path may have changed shape without being closed.
There is no indication in the Django advisory of active exploitation. The urgency comes from the severity and the default reachability of the RasterField path, not from a confirmed campaign. Patch first, then verify exposure, rather than waiting for exploitation to confirm the risk.
Sources & References
- Django security releases for 6.1.4, 6.0.11 and 5.2.20 covering seven CVEs and fixed versions. https://www.djangoproject.com/weblog/2026/dec/02/security-releases/
- oss-security announcement listing the seven Django CVEs and fixed releases. https://seclists.org/oss-sec/2026/q4/974
- CVE record for the GeoDjango RasterField server-side file-write flaw. https://www.cve.org/CVERecord?id=CVE-2026-124827
- CVE-2026-124827 — National Vulnerability Database
- CVE-2026-132092 — National Vulnerability Database
- CVE-2026-115868 — National Vulnerability Database
- CVE-2026-125673 — National Vulnerability Database
Analyst-reviewed briefings on active exploitation, ransomware operations, nation-state campaigns, and the threat intelligence that connects them.
Security Digest
The most important cybersecurity stories, CVE alerts, and threat intelligence — one concise email. Unsubscribe anytime.
Related Articles
PHP 8.6.0 Carries the Fix for CVE-2026-126714, the 9.2-Rated Flaw October's Releases Left Open
PHP 8.6.0, released today, includes the fix for CVE-2026-126714, a flaw that PHP's maintainers rate 9.2 out of 10 on the CVSS 4.0 scale.
Apache Roller Widens Actively Exploited RCE Flaw to Versions 4.0.0–6.1.4
Apache Roller is an open-source, Java-based blogging platform.
Apache Fixes 30 Struts, OpenMeetings and OpenOffice Flaws
Ten Struts advisories, 18 OpenMeetings CVEs and two OpenOffice bugs arrive in one patch window, including a Struts path-authorization bypass.
GeoServer RCE chain probes seen in the wild two days after disclosure
Attackers are probing two GeoServer flaws that can be chained with other bugs for unauthenticated remote code execution, two days after advisories were…