The Django team has released security updates for its supported framework branches after identifying seven vulnerabilities, including two rated high severity. One of the flaws could allow an attacker to write files to a server and, depending on the raster driver in use, potentially execute code remotely.
The most serious issue, tracked as CVE-2026-124827, affects applications that use Django’s PostGIS RasterField. A specially crafted raster definition containing a user-controlled name and a non-default driver could cause the GDAL library to write a file to a location chosen by an attacker. The risk depends on the raster driver, but Django says the issue could lead to remote code execution.
The vulnerability could be reached through models that expose a RasterField in Django’s administration interface, a ModelForm, or a writable model serializer. Django’s fix makes RasterField non-editable by default and rejects untrusted assignments that specify a non-default driver. Applications that need other drivers can use GDALRaster to mark the supplied value as trusted. The issue does not affect ordinary geometry fields, and Django says RasterField is implemented only for PostGIS.
The release also fixes CVE-2026-132092, another high-severity issue involving possible SQL injection in certain uses of the range and in lookups. The conditions are specific: the affected queries involve aliases or key transforms containing percent signs, and the vulnerable paths require particular query construction patterns. Django has tightened validation around the range lookup as part of the fix.
Five additional disclosures cover cross-site scripting, cache poisoning, information exposure in the administration interface and a heap buffer overflow affecting very large geometry data. The XSS issue, CVE-2026-115868, involves the truncatechars_html template filter and the HTML-enabled truncation method when particular input lengths are rendered inside an HTML attribute. The cache-poisoning issue, CVE-2026-125673, could affect deployments using Django’s cache middleware or cache_page() under certain URL and configuration conditions.
The two information-disclosure flaws affect admin changelist lookups involving OneToOneField primary-key aliases and reverse relations. The remaining issue, CVE-2026-132809, concerns an undersized memory allocation in the GDAL geometry interface when processing geometries larger than 4GB on 64-bit systems, which could cause crashes or undefined behaviour.
Django says the fixes are included in versions 6.1.4, 6.0.11 and 5.2.20. The security release applies to the main development branch and the supported 6.1, 6.0 and 5.2 series. The project classifies the RasterField and SQL injection issues as high severity, the XSS issue as moderate, and the remaining disclosures as low severity.
Administrators running applications that use the affected framework branches should review the official release notes and update to the corresponding fixed version. Django also notes that the cache-poisoning fix does not clear previously stored responses, so deployments that may have been affected should clear relevant caches after upgrading.
The Django project’s December 2 security announcement lists all seven issues and the available patched releases. Abijita has also covered other recent server-side security issues, including a file-processing flaw that could turn crafted uploads into server commands.




