Server-side file-write via RasterField assignment
CVE-2026-124827
Key Information:
- Vendor
Djangoproject
- Status
- Django
- CVE ID
- CVE ID:
- CVE-2026-124827
- Vendor
- CVE Published:
- 2 December 2026
- Fixed in
- Fixed in:
- 6.1.4, 6.0.11, 5.2.20
Timeline
Exploit known the day it was published
- ๐
Vulnerability started trending
- ๐พ
Exploit known to exist
- ๐ฐ
First article discovered by The Hacker News
Vulnerability published
Vulnerability Reserved
Badges
How risky is it?
- Partly: Works over the network, but needs a login
- Partly: Exploitation or a working exploit reported
- No: Not on CISA's exploited list
- No: No ransomware use seen
Our verdict
Patch this week
Exploitation is likely. Prioritise the fix.
What to do
1Update to a fixed version
Install the Django release that fixes your version line, or later:
2Can't patch yet? Reduce exposure
It can be reached over the network, so limit who can reach Django. Block it from the internet, allow only trusted hosts or a VPN, and turn off the affected feature if you don't use it, until you can update.
3Look for signs of compromise
Exploitation has been reported, so check logs on exposed Django systems for unusual requests or new processes from before you patched.
4Why it's rated "Patch this week"
- Exploitation or a working exploit has been reported.
- Its CVSS severity is high (8.7).
What is CVE-2026-124827?
An issue was discovered in Django 6.1 before 6.1.4, 6.0 before 6.0.11, and 5.2 before 5.2.20.
django.contrib.gis.db.models.RasterField allows the creation of files at attacker-controlled locations via the name parameter of a data definition. Depending on the raster driver, this could enable remote code execution.
Earlier, unsupported Django series (such as 5.1.x, 5.0.x, and 4.2.x) were not evaluated and may also be affected.
Django would like to thank Mohammed Fathy for reporting this issue.
Affected Version(s)
Django 6.1 < 6.1.4
Django 6.0 < 6.0.11
Django 5.2 < 5.2.20
News Articles
New Django4Shell Vulnerability Enables Django RCE via GeoDjango Form Validation
Django4Shell lets authenticated attackers exploit GeoDjango RasterField form validation to write arbitrary files and achieve remote code execution.
8 hours ago
References
More Djangoproject Vulnerabilities
Vulnerability in Django GeoDjango Component
Performance Degradation Issue in Django Framework
SQL Injection in Django Framework
Facts on this page come from the sources listed above; the writeup is AI-assisted. How we rate vulnerabilities ยท Report a correction
