Vulnerability
CVE-2026-15307
An issue was discovered in Django 5.2 before 5.2.17 and 6.0 before 6.0.8. GeoDjango spatial lookups optimistically parse the right-hand-side value as a raster by passing it to the `django.contrib.gis.gdal.GDALRaster` constructor. Any value used in a spatial lookup against a `GeometryField` or `RasterField` reaches this constructor, including untrusted input, for example a spatial-field filter submitted through the Django admin changelist query string by a staff user with view permission. A `dict`, or a `str` holding its JSON representation, is opened in write mode regardless of the constructor's `write=False` default, allowing a file with an attacker-chosen name and contents to be written through a file-backed GDAL driver. Any other `str` is treated as a datasource, allowing an outbound network request through a GDAL virtual filesystem handler. Writing a file to a location later imported by the application can result in 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 Bence Nagy, localhost-detect, and kimchunbok_ for reporting this issue.
47 advisories report this vulnerability, across 9 ecosystems.
Advisories
-
ALPINE-CVE-2026-15307
An issue was discovered in Django 5.2 before 5.2.17 and 6.0 before 6.0.8. GeoDjango spatial lookups optimistically parse the right-hand-side value as a raster by passing it to the `django.contrib.gis.gdal.GDALRaster`…
- ALPINE-EDGE-CVE-2026-15307
- CGA-2gq8-x2r3-c3q9
- CGA-2mq3-5gpg-3fp8
- CGA-3889-56m4-w5gw
- CGA-3cg3-j59h-6gqj
- CGA-3hpw-hwg6-j672
- CGA-3j8w-32cf-hxv6
- CGA-3qhv-3j83-h27q
- CGA-5g5h-m782-rj8f
- CGA-638x-3vcq-6hwp
- CGA-9w3x-4x57-w9cv
- CGA-cpw9-5xh5-42vj
- CGA-fggv-44q2-3jj9
- CGA-g2wc-23fj-2pp9
- CGA-g3mw-83x2-4q5g
- CGA-gqff-54wr-8373
- CGA-hh27-rpx2-h9g3
- CGA-hmc8-f2xh-hcqg
- CGA-phfx-c68x-27qc
- CGA-q2v4-3mv6-crr8
- CGA-qrvm-wm75-wxgj
- CGA-vxvp-pq93-p8ch
- CGA-wj4v-4wpx-93f9
- CGA-x2wf-8w6w-57cf
- CGA-xmjc-cq69-cw6r
-
DEBIAN-CVE-2026-15307
An issue was discovered in Django 5.2 before 5.2.17 and 6.0 before 6.0.8. GeoDjango spatial lookups optimistically parse the right-hand-side value as a raster by passing it to the `django.contrib.gis.gdal.GDALRaster`…
-
GHSA-wvqv-fj8w-qmhm
Django GeoDjango spatial lookups allow file writes and outbound requests through GDAL raster parsing
-
OESA-2026-3496
python-django security update
-
OESA-2026-3497
python-django security update
-
OESA-2026-3498
python-django security update
-
OESA-2026-3499
python-django security update
-
PYSEC-2026-4035
Django GeoDjango spatial lookups allow file writes and outbound requests through GDAL raster parsing
-
RHSA-2026:59135
Red Hat Security Advisory: Red Hat Ansible Automation Platform 2.5 Product Security and Bug Fix Update
-
RHSA-2026:59136
Red Hat Security Advisory: Red Hat Ansible Automation Platform 2.6 Product Security and Bug Fix Update
-
RHSA-2026:59137
Red Hat Security Advisory: Red Hat Ansible Automation Platform 2.7 Product Security and Bug Fix Update
-
RHSA-2026:92861
Red Hat Security Advisory: Satellite 6.19 security update
-
RHSA-2026:95655
Red Hat Security Advisory: Satellite 6.16 EUS security update
-
RHSA-2026:95656
Red Hat Security Advisory: Satellite 6.17 security update
-
RHSA-2026:95657
Red Hat Security Advisory: Satellite 6.18 security update
-
SUSE-SU-2026:3503-1
Security update for python-Django
-
UBUNTU-CVE-2026-15307
An issue was discovered in Django 5.2 before 5.2.17 and 6.0 before 6.0.8. GeoDjango spatial lookups optimistically parse the right-hand-side value as a raster by passing it to the `django.contrib.gis.gdal.GDALRaster`…
-
USN-8848-1
python-django vulnerabilities
-
openSUSE-SU-2026:11464-1
python313-Django-6.0.8-1.1 on GA media
-
openSUSE-SU-2026:11465-1
python313-Django4-4.2.30-5.1 on GA media
-
openSUSE-SU-2026:11491-1
python313-Django5-5.2.17-1.1 on GA media
-
openSUSE-SU-2026:21543-1
Security update for python-Django
References
- https://docs.djangoproject.com/en/dev/releases/security/
- https://github.com/django/django/commit/115ffd0463a765ab1cc93de18e94b5459b8a300e
- https://github.com/django/django/commit/208f80cb682868b584ed0a78f23e4ba6304212aa
- https://github.com/django/django/commit/39b3e2d0c743a338def6c473086ebc06865e86b6
- https://github.com/django/django/commit/f1949c1f9758947ade984c895ff16bef46f56520
- https://groups.google.com/g/django-announce
- https://www.djangoproject.com/weblog/2026/aug/04/security-releases/