Science & Tech · Cybersecurity · 1 hr ago
Django updates fix flaw that could let attackers run code on servers
Django's maintainers released three security updates for the Python web framework, fixing seven vulnerabilities.
The most serious, called Django4Shell, affects GeoDjango applications that use RasterField and expose it through forms, the admin panel or writable serializers.
The flaw can let an authenticated attacker write files to a server using specially crafted raster data.
Under some conditions, those files could then be used to run code or alter application files and settings.
The issue is another incomplete fix in a series of GeoDjango flaws addressed in earlier updates.
The updates are versions 6.1.4, 6.0.11 and 5.2.20, and developers should install the version for their Django release.
The releases also fix other security issues, including cross-site scripting, SQL injection and information disclosure.
Django maintainers released updates to fix seven security vulnerabilities, including a flaw that could let an authenticated attacker write arbitrary files and potentially run code on a server.
The flaw, CVE-2026-124827, affects GeoDjango’s RasterField component and is reachable through certain forms, serializers, or admin setups.
The updates are versions 6.1.4, 6.0.11, and 5.2.20.
The sources give different severity scores for the flaw: SecurityWeek reports 8.8, while The Hacker News reports 9.0.
The vulnerability is an incomplete fix for earlier GeoDjango vulnerabilities addressed in August and October 2026.
- Who
- Django maintainers released the updates. An authenticated attacker could exploit the flaw.
- What
- Updates fix seven security vulnerabilities, including CVE-2026-124827, which could enable arbitrary file writes and potentially remote code execution.
- When
- The updates were released on December 2, 2026, according to The Hacker News; SecurityWeek says they were released on Wednesday.
- Where
- The flaw affects Django’s GeoDjango RasterField component and could allow files to be written to accessible paths on a server.
- Why
- The updates address a flaw in which user-controlled raster data is insufficiently validated, as well as six other security bugs.
This story does not have two clearly opposing sides.
Django addressed CVE-2026-15307, an earlier GeoDjango flaw involving server-side file writes.
Django patched CVE-2026-87890, an SSRF vulnerability that was an incomplete fix for the earlier issue.
Django released versions 6.1.4, 6.0.11, and 5.2.20 to address seven security vulnerabilities, including CVE-2026-124827.
- Affected releases
- Django 6.1.4, 6.0.11, and 5.2.20
- Latest vulnerability
- CVE-2026-124827
- SecurityWeek CVSS score
- 8.8
- The Hacker News CVSS score
- 9.0
- Affected component
- GeoDjango RasterField
- Number of security bugs fixed
- 7
2 sources
What people are saying
The attacker controls the target path, file content, and filename via a crafted JSON raster body
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.
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