Django has released new versions 6.1.4, 6.0.11, and 5.2.20 on December 2, 2026, to address seven security vulnerabilities. Among these is CVE-2026-124827, a critical flaw with a CVSS score of 9.0.
CVE-2026-124827, also known as Django4Shell, allows for remote code execution through GeoDjango's RasterField assignment. This vulnerability could enable attackers to write files to locations they control, potentially leading to remote code execution.
The flaw is accessible by default on models with RasterField registered in the admin or using ModelForms. However, Django's geometry fields are not affected by this vulnerability.
The Django team credited security researcher Mohammed Fathy for reporting the issue. Additionally, the update addresses a high-severity SQL injection flaw in range and in lookups, identified as CVE-2026-132092.
The Django security advisory recommends validating input before passing it to RasterField to mitigate risks associated with CVE-2026-124827. Although exploitation has been reported, Previdian found no confirmed exploitation in the wild and no independent demonstration of an unauthenticated attack.
