Django Releases Security Updates for High-Severity RCE and SQL Injection Flaws
Share
The developers of the Django web framework have issued urgent Django security updates to address seven vulnerabilities, including a high-severity remote code execution (RCE) flaw and a critical SQL injection vulnerability. Users of the open-source Python framework are urged to upgrade their installations immediately to the latest patched versions.
The security release covers several supported branches. The Django project has advised developers to move to versions 6.1.4, 6.0.11, or 5.2.20, depending on their current release series. While there are no confirmed reports of these flaws being exploited in the wild, the severity of the findings has prompted calls for rapid remediation.
Django4Shell and RasterField Vulnerabilities
The most prominent of the flaws is tracked as CVE-2026-124827, dubbed “Django4Shell” by security researcher Mohammed Fathy of Robusta Technology Group. This vulnerability resides in the RasterField component, which handles geospatial raster data for applications using PostGIS.
Under certain conditions, the flaw allows an attacker to write files to arbitrary locations on the server. If the application’s filesystem permissions allow, this file-write capability could enable remote code execution (RCE), allowing an attacker to alter application code or access sensitive credentials. Cybersecurity firm Snyk noted that while exploitation typically requires access to a staff or administrator account, the prevalence of credential theft makes this a significant risk for enterprises.
To address this, Django has changed RasterField to be non-editable by default. Developers who legitimately collect raster data through forms may need to modify their application logic and perform testing before restoring previous functionality.
Critical SQL Injection Risk
A second high-severity vulnerability, CVE-2026-132092, involves a critical SQL injection risk. Snyk has assigned this flaw a score of 9.3 out of 10 under the Common Vulnerability Scoring System (CVSS) 4.0.
The vulnerability can be triggered during queries using range or “in” lookups when they contain percent signs in aliases or key transforms. Unlike the RCE flaw, this SQL injection vulnerability does not require prior administrative privileges to exploit, making it a high priority for security teams. The issue is not limited to geospatial applications and can affect any Django installation using these specific query conditions.
Additional Fixes and Remediation
Beyond the primary high-severity flaws, the Django security updates resolve five other issues, including:
- Cache poisoning;
- Cross-site scripting (XSS);
- A heap buffer overflow;
- Two information disclosure vulnerabilities in the administrative interface.
The Django project warned that even after patching, applications accepting untrusted raster data could remain susceptible to server-side request forgery (SSRF). This follows previous attempts to fix similar request forgery issues in August and October that did not fully cover the RasterField model.
Security experts recommend that CISOs and technical leads immediately inventory internet-facing applications running django.contrib.gis. Lalit Rawat, CISO at Kanerika, advised that enterprises should treat the RCE flaw as an emergency, noting that administrative logins are often high-value targets for phishing.
In addition to installing the patches, administrators should clear potentially affected caches, as the update does not automatically invalidate existing responses. Security teams are also encouraged to review application logs for any suspicious activity that may have occurred prior to the update and to ensure that application processes operate with the least privilege necessary on the server filesystem.



