An issue was discovered in Django 6.1 before 6.1.4, 6.0 before 6.0.11, and 5.2 before 5.2.20. `django.contrib.gis.db.models.RasterField` allows the creation of files at attacker-controlled locations via the `name` parameter of a data definition. Depending on the raster driver, this could enable remote code execution. Earlier, unsupported Django series (such as 5.1.x, 5.0.x, and 4.2.x) were not evaluated and may also be affected. Django would like to thank Mohammed Fathy for reporting this issue.
https://nvd.nist.gov/vuln/detail/cve-2026-124827
https://groups.google.com/g/django-announce
https://github.com/django/django/commit/b70d098878ae1a65fa2377be776610500ff44336
https://github.com/django/django/commit/a3934abd4c0d43430efec34d6ae933794df2c2f5
https://github.com/django/django/commit/6b5d29eae050ac7cf72cc5a407d2094ad8e83789
https://github.com/django/django/commit/02d09443c441ffc8064206dc4a8bdc6496fa49b0
Published: 2026-12-02
Updated: 2026-12-02
Named Vulnerability: Django4Shell
Base Score: 7.5
Vector: CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P
Severity: High
Base Score: 8.8
Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Severity: High
Base Score: 8.7
Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Severity: High