Django says a user-controlled raster name and a non-default driver could make GDAL write to an attacker-controlled location. Remote code execution is possible depending on the driver; the advisory does not say that every affected deployment permits it.Django released fixes in 5.2.20, 6.0.11, and 6.1.4 on 2 December 2026. Teams using GeoDjango can consult the vulnerability intelligence platform while confirming their installed Django branch and application input paths. This issue concerns RasterField; Django says geometry fields were unaffected.
What it allows
How Does CVE-2026-124827 Reach GDAL?
Django says the vulnerable path begins when an application assigns a raster data definition to RasterField. If the definition contains a user-controlled name and a non-default driver, GDAL could write a server file at an attacker-controlled location. The possible next step is driver-dependent code execution, not a guaranteed outcome.
The exposure can start in ordinary application input paths. RasterField previously fell back to the CharField form field, so admin models, ModelForms, and writable model serializers could accept the value by default. An application is exposed when it both uses the PostGIS RasterField and lets an untrusted party influence the assignment.
The fix changes two defaults. RasterField now sets editable to False, excluding it from a ModelForm unless explicitly included. It also raises GDALException for a dict or JSON string that specifies a non-default driver. Developers who need another driver must wrap a trusted definition in GDALRaster.
Django's vulnerability intelligence overview provides broader triage context. For this CVE, inspect data entry paths rather than assuming every Django installation has a reachable raster assignment.
Who is affected
Which CVE-2026-124827 Versions and Deployments Need Action?
Django identifies its supported 5.2, 6.0, and 6.1 branches as affected before 5.2.20, 6.0.11, and 6.1.4 respectively. The NVD description says older unsupported series, including 4.2, 5.0, and 5.1, were not evaluated and may also be affected. Django's security archive lists only branches with security support at disclosure.
The practical exposure requires GeoDjango's RasterField on PostGIS plus an untrusted route into raster assignment. Review admin registrations, ModelForms, serializers, and direct assignments that accept raster definitions. Confirm whether untrusted users can control the raster name or driver. Treat findings as application-specific exposure evidence, not proof of exploitation.
Upgrade supported branches to Django 5.2.20, 6.0.11, or 6.1.4, as appropriate. For unsupported branches, move to a supported patched line rather than assuming an unassessed older line is safe. After deployment, verify the Django version in each running environment and retest the relevant forms and serializers.
File-write protection does not eliminate the separate SSRF risk. Django warns that assigning untrusted data to RasterField can still make a network request. Validate raster inputs before assignment and allow GDALRaster only around definitions the application has established as trusted. Track the work in the vulnerability management process.
Timeline
-
2026-12-02
Django disclosed CVE-2026-124827 and released fixed versions 5.2.20, 6.0.11, and 6.1.4.
-
2026-12-02
NVD published the CVE record and listed CVSS 4.0 and 3.1 secondary scores.
What to do
-
Find PostGIS RasterField use
Inventory Django services using GeoDjango RasterField on PostGIS. Identify their installed Django branch and every admin, ModelForm, serializer, or direct assignment that accepts raster data.
-
Trace untrusted raster inputs
Check whether an untrusted user can influence a raster definition's name or driver. Review application records for unexpected raster assignments and file changes as defensive triage, not a definitive exploit test.
-
Upgrade each supported branch
Install Django 5.2.20, 6.0.11, or 6.1.4 for the matching branch. Move unsupported installations to a supported patched release.
-
Verify the running fix
Confirm the patched Django version in each running environment. Retest admin forms and serializers, including any RasterField deliberately marked editable.
-
Validate input after patching
Reject untrusted raster definitions before RasterField assignment. Django warns that server-side request forgery remains possible, so review network fetch behavior and trusted GDALRaster wrappers.
What Brandefense can do
- Watch your stack for exploited flaws
Name the vendors and products you run, and Brandefense alerts you when a CVE in them is exploited.
- See CVE-2026-124827 in Brandefense Atlas
The Atlas record of CVE-2026-124827: severity, exploitation status and the sources behind it.
- Vulnerability intelligence platform
Brandefense Vulnerability Intelligence follows which vulnerabilities attackers are using, so your team can patch what is under attack first.
Frequently Asked Questions
Does CVE-2026-124827 affect every Django installation?
No. Django limits RasterField to PostGIS. Assess applications that use it and accept untrusted raster assignments through forms, serializers, admin, or application code.
Which Django versions fix CVE-2026-124827?
Django issued 5.2.20, 6.0.11, and 6.1.4 on 2 December 2026. Install the fixed release for your supported branch and verify the running version.
Does the fix remove raster SSRF risk?
No. Django says untrusted RasterField input can still cause server-side request forgery. Validate raster definitions before assigning them.
Sources
- Django 5.2.20 release notesDjango Software Foundation
- Django security releases issued: 6.1.4, 6.0.11, and 5.2.20Django Software Foundation
- GDAL API security considerationsDjango Software Foundation
- CVE-2026-124827 recordNVD