A specially crafted form submission containing malicious raster data can trigger a server-side file-write vulnerability in Django’s GeoDjango component. Depending on application access controls and the GDAL driver configuration, this could potentially lead to remote code execution. That is the risk behind Django4Shell (CVE-2026-124827), a vulnerability in Django’s GeoDjango component. A compromised account with permission to access and submit the affected RasterField form could be used to exploit this vulnerability. If successful code execution is achieved, the attacker may gain access to application secrets, database credentials and other resources available to the Django process.
Django released fixes on December 2, 2026. Rolling them out across every production instance takes time. AppTrana WAAP detects and blocks Django4Shell exploit attempts at the perimeter, so applications stay protected through the patch window. This blog covers the root cause, affected versions, exploitation chain, detection steps, and remediation.
What is CVE-2026-124827?
CVE-2026-124827, also known as Django4Shell, is a remote code execution vulnerability in Django, one of the most widely used Python web frameworks. It affects GeoDjango, the Django component that stores and processes geographic and map data. Organizations use it to build applications that handle location data, such as logistics, mapping, real estate, and field operations platforms.
Django4Shell is the third GeoDjango vulnerability in four months. Fixes released in August and October 2026 closed earlier attack paths in the same component. Django4Shell introduces a separate attack path through RasterField assignment. Earlier fixes addressed vulnerabilities involving spatial lookups, while this vulnerability affects the field-assignment process. A component that needs three fixes in quick succession deserves closer monitoring and an extra layer of protection.
Risk Assessment
- Severity: High
- CVSS Score: 8.8
- Vector: Network-based, requires an authenticated account
- Exploit Availability: Technical details public. No weaponized exploit confirmed
- Exploit Complexity: Low
- Active Exploitation: None confirmed. Not listed in CISA KEV as of December 4, 2026
Root Cause of CVE-2026-124827 in Django
The vulnerability exists in GeoDjango’s RasterField handling. When an application assigns an attacker-controlled raster definition containing a crafted file name and a non-default GDAL driver, Django may pass the definition to GDAL without adequately restricting the resulting file operation. This can allow an attacker to write files to locations accessible to the application process, potentially leading to remote code execution under certain conditions. An attacker can exploit this gap by submitting a specially crafted map file through the Django admin panel or an application form.
What Django4Shell Means for Your Business
Once the attacker’s code runs, it holds the same access as the application itself. That includes:
- Application secrets and encryption keys
- Database credentials, and through them customer and financial records
- Cloud and API credentials stored on the server
- A foothold to move into other systems on the internal network
The login requirement offers limited protection. In large organizations, admin access often extends to content teams, support staff, analysts, partners, and contractors. Phishing, reused passwords, and insider misuse are common ways to obtain these accounts. One compromised account is enough.
For regulated businesses, a compromise of this kind can trigger incident reporting duties, such as the six-hour reporting window under CERT-In directions, along with obligations under the DPDP Act and PCI DSS.
Patching also takes time. Production servers, background workers, and vendor-built applications all need the upgrade. Applications on older, unsupported Django versions receive no fix at all. Organizations using GeoDjango’s RasterField with a PostGIS backend should assess whether the field is exposed through Django Admin, ModelForms or writable model serializers. Applications running affected Django versions with these configurations should be treated as potentially vulnerable until patched
To assess exposure quickly, ask your application teams four questions:
- Do any of our applications, including vendor-built ones, run on Django?
- Do any of them use GeoDjango to store map or satellite image data?
- Can users edit that data through the admin panel, an application form or an API?
- Which Django version does each application run?
If the answer to all of the first three questions is yes and the application runs an affected version, treat it as exposed.
CVE-2026-124827 Affected Versions
| Django branch | Affected versions | Fixed version |
| 6.1.x | 6.1 before 6.1.4 | 6.1.4 |
| 6.0.x | 6.0 before 6.0.11 | 6.0.11 |
| 5.2.x (LTS) | 5.2 before 5.2.20 | 5.2.20 |
| 5.1.x, 5.0.x, 4.2.x | Out of support. Not evaluated by Django and may be affected. | No fix. Upgrade to a supported version. |
How a Django4Shell Attack Unfolds
- Gain access – The attacker logs in with a valid account obtained through phishing, a reused password or an insider.
- Submit a malicious map file – The attacker uploads crafted map data through an admin panel or application form.
- Plant a hidden file – The server writes the attacker’s file into a location the application loads automatically at startup.
- Take control – The malicious code runs the next time the application restarts or scales up. Routine deployments, restarts, and scheduled jobs are enough to trigger it.
Other Vulnerabilities Fixed in the December 2026 Release
The same release fixes six more vulnerabilities. The most severe is CVE-2026-132092, a SQL injection rated 9.8. It can expose or alter database records in applications that build certain database queries from user input. Teams should patch all seven in the same upgrade cycle.
| CVE | Vulnerability | CVSS v3.1 |
| CVE-2026-132092 | SQL injection in database queries | 9.8 |
| CVE-2026-124827 | Remote code execution through map data (Django4Shell) | 8.8 |
| CVE-2026-115868 | Cross-site scripting in page templates | 6.1 |
| CVE-2026-132809 | Memory overflow in map data processing | 5.3 |
| CVE-2026-125673 | Cache poisoning through crafted URLs | 3.7 |
| CVE-2026-119642 | Information leak in the admin panel | 2.7 |
| CVE-2026-127929 | Information leak in the admin panel | 2.7 |
How to Detect CVE-2026-124827 Exploitation
No indicators of compromise have been published yet. Ask your security operations and application teams to:
- Check application servers for unexpected Python startup files, such as sitecustomize.py and .pth files.
- Review admin panel activity for unusual edits to map data records, especially from accounts that rarely touch them.
- Set up alerts for when an application process creates new files in code directories.
- Watch for unexpected outbound connections from application servers.
A failed attempt may leave no trace. An attacker who deletes the planted file after use may leave only web access logs behind.
CVE-2026-124827 Mitigation & Remediation
Take these steps this week:
- Upgrade to Django 6.1.4, 6.0.11 or 5.2.20. Confirm the new version on every server and background worker.
- Move applications on Django 5.1, 5.0 or 4.2 to a supported version.
- Ask software vendors and development partners whether their applications use GeoDjango, and request their patch timelines.
If patching must wait, reduce exposure in the meantime:
- Ask your development team to make map data fields read-only in forms, the admin panel and APIs.
- Review admin access. Remove dormant and unnecessary accounts, and enforce MFA on the rest.
- Limit the application’s permission to write files on the server.
- Place a WAF in front of affected applications to block exploit attempts during the patch window.
Django also advises validating all user input after the upgrade, because the same component can still be misused for server-side request forgery.
AppTrana WAAP Coverage for CVE-2026-124827
AppTrana WAAP has coverage for web application vulnerabilities, including CVE-2026-124827. AppTrana inspects requests sent to admin panels, application forms, and APIs. It blocks malicious map-data payloads before they reach the application, stopping attempts to write files to the server. This keeps Django applications protected through the patch window, including those that cannot be upgraded right away. Blocked requests return a 406 Not Acceptable response.