External Control of File Name or Path in Django - CVE-2026-124827
Published: December 2, 2026
Vulnerability details
The vulnerability allows a remote attacker to write a file to an attacker-controlled location on the server and, depending on the raster driver, potentially execute arbitrary code.
The vulnerability exists due to insufficient validation of the raster output path in django.contrib.gis.db.models.RasterField when assigning untrusted raster definitions. A remote attacker can submit raster data through an application that exposes a writable RasterField to cause GDAL to write a file to an unintended location.
RasterField is available only on PostGIS. Geometry fields are not affected.