Skip to content
Django Patches ‘Django4Shell’ Flaw Leading to RCE

Django Patches ‘Django4Shell’ Flaw Leading to RCE

Securityweek •Ionut Arghire • December 3, 2026

New Django security updates resolve a high-severity vulnerability that could lead to remote code execution (RCE).

Django is a free, open source Python-based web framework that uses a model-template-views (MTV) architecture to help developers easily build applications.

On Wednesday, the web framework’s maintainers released Django versions 6.1.4, 6.0.11, and 5.2.20 to fix seven security bugs , including CVE-2026-124827 (CVSS score of 8.8), dubbed Django4Shell , an RCE issue with publicly available proof-of-concept (PoC) details.

The security defect impacts Django’s GeoDjango RasterField component, where user-controlled raster data is insufficiently validated, allowing an authenticated attacker to write arbitrary files to the server.

The attacker could exploit the flaw to write files to any accessible path on the system, potentially enabling RCE through multiple vectors.

“Because RasterField falls back to the CharField form field, the flaw was reachable by default on models with RasterField registered in the admin or using ModelForms or writable model serializers,” Django’s maintainers explain.

The security defect is an incomplete fix for CVE-2026-87890, a server-side request forgery (SSRF) patched in October, which in turn is an incomplete fix for CVE-2026-15307, a server-side file-write and request forgery bug patched in August.

“The protections from earlier patches do not extend to the RasterField assignment path, making this a persistent and recurring attack surface that the Django team has now addressed more thoroughly,” Orca Security explains .

Any GeoDjango application running on PostGIS that defines a RasterField may be vulnerable, especially those exposing RasterField via the Django admin, ModelForms, or writable model serializers.

According to Orca, attackers could exploit Django4Shell through a crafted JSON raster body that has a user-controlled ‘name’ parameter and a non-default GDAL driver. Attackers could drop Python files into the working directory, write files to site-packages, overwrite source code, deploy web shells, or corrupt configuration files.

The fresh Django updates also resolve XSS, cache poisoning, information disclosure, heap buffer overflow, and SQL injection vulnerabilities.

Related: HPE Patches Critical Flaws in Central On-Premises Platform

Related: Android’s December 2026 Updates Patch Vulnerabilities, Improve Protections

Related: In Other News: Tanker Cyberattacks, EU Quantum Act, New VirusTotal Capabilities

Related: GL.iNet Routers, KVMs Compromised via Remote Management Service Flaw

Ionut Arghire is an international correspondent for SecurityWeek.

More from Ionut Arghire

Chrome 158 Update Patches 229 Vulnerabilities

Telegram, WhatsApp Urge Users to Immediately Update Older iPhones

Federal Agencies Targeted in AI-Assisted Attacks as CISA, FBI Release Guidance

easyDNS Data Breach Impacts Customer Information

Typo3 CMS Vulnerability Exploited in Attacks

React2Keys Campaign Steals 50,000 Credentials via React2Shell Exploitation

Critical WordPress WP Rocket Vulnerability Exploited Days After Patching

pCloud Says Hackers Accessed Encrypted Password Manager Data

CISO Conversations: Pascal Andrei – Why Airbus Has a CSO and Not a CISO

Accenture Responds to INC Ransomware Group’s Data Theft Claims

HPE Patches Critical Flaws in Central On-Premises Platform

Android’s December 2026 Updates Patch Vulnerabilities, Improve Protections

Aikido Security’s Valuation Climbs to $4B With $370M Funding Round

Rival Security Launches With $10 Million and a Pay-for-Results Pricing Model

Mint Security Emerges From Stealth With $35 Million in Funding

2026 CISO Salary Report: Company Size Matters More Than AI

Flipboard Whatsapp Whatsapp Email

The full story

This article is one source in a clustered incident — the cluster page carries the summary, timeline and every other outlet covering it.

Django4Shell: Incomplete Fix Leads to GeoDjango RasterField File-Write and RCE Risk (CVE-2026-124827) On 2 December 2026 Django released versions 6.1.4, 6.0.11 and 5.2.20 to fix seven vulnerabilities, the most significant being CVE-2026-124827 ("Django4shell"), reported by Mohamed K. Fathy of Robusta Technology Group. The flaw lies in GeoDjango's RasterField: assigning a raster definition with a user-controlled name parameter and a non-default GDAL driver (such as EHdr) can cause GDAL to write a file to an attacker-chosen path, which the articles say can enable remote code execution. The write occurs during form validation, so no database access is needed. Exploitation requires an authenticated staff-level account; sources note that three of the four preconditions are typically met by default in standard GeoDjango setups. The issue is the third incomplete fix for the same attack surface: CVE-2026-15307 (August 2026) and CVE-2026-87890 (October 2026) guarded spatial lookups but not the field assignment and ModelForm path. Django's advisory says RasterField now defaults to non-editable and raises GDALException for dict or JSON definitions specifying non-default drivers; it notes SSRF remains possible with untrusted input. Severity is rated High (CVSS 4.0 8.7, CVSS 3.1 8.8) by Snyk and the Django/CVE record; Fathy and some outlets describe it as 9.0 Critical, so views diverge. Snyk and Cybersecuritynews report no confirmed exploitation as of 2 December, and a public proof-of-concept appeared on 3 December per the disclosure site. The same releases fix other issues, including a High SQL injection in range and lookups (CVE-2026-132092). 18 sources 75