CVE-2026-124827Django GIS RasterField arbitrary file creation flaw
CVSS score
8.7
High
CVSS 4.0 from 6a34fbeb-21d4-45e7-8e0a-62b95bc12c92
Exploit probability (EPSS)
No EPSS score yet.
CISA KEV
Not in KEV
No confirmed exploitation reported by CISA so far.
In plain words
An authenticated user who can define raster data can make Django create files at locations they choose, which may lead to code execution depending on the raster driver. Django 5.2 before 5.2.20, 6.0 before 6.0.11 and 6.1 before 6.1.4 are affected, and older unsupported series were not evaluated. Update to a fixed version in your series, as listed in the Django release notes.
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.
Source: NVD · CNA: 6a34fbeb-21d4-45e7-8e0a-62b95bc12c92
How to fix it, step by step
Check whether you're affected
Find every system running djangoproject Django and compare its version with the affected versions.
Update to a fixed version
- Update Django to 5.2.20, 6.0.11, 6.1.4 or later, on the branch you run.
Confirm the fix
Check that every affected system now reports a fixed version, and recheck the vendor's advisory: fixes are sometimes revised.
Was this useful?
How it can be exploited
- Attack vector
- Network
- Attack complexity
- Low
- Attack requirements
- None
- Privileges required
- Low
- User interaction
- None
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Values in red make the vulnerability easier to exploit or more damaging. 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Affected products
| Affected products | Versions |
|---|---|
| djangoproject Django | ≥ 6.1, < 6.1.4 · ≥ 6.0, < 6.0.11 · ≥ 5.2, < 5.2.20 |
Weakness
Timeline
- Published:
- Last modified:
Frequently asked questions
Is CVE-2026-124827 being exploited?
There is no confirmed exploitation in CISA's KEV catalog so far.
What is the CVSS score of CVE-2026-124827?
CVE-2026-124827 has a CVSS 4.0 base score of 8.7 (high).
Which versions are affected?
Djangoproject Django (≥ 6.1, < 6.1.4; ≥ 6.0, < 6.0.11; ≥ 5.2, < 5.2.20)
Is there a patch for CVE-2026-124827?
The official record links to vendor advisories or patches; see “What to do” above.
References
- docs.djangoproject.com/en/dev/releases/security/
- github.com/django/django/commit/02d09443c441ffc8064206dc4a8bdc6496fa49b0
- github.com/django/django/commit/6b5d29eae050ac7cf72cc5a407d2094ad8e83789
- github.com/django/django/commit/a3934abd4c0d43430efec34d6ae933794df2c2f5
- github.com/django/django/commit/b70d098878ae1a65fa2377be776610500ff44336
- groups.google.com/g/django-announce
- www.djangoproject.com/weblog/2026/dec/02/security-releases/
Data: NVD, CVE.org (cvelistV5), CISA KEV and FIRST EPSS. Summary written by RedCVE with AI assistance from the official data.