Django patches GeoDjango RasterField flaw CVE-2026-124827
Original title: Django4Shell High-Severity Flaw Could Let Hackers Execute Malicious Code on Web Servers
Fixes ship in 6.1.4, 6.0.11, and 5.2.20 LTS, which also address six other issues, with no confirmed exploitation reported.
Django released updates on December 2, 2026, for a high-severity GeoDjango flaw dubbed Django4Shell and tracked as CVE-2026-124827. On PostGIS, RasterField could pass untrusted raster definitions to GDAL, which under some conditions could write a file to an unintended path; code execution depends on raster drivers and process permissions. Staff access can be enough in the admin, and a public form or API that accepts unvalidated definitions could expose it without login. Previdian said it had found no confirmed exploitation and no independent unauthenticated demonstration.
Unconfirmed: Whether a file write becomes code execution depends on drivers and filesystem permissions, and Previdian’s no-exploitation finding is one firm’s assessment.
- Researcher Mohammed Fathy reported the issue.
- Geometry fields are not affected by this specific flaw.
- The same releases fix a separate high-severity SQL injection in range lookups.
- RasterField is left out of auto-generated model forms unless explicitly included.
- The change does not remove server-side request forgery risk from raster input.
Impact: Unintended file write that may lead to code execution
| Product | Affected | Fixed in |
|---|---|---|
| Django | — | 6.1.4, 6.0.11, and 5.2.20 LTS |
- 1.Upgrade to Django 6.1.4, 6.0.11, or 5.2.20 LTS, then rebuild and redeploy containers.
- 2.If patching is delayed, disable raster submissions from untrusted users.
- 3.After upgrading, review logs for unexpected files or outbound connections and clear affected caches.
- CVEs
- CVE-2026-124827
Vulnerabilities mentioned
All| CVE | Vulnerability | CVSS | EPSS | Signals | Published |
|---|---|---|---|---|---|
| CVE-2026-124827 | Arbitrary file creation in Django RasterField via name | 8.7 | — | PoC ×2 |
From the original article
2 min read at cybersecuritynews.com
Django released security updates on December 2, 2026, to fix a high-severity flaw that could let attackers run malicious code on web servers using the Python framework. The vulnerability, known as Django4Shell and tracked as CVE-2026-124827, affects GeoDjango, the part of Django that handles geographic data. The Django team credited security researcher Mohammed Fathy with […]
By Guru Baran · cybersecuritynews.com
A short excerpt; the article and its images belong to the publisher. Summary, key facts and assessment above are AI-written from the article and can be wrong.