CVE-2026-124827 PUBLISHED

Server-side file-write via RasterField assignment

Assigner: DSF
Reserved: 09.11.2026 Published: 02.12.2026 Updated: 02.12.2026

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.

Metrics

CVSS 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
CVSS Score: 8.7

Product Status

Vendor djangoproject
Product Django
Versions Default: unaffected
  • affected from 6.1 to 6.1.4 (excl.)
  • Version 6.1.4 is unaffected
  • affected from 6.0 to 6.0.11 (excl.)
  • Version 6.0.11 is unaffected
  • affected from 5.2 to 5.2.20 (excl.)
  • Version 5.2.20 is unaffected

Credits

  • Mohammed Fathy reporter
  • Sarah Boyce analyst
  • David Smith analyst
  • Jacob Walls remediation developer
  • Sarah Boyce remediation reviewer
  • Jacob Walls coordinator

References

Problem Types

  • CWE-73: External Control of File Name or Path CWE

Impacts

  • CAPEC-76: Manipulating Web Input to File System Calls