CVE-2026-124827: Django RasterField server-side file write vulnerability

CVE-2026-124827 · Severity: high · CVSS 8.8 · Published 2026-12-02

Django is a popular web framework for building database-backed applications. A flaw in the RasterField component of Django's geospatial module allows attackers to write files to arbitrary locations on the server, potentially enabling remote code execution depending on the raster driver configuration. This affects Django 6.1 before 6.1.4, 6.0 before 6.0.11, and 5.2 before 5.2.20, and could expose vulnerable Django applications to data loss, service disruption, or complete system compromise.

Technologies: Django Software Foundation Django. Vendors: Django Software Foundation.

Quick answers

Is CVE-2026-124827 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2026-124827 being exploited in the wild.
How severe is CVE-2026-124827?
High severity, with a CVSS score of 8.8, published 2 December 2026.
Which products and versions are affected?
Django Software Foundation Django 6.1 before 6.1.4, 6.0 before 6.0.11, 5.2 before 5.2.20; possibly 5.1.x, 5.0.x, 4.2.x (unsupported).
Is there a fix for CVE-2026-124827?
Yes: fixed in Django 6.1.4, 6.0.11, 5.2.20. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
How is CVE-2026-124827 attacked?
It is attacked over the network, in a software library.
Am I affected by CVE-2026-124827?
Check whether you run Django Software Foundation Django at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • Fixed in: Django 6.1.4, 6.0.11, 5.2.20

Technical details

The vulnerability exists in django.contrib.gis.db.models.RasterField, where the `name` parameter in data definition can be manipulated by an attacker to specify arbitrary file paths. The lack of proper path validation allows creation of files at attacker-controlled locations via RasterField assignment. Depending on the underlying raster driver (e.g., GDAL), this could escalate to remote code execution.

Affected products

  • Django Software Foundation Django 6.1 before 6.1.4, 6.0 before 6.0.11, 5.2 before 5.2.20; possibly 5.1.x, 5.0.x, 4.2.x (unsupported)

Timeline

  • 2026-12-02: disclosed

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.