What is CVE-2026-124827?
CVE-2026-124827 is a high-severity path traversal vulnerability in djangoproject Django, published on 2 Dec 2026. Any signed-in user can exploit it over the network, with no action from the victim.
Official 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.
Weakness: CWE-73
How severe is CVE-2026-124827?
CVE-2026-124827 scores 8.7 out of 10 under CVSS 4.0, which is high severity. It was scored by DSF.
- Attack vector
- Network
- Attack complexity
- Low
- Attack requirements
- None
- Privileges required
- Low
- User interaction
- None
- Confidentiality
- High
- Integrity
- High
- Availability
- High
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
Which versions are affected by CVE-2026-124827?
An affected version is only exploitable if your software calls django.contrib.gis.db.models.RasterField. Many projects that include it are not exposed.
How do I fix CVE-2026-124827?
Upgrade djangoproject Django to the fixed version for your release line. The advisory names 6.1.4, 6.0, 6.0.11 and 5.2.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2026-124827 being exploited?
There is no known exploitation of CVE-2026-124827 in the wild and no public exploit code.
Public exploit code: 7 proofs of concept on GitHub.
Sources
Also known as ALPINE-CVE-2026-124827, DEBIAN-CVE-2026-124827, GHSA-fh3p-824r-m74q, UBUNTU-CVE-2026-124827.