# Django GeoDjango RasterField file write can reach code execution through a normal form (CVE-2026-124827)

> Django GeoDjango RasterField file write can reach code execution through a normal form (CVE-2026-124827), also tracked as CVE-2026-124827 / Django4Shell is a high-severity threat campaign HOL Guard tracked from Dec 2, 2026 to Dec 3, 2026, verified against 4 primary sources and last reviewed Dec 3, 2026. Active tracking has ended and the record remains published as a permanent historical research record.

Canonical: https://hol.org/guard/security/campaigns/cve-2026-124827-django-geodjango-rasterfield-file-write
Last reviewed: Dec 3, 2026
Tracking status: historical / inactive

## Key facts

- Severity: high
- Confidence: high
- First observed: Dec 2, 2026
- Last observed: Dec 3, 2026
- Primary sources: 4
- Reviewed artifacts: 1

## What happened

Django's December 2, 2026 security release (6.1.4, 6.0.11, 5.2.20) fixes CVE-2026-124827, a high-rated flaw in GeoDjango: assigning a raster definition with an attacker-controlled name and a non-default driver to a RasterField can make GDAL write a file at an attacker-chosen path, and with some drivers that write can reach code execution. RasterField falls back to the CharField form field, so the path was reachable by default through the admin, ModelForms and writable serializers, with staff-level authentication as the main requirement, per reporter Mohammed Fathy (Django4Shell, CVSS 9.0). The flaw is the assignment path left over after the August 2026 (CVE-2026-15307) and October 2026 (CVE-2026-87890) fixes guarded spatial lookups in the same module. The same release fixes six more flaws, including CVE-2026-132092, a high-rated SQL injection in range and in lookups.

## Evidence limits

No known exploitation was listed when Django published the release on December 2, 2026; HOL's Guard feed lists the flaw as not known to be exploited and the Django advisory names no exploitation. HOL did not reproduce the flaw; the account rests on the Django advisory and the reporter's account as reported by The Hacker News. The 9.0 score is the reporter's; Django rates the flaw high without a CVSS score in its advisory.

- RasterField exists only on PostGIS; geometry fields were not affected, and a Django app with no GeoDjango and no RasterField model has no exposure to this flaw
- An app that keeps RasterField out of the admin, ModelForms and writable serializers and never assigns untrusted input to it is not reachable through the default path
- The file-write path runs through admin, form or serializer machinery and, on the reporter's account, needs staff-level authentication; it is not an unauthenticated internet-facing flaw
- Unsupported Django series were not evaluated for these flaws and may also be affected

## Timeline

- Aug 1, 2026 — other: Django fixed CVE-2026-15307 in August 2026, covering file writes through spatial lookup raster parsing.
- Oct 1, 2026 — other: CVE-2026-87890, fixed in October 2026, was an incomplete patch for the August issue and opened a request forgery route through crafted raster payloads; the assignment path stayed open.
- Dec 2, 2026 — disclosure: Django issued 6.1.4, 6.0.11 and 5.2.20 fixing seven flaws, led by CVE-2026-124827 in GeoDjango RasterField assignment.
- Dec 3, 2026 — other: HOL Guard published the operator write-up with the scope, the checks, and the fix steps.

## Reviewed artifacts

- Django (GeoDjango RasterField, PostGIS only)@6.1 before 6.1.4, 6.0 before 6.0.11, 5.2 before 5.2.20 affected; fixed in 6.1.4, 6.0.11, 5.2.20 (generic)

## Sources

- [Django security releases issued December 2, 2026](https://www.djangoproject.com/weblog/2026/dec/02/security-releases/) — other primary, observed Dec 2, 2026
- [The Hacker News on Django4Shell, December 2, 2026](https://thehackernews.com/2026/12/new-django4shell-vulnerability-enables.html) — other primary, observed Dec 2, 2026
- [HOL Guard operator write-up](https://hol.org/blog/cve-2026-124827-django-geodjango-rasterfield-file-write) — other primary, observed Dec 3, 2026
- [HOL Guard evidence page for CVE-2026-124827](https://hol.org/guard/security/cves/CVE-2026-124827-server-side-file-write-via-rasterfield-assignment) — other primary, observed Dec 2, 2026

## Machine-readable exports

- [JSON record](https://hol.org/guard/security/campaigns/cve-2026-124827-django-geodjango-rasterfield-file-write/data.json)
- [Artifact CSV](https://hol.org/guard/security/campaigns/cve-2026-124827-django-geodjango-rasterfield-file-write/artifacts.csv)
- [STIX 2.1 bundle](https://hol.org/guard/security/campaigns/cve-2026-124827-django-geodjango-rasterfield-file-write/stix.json)
- [Markdown record](https://hol.org/guard/security/campaigns/cve-2026-124827-django-geodjango-rasterfield-file-write/index.md)

Corrections: https://hol.org/guard/security/campaigns/cve-2026-124827-django-geodjango-rasterfield-file-write/corrections
