CVE-2026-124827: Server-side file-write via RasterField assignment
djangoproject · Django
Vendor fix available · Affected: djangoproject · Exploitation: not established
Verdict
RoutineA fix exists and nothing on record suggests attackers are using it.
- NoAttacks seen
- NoPublic exploit code
- n/aExploit odds: not scored yet
- YesFix available: Vendor fix available
How we decide
Patch now: attacks are on record (CISA KEV, the EU exploited list, CISA marking exploitation active, or a report of exploitation), or exploit code is public for a flaw reachable over the network with no login that has exploit odds of 10% or more, or is rated critical with odds of at least 1%. Patch this cycle: any other public exploit code, scanning observed, or exploit odds of 10% or more. Routine: a fix exists and none of those. No verdict yet: no fix on record and nothing else known. The verdict says how soon to act, not how severe the flaw is, and it changes when these facts change.
What it isNVD
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.
Exploit requirementsfrom the CVSS 3.1 vector in the CVE record; NVD has not scored it yet
- Where from
- Remotely, over the network
- Login
- A regular user account
- User action
- None needed
- Conditions
- None stated in the score
The published text states nothing further that an attacker needs.
Are you affected?
The answer appears here.
Or hand it to your AI agent. The prompt carries the facts on this page and only commands that read package and kernel state; it tells the agent to change nothing.
No EPSS score yet. The score appears once FIRST publishes it.
Check your systemsRead-only commands per release
Assess your exposure
Commands that only read package and kernel state, for each release we checked. They change nothing on the host.
Affected versions, per the CVE record
- The CNA record lists Django versions from 5.2 up to, but not including, 5.2.20 as affectedchecked 2 Dec 15:01 UTC
- The CNA record lists Django versions from 6.0 up to, but not including, 6.0.11 as affectedchecked 2 Dec 15:01 UTC
- The CNA record lists Django versions from 6.1 up to, but not including, 6.1.4 as affectedchecked 2 Dec 15:01 UTC
Not checked: Red Hat, Ubuntu, Debian, SUSE, Alpine. Treat distributions and products not listed as unknown, not unaffected.
ExploitationNot established
ExploitationNot established
Not in CISA KEV as of catalogue 2026.11.30 (30 Nov)
- Not establishedNothing in the sources we check
Not seen so far: in CISA KEV · exploited (reported) · scanning observed · proof of concept public.
Weakness and public checksExternal Control of File Name or Path
Weakness and public checks
- Public check
- No public nuclei template
- Weakness
- External Control of File Name or Path · File and Path Handling
Related CVEsDjango
Other CVEs in Django
Every published CVE for djangoproject Django, by how far exploitation has gone. This one is among them.
Coverage2 articles · 2 outlets
Coverage2 articles · 2 outlets
One row per outlet, in order of first report. First in our coverage: The Hacker News, 2 Dec.
- Wed 2 Dec, 15:00 UTC. The Hacker News, first report. Django fixes critical GeoDjango flaw enabling remote code execution.
- Wed 2 Dec, 16:01 UTC. SecurityOnline, its first report on the story. Django fixes Django4Shell RCE flaw in GeoDjango RasterField.
- First report
- Article
- Running total
Show as tableHide table
| Published (UTC) | Outlet | Headline |
|---|---|---|
| 2 Dec 15:00 | The Hacker News | Django fixes critical GeoDjango flaw enabling remote code execution |
| 2 Dec 16:01 | SecurityOnline | Django fixes Django4Shell RCE flaw in GeoDjango RasterField |
- Django fixes critical GeoDjango flaw enabling remote code executionThe Hacker News · first in our coverage
New articles also arrive in the RSS feed.