CVE-2026-124827

8.8High

Published Dec 2, 2026 · NVD status: Deferred · AI triage by gemini-3.1-flash-lite

8.8CVSS

High

0CVSS v3.110

Attack vector
Network
Complexity
Low
Privileges
Low
User action
None
Impact
Full C/I/A compromise
Weakness
CWE-73

What an attacker gets

Authenticated attackers can achieve remote code execution by writing files to arbitrary locations. This is possible through the RasterField name parameter in Django's GIS module.

Root cause

The RasterField implementation fails to properly sanitize the name parameter, allowing path traversal during file creation.

Affected versions

  • Django 6.1 before 6.1.4, 6.0 before 6.0.11, and 5.2 before 5.2.20
  • older versions may also be affected

CVSS v3.1 · CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Fix & remediation

Upgrade to Django 6.1.4, 6.0.11, or 5.2.20. If you cannot upgrade, audit and restrict access to any forms or APIs that utilize RasterField.

remediation — bash
$ pip install --upgrade django

AI-suggested. Run it in staging first and check it against the vendor advisory. Why?

NVD description

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.

References

Source: nvd.nist.gov/vuln/detail/CVE-2026-124827

More fully triaged vulnerabilities you may want to check next.