· rangkumin.tech

Django ships 6.1.4, 6.0.11 and 5.2.20 to fix flaws including a RasterField file-write bug that could enable remote code execution

The Django team issued security releases 6.1.4, 6.0.11 and 5.2.20 on December 2, 2026. The most serious flaw, high-severity CVE-2026-124827, lets an attacker write files to a chosen location through RasterField and, depending on the raster driver, could enable remote code execution.

Why it matters

CVE-2026-124827 occurs when a raster definition with a user-controlled name parameter and a non-default driver is assigned to RasterField. GDAL can then write a file to an attacker-controlled location. It was reachable by default when a model with RasterField is registered in the admin or used through ModelForms or writable serializers. RasterField is only implemented on PostGIS. The fix makes RasterField non-editable by default and rejects non-default drivers supplied as a dict or JSON.

The same releases fix other issues, including potential XSS in the truncatechars_html filter (moderate), cache poisoning through dot segments in request paths (low), data leakage in the admin changelist (low), and potential SQL injection in the range and in lookups under specific conditions.

Django urges all users to upgrade to the patched versions as soon as possible. Teams using the cache middleware should also clear potentially affected caches, because existing cached responses are not invalidated by the upgrade.

Sources

Choose English or Indonesian. Up to two editions a day. Unsubscribe anytime.