PyPI · Servers and applications
CVE-2026-124827
Server-side file-write via RasterField assignment
- Severity
- High 8.8
- Published
- 2 Dec 2026
- Last changed
- 2 Dec 2026
- Added to UpHeron
- 2 Dec 2026
- Fixed in
- 5.2.20, 6.0.11, 6.1.4
- Weakness
- CWE-73
- Attack
- Over the network · Needs a user account · No user action needed
- Attacker can
- Read data · Change data · Take it down
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H- Sources
- CVE Program
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.
Affected software
| Software | Affected versions |
|---|---|
DjangoServers and applications · cna:djangoproject|django |
|
DjangoPyPI · osv:PyPI:django |
|
About Django
Python web framework
- Developers who used it in the past year
- 12.6%Stack Overflow Developer Survey 2025, 2025
- Weekly downloads (PyPI)
- 11,539,052PyPI Stats, 29 Nov 2026
- GitHub stars
- 91,804GitHub, 29 Nov 2026
- Forks
- 35,001GitHub, 29 Nov 2026
- Developer
- Django Software FoundationWikidata
- License
- 3-clause BSD LicenseWikidata
- Written in
- PythonWikidata
- First released
- 2004Wikidata
- First published on GitHub
- 28 Apr 2012GitHub
Release lines
| Release | Latest | Security fixes |
|---|---|---|
| 6.1 | 6.1.3 | Until 31 Dec 2027 |
| 6.0 | 6.0.10 | Until 30 Apr 2027 |
| 5.2 (LTS)LTS | 5.2.19 | Until 30 Apr 2028 |
| 5.1 | 5.1.15 | Ended 3 Dec 2025 |
| 5.0 | 5.0.14 | Ended 2 Apr 2025 |
| 4.2 (LTS)LTS | 4.2.30 | Ended 7 Apr 2026 |
From endoflife.date.
Vulnerabilities in Django
- In our list
- 18
- Published in the last 12 months
- 17
- Critical, last 12 months
- 1
- High, last 12 months
- 1
- Known exploited
- 0
- CVE-2026-132809Heap buffer overflow in OGRGeometry.wkbMedium 5.3 2 Dec 2026
- CVE-2026-132092Potential SQL injection in range and in lookupsCritical 9.8 2 Dec 2026
- CVE-2026-127929Information leakage in admin changelist via reverse relationsLow 2.7 2 Dec 2026
- CVE-2026-125673Potential cache poisoning via dot segments in request pathsLow 3.7 2 Dec 2026
- CVE-2026-119642Information leakage in admin changelist via "pk" alias for OneToOneFieldLow 2.7 2 Dec 2026
- CVE-2026-115868Potential cross-site scripting vulnerability in truncatechars_htmlMedium 6.1 2 Dec 2026
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-124827