Djangoproject Django
Server-side file-write via RasterField assignment
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 versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 6.1, < 6.1.4
- >= 6.0, < 6.0.11
- >= 5.2, < 5.2.20
Fixed in 6.1.4, 6.0.11, 5.2.20
Mitigation
Upgrade Django to 6.1.4 or 6.0.11 or 5.2.20 or later.
References
Timeline
Days relative to CVE publicationFirst public PoC 3 h after publication; not in CISA KEV. First PoC: joshuavanderpoll/CVE-2026-124827 (created 2 Dec 2026, found by us: 2 Dec 2026).
PoC repositories
Found on GitHub.1 PoCs
PoCs 1
| Repository | Created | Found by us | Stars | Assessment |
|---|---|---|---|---|
| joshuavanderpoll/CVE-2026-124827 | 2 Dec 2026 +3 h | 2 Dec 2026 | 1 | PoC
Flags · score 30
Below the suspicion threshold (50); does not change the assessment. |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.
PoC characteristics
What to hunt for in your logs · from 1 PoC repoGET /{var}/login/
GET /{var}/{var}/{var}/add/
- Key headers
Cookie: csrftoken={var}; sessionid={var}- Ports
- 8000
- Seen in
- 1 repo: joshuavanderpoll/CVE-2026-124827
- Evidence
- joshuavanderpoll/CVE-2026-124827/CVE-2026-124827.min.py:41 joshuavanderpoll/CVE-2026-124827/CVE-2026-124827.py:251 joshuavanderpoll/CVE-2026-124827/nuclei/CVE-2026-124827.yaml:56
POST /{var}/login/
- Key headers
Cookie: csrftoken={var}Referer: {var}/{var}/login/- Body markers
csrfmiddlewaretoken=username=staffpassword=staffpassnext=/username=password=inapplication/x-www-form-urlencoded- Ports
- 8000
- Seen in
- 1 repo: joshuavanderpoll/CVE-2026-124827
- Evidence
- joshuavanderpoll/CVE-2026-124827/CVE-2026-124827.min.py:32 joshuavanderpoll/CVE-2026-124827/CVE-2026-124827.py:166 joshuavanderpoll/CVE-2026-124827/nuclei/CVE-2026-124827.yaml:47
POST /{var}/{var}/{var}/add/
- Key headers
Referer: {var}/{var}/{var}/{var}/add/- Body markers
csrfmiddlewaretoken=name=pocfield_name=name=poc-testinapplication/x-www-form-urlencoded- Ports
- 8000
- Seen in
- 1 repo: joshuavanderpoll/CVE-2026-124827
- Evidence
- joshuavanderpoll/CVE-2026-124827/CVE-2026-124827.min.py:56 joshuavanderpoll/CVE-2026-124827/CVE-2026-124827.py:328
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/[^/?#]*/login/(?:[?#].*)?$
(?i)^/[^/?#]*/[^/?#]*/[^/?#]*/add/(?:[?#].*)?$
(?i)^/[^/?#]*/login/(?:[?#].*)?$
(?i)^/[^/?#]*/[^/?#]*/[^/?#]*/add/(?:[?#].*)?$
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET [8000] (msg:"GG PoC-Monitor CVE-2026-124827 djangoproject Django exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/login/"; reference:url,poc.griffinguard.io/cve/CVE-2026-124827; classtype:web-application-attack; sid:9529786; rev:1;)
alert http any any -> $HOME_NET [8000] (msg:"GG PoC-Monitor CVE-2026-124827 djangoproject Django exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/add/"; http.header; content:"Cookie: csrftoken="; nocase; reference:url,poc.griffinguard.io/cve/CVE-2026-124827; classtype:web-application-attack; sid:9288684; rev:1;)
alert http any any -> $HOME_NET [8000] (msg:"GG PoC-Monitor CVE-2026-124827 djangoproject Django exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/login/"; http.header; content:"Cookie: csrftoken="; nocase; http.header_names; content:"Referer"; nocase; http.request_body; content:"csrfmiddlewaretoken="; http.request_body; content:"username=staff"; http.request_body; content:"password=staffpass"; http.request_body; content:"next=/"; http.request_body; content:"username="; http.request_body; content:"password="; reference:url,poc.griffinguard.io/cve/CVE-2026-124827; classtype:web-application-attack; sid:9880394; rev:1;)
alert http any any -> $HOME_NET [8000] (msg:"GG PoC-Monitor CVE-2026-124827 djangoproject Django exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/add/"; http.header_names; content:"Referer"; nocase; http.request_body; content:"csrfmiddlewaretoken="; http.request_body; content:"name=poc"; http.request_body; content:"field_name="; http.request_body; content:"name=poc-test"; reference:url,poc.griffinguard.io/cve/CVE-2026-124827; classtype:web-application-attack; sid:9468668; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: djangoproject Django exploit attempt (CVE-2026-124827)
id: gg-pocmon-cve-2026-124827-9529786
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-124827. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-124827
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/login/'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2026.124827
title: djangoproject Django exploit attempt (CVE-2026-124827)
id: gg-pocmon-cve-2026-124827-9288684
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-124827. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-124827
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/add/'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2026.124827
title: djangoproject Django exploit attempt (CVE-2026-124827)
id: gg-pocmon-cve-2026-124827-9880394
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-124827. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-124827
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/login/'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2026.124827
title: djangoproject Django exploit attempt (CVE-2026-124827)
id: gg-pocmon-cve-2026-124827-9468668
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-124827. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-124827
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/add/'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2026.124827