CVE-2026-124827: djangoproject Django · External Control of File Name or Path
Affects djangoproject DjangoSource CVE Database V5
Not known to be exploited · CVSS 8.8 High · fixed in 6.1.4 : patch djangoproject Django soon.
Data as of 2 Dec 2026, 13:32 UTC
Thin evidence
One scorer or none| CNA (DSF) | CVSS 3.1 | 8.8 |
|---|---|---|
| CNA (DSF) | CVSS 4.0 | 8.7 |
- Patch
- Available – fixed in 6.1.4, 6.0.11, 5.2.20
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 2 Dec 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2 Dec 2026.
What to do
Upgrade Django and django to 6.1.4, 6.0.11 or 5.2.20.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| Djangodjango | Affected
| Fixed in
|
| Djangodjango | Affected
| Fixed in
|
| Djangodjango | Affected
| Fixed in
|
PyPIdjangopkg:pypi/djangoOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Upgrade affected Django versions to 6.1.4, 6.0.11, or 5.2.20 or later, where this vulnerability is fixed. No other mitigation is indicated by the vendor advisory.
Description
CVE-2026-124827 is a high-severity vulnerability in Django's RasterField component that allows external control of file names or paths. This flaw exists in Django versions 6.1 before 6.1.4, 6.0 before 6.0.11, and 5.2 before 5.2.20. An attacker can exploit the 'name' parameter to create files at arbitrary locations, potentially leading to remote code execution depending on the raster driver used. The issue was reported by Mohammed Fathy and has been fixed in the specified patched versions.
References
- docs.djangoproject.com/en/dev/releases/security/ (opens in a new tab)
- groups.google.com/g/django-announce (opens in a new tab)
- github.com/django/django/commit/a3934abd4c0d43430efec34d6ae933794df2c2f5 (opens in a new tab)
- github.com/django/django/commit/b70d098878ae1a65fa2377be776610500ff44336 (opens in a new tab)
- github.com/django/django/commit/6b5d29eae050ac7cf72cc5a407d2094ad8e83789 (opens in a new tab)
- github.com/django/django/commit/02d09443c441ffc8064206dc4a8bdc6496fa49b0 (opens in a new tab)
- djangoproject.com/weblog/2026/dec/02/security-releases/ (opens in a new tab)