CVE-2026-15307
Fixed in a distro release EPSS 1%CVSS 8.8
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.
Products: djangoproject django
Fixed upstream
| Ecosystem | Package | Fixed in |
|---|---|---|
| PyPI | django | 5.2.17 |
| PyPI | django | 6.0.8 |
Distro releases
| Release | Package | Fixed in |
|---|---|---|
| Chainguard | authentik-2025.12 | no fix |
| Chainguard | authentik-2026.2 | 2026.2.7-r3 |
| Chainguard | authentik-2026.5 | 2026.5.7-r7 |
| Chainguard | authentik-fips-2025.12 | no fix |
| Chainguard | authentik-fips-2026.2 | no fix |
| Chainguard | awx | 0 |
| Chainguard | openstack-horizon-2025.1 | 0 |
| Chainguard | openstack-horizon-2025.1-fips | 0 |
| Chainguard | openstack-horizon-2025.2 | 0 |
| Chainguard | openstack-horizon-2025.2-fips | 0 |
| Chainguard | openstack-horizon-2026.1 | 25.7.3_git20260924-r8 |
| Chainguard | openstack-horizon-2026.1-fips | 25.7.3_git20261001-r5 |
| Debian 12 | python-django | no fix |
| Debian 13 | python-django | no fix |
| Debian 14 | python-django | 3:5.2.17-1 |
| Red Hat ansible automation platform 2.5 | automation-controller-cli | 0:4.6.32-1.el8ap |
| Red Hat ansible automation platform 2.5 | automation-controller-cli | 0:4.6.32-1.el9ap |
| Red Hat ansible automation platform 2.5 | automation-controller-venv-tower | 0:4.6.32-1.el9ap |
| Red Hat ansible automation platform 2.5 | automation-controller-venv-tower | 0:4.6.32-1.el8ap |
| Red Hat ansible automation platform 2.5 | automation-gateway-server | 0:2.5.20260824-1.el9ap |
| Red Hat ansible automation platform 2.5 | automation-gateway-server | 0:2.5.20260824-1.el8ap |
| Red Hat ansible automation platform 2.5 | python3.12-aiohttp | 0:3.14.3-1.el8ap |
| Red Hat ansible automation platform 2.5 | python3.12-aiohttp | 0:3.14.3-1.el9ap |
| Red Hat ansible automation platform 2.5 | python3.12-django | 0:5.2.17-1.el9ap |
| Red Hat ansible automation platform 2.5 | python3.12-django | 0:5.2.17-1.el8ap |
| Red Hat ansible automation platform 2.5 | python3.12-gitpython | 0:3.1.59-1.el8ap |
| Red Hat ansible automation platform 2.5 | python3.12-gitpython | 0:3.1.59-1.el9ap |
| Red Hat ansible automation platform 2.6 | automation-controller-cli | 0:4.7.16-1.el9ap |
| Red Hat ansible automation platform 2.6 | automation-controller-venv-tower | 0:4.7.16-1.el9ap |
| Red Hat ansible automation platform 2.6 | automation-platform-ui | 0:2.6.13-1.el9ap |
| Red Hat ansible automation platform 2.6 | python-django | 0:5.2.17-1.el10ap |
| Red Hat ansible automation platform 2.6 | python3-django | 0:5.2.17-1.el10ap |
| Red Hat ansible automation platform 2.6 | python3.12-aiohttp | 0:3.14.3-1.el9ap |
| Red Hat ansible automation platform 2.6 | python3.12-aiohttp-debuginfo | 0:3.14.3-1.el9ap |
| Red Hat ansible automation platform 2.6 | python3.12-aiohttp-debugsource | 0:3.14.3-1.el9ap |
| Red Hat ansible automation platform 2.6 | python3.12-django | 0:5.2.17-1.el9ap |
| Red Hat ansible automation platform 2.6 | python3.12-gitpython | 0:3.1.59-1.el9ap |
| Red Hat ansible automation platform 2.7 | automation-controller-cli | 0:4.8.6-1.el9ap |
| Red Hat ansible automation platform 2.7 | automation-controller-cli | 0:4.8.6-1.el10ap |
| Red Hat ansible automation platform 2.7 | python-django | 0:5.2.17-1.el10ap |
| Red Hat ansible automation platform 2.7 | python3-django | 0:5.2.17-1.el10ap |
| Red Hat ansible automation platform 2.7 | python3.12-django | 0:5.2.17-1.el9ap |
| Red Hat ansible automation platform developer 2.5 | automation-controller-cli | 0:4.6.32-1.el8ap |
| Red Hat ansible automation platform developer 2.5 | automation-controller-cli | 0:4.6.32-1.el9ap |
| Red Hat ansible automation platform developer 2.5 | python3.12-django | 0:5.2.17-1.el9ap |
| Red Hat ansible automation platform developer 2.5 | python3.12-django | 0:5.2.17-1.el8ap |
| Red Hat ansible automation platform developer 2.6 | automation-controller-cli | 0:4.7.16-1.el9ap |
| Red Hat ansible automation platform developer 2.6 | python-django | 0:5.2.17-1.el10ap |
| Red Hat ansible automation platform developer 2.6 | python3-django | 0:5.2.17-1.el10ap |
| Red Hat ansible automation platform developer 2.6 | python3.12-django | 0:5.2.17-1.el9ap |
| Red Hat ansible automation platform developer 2.7 | python-django | 0:5.2.17-1.el10ap |
| Red Hat ansible automation platform developer 2.7 | python3-django | 0:5.2.17-1.el10ap |
| Red Hat ansible automation platform developer 2.7 | python3.12-django | 0:5.2.17-1.el9ap |
| SUSE Linux Enterprise Module for Package Hub 15 SP7 | python-Django | 4.2.11-150600.3.65.1 |
| Ubuntu 22.04 LTS | python-django | 2:3.2.12-2ubuntu1.29 |
| Ubuntu 24.04 LTS | python-django | 3:4.2.11-1ubuntu1.18 |
| Ubuntu 26.04 LTS | python-django | 3:5.2.9-0ubuntu4.3 |
| Ubuntu Pro 14.04 LTS | python-django | 1.6.11-0ubuntu1.3+esm12 |
| Ubuntu Pro 16.04 LTS | python-django | 1.8.7-1ubuntu5.15+esm13 |
| Ubuntu Pro 18.04 LTS | python-django | no fix |
| Ubuntu Pro 18.04 LTS | python-django | 1:1.11.11-1ubuntu1.21+esm17 |
| Ubuntu Pro 20.04 LTS | python-django | no fix |
| Ubuntu Pro 20.04 LTS | python-django | 2:2.2.12-1ubuntu0.29+esm10 |
| openSUSE Leap 16.0 | python-Django | 5.2.4-bp160.11.1 |
| openSUSE Tumbleweed | python-Django | 6.0.8-1.1 |
| openSUSE Tumbleweed | python-Django4 | 4.2.30-5.1 |
| openSUSE Tumbleweed | python-Django5 | 5.2.17-1.1 |