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

Source: https://junglewise.ai/threats/cve-2026-124827-an-issue-was-discovered-in-django-6-1-before-6-1-4-6-0-before-6  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-12-02. Updated: 2026-12-02  
License: CC BY 4.0 with a link back

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](https://junglewise.ai/threats/technologies/django-software-foundation-django). Vendors: [Django Software Foundation](https://junglewise.ai/threats/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

- [https://pypi.org/project/Django/](https://pypi.org/project/Django/)
- [https://docs.djangoproject.com/en/dev/releases/security/](https://docs.djangoproject.com/en/dev/releases/security/)

## Related threats

- [Django heap buffer overflow in OGRGeometry.wkb](https://junglewise.ai/threats/cve-2026-132809-an-issue-was-discovered-in-django-6-1-before-6-1-4-6-0-before-6)
- [Django SQL injection in range and in lookups](https://junglewise.ai/threats/cve-2026-132092-an-issue-was-discovered-in-django-6-1-before-6-1-4-6-0-before-6)
- [Django truncatechars_html cross-site scripting](https://junglewise.ai/threats/cve-2026-115868-an-issue-was-discovered-in-django-6-1-before-6-1-4-6-0-before-6)
- [Django GIS spatial reference string injection](https://junglewise.ai/threats/cve-2026-114582-an-issue-was-discovered-in-django-6-1-before-6-1-3-6-0-before-6)
- [Django SSRF in GeoJSON coordinate reference systems](https://junglewise.ai/threats/cve-2026-111362-an-issue-was-discovered-in-django-6-1-before-6-1-3-6-0-before-6)
