---
title: Django 6.1.4, 6.0.11 and 5.2.20 fix seven flaws, led by a high-severity RasterField file write that can lead to RCE | ctxsec
url: https://ctxsec.com/items/django-security-releases-6-1-4-6-0-11-5-2-20-rasterfield-file-write-cve-2026-124827
description: "Django's Dec 2 releases fix CVE-2026-124827 (high): assigning a user-controlled raster definition with a non-default GDAL driver to a PostGIS RasterField could write files to attacker-chosen paths, possibly enabling RCE, reachable by default through admin or ModelForms. Also fixed: XSS in truncatechars_html (moderate), potential SQL injection in range/in lookups, cache poisoning via dot segments, two admin changelist info leaks and a GDAL heap overflow."
status: "vendor advisory (Django)"
published: 2026-12-02
---

> Django's Dec 2 releases fix CVE-2026-124827 (high): assigning a user-controlled raster definition with a non-default GDAL driver to a PostGIS RasterField could write files to attacker-chosen paths, possibly enabling RCE, reachable by default through admin or ModelForms. Also fixed: XSS in truncatechars_html (moderate), potential SQL injection in range/in lookups, cache poisoning via dot segments, two admin changelist info leaks and a GDAL heap overflow.

[← Cybersecurity News](/news) · [markdown](/items/django-security-releases-6-1-4-6-0-11-5-2-20-rasterfield-file-write-cve-2026-124827.md)

vendor advisory (Django)

2026-12-02 2:43 PM ET

### Django 6.1.4, 6.0.11 and 5.2.20 fix seven flaws, led by a high-severity RasterField file write that can lead to RCE

- RasterField now defaults to editable=False; Django notes SSRF is still possible if untrusted input is assigned to RasterField.
- After upgrading, clear caches that may hold poisoned entries (CVE-2026-125673).

Sources: [Django weblog (Dec 2, 2026)](https://www.djangoproject.com/weblog/2026/dec/02/security-releases/) · [oss-security (Dec 2, 2026)](https://seclists.org/oss-sec/2026/q4/974)
