Patchwire CVEs, their patch status, and feeds to follow them

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.

Published 2026-08-04 · CVE record · OSV

Products: djangoproject django

Fixed upstream

EcosystemPackageFixed in
PyPIdjango5.2.17
PyPIdjango6.0.8

Distro releases

ReleasePackageFixed in
Chainguardauthentik-2025.12no fix
Chainguardauthentik-2026.22026.2.7-r3
Chainguardauthentik-2026.52026.5.7-r7
Chainguardauthentik-fips-2025.12no fix
Chainguardauthentik-fips-2026.2no fix
Chainguardawx0
Chainguardopenstack-horizon-2025.10
Chainguardopenstack-horizon-2025.1-fips0
Chainguardopenstack-horizon-2025.20
Chainguardopenstack-horizon-2025.2-fips0
Chainguardopenstack-horizon-2026.125.7.3_git20260924-r8
Chainguardopenstack-horizon-2026.1-fips25.7.3_git20261001-r5
Debian 12python-djangono fix
Debian 13python-djangono fix
Debian 14python-django3:5.2.17-1
Red Hat ansible automation platform 2.5automation-controller-cli0:4.6.32-1.el8ap
Red Hat ansible automation platform 2.5automation-controller-cli0:4.6.32-1.el9ap
Red Hat ansible automation platform 2.5automation-controller-venv-tower0:4.6.32-1.el9ap
Red Hat ansible automation platform 2.5automation-controller-venv-tower0:4.6.32-1.el8ap
Red Hat ansible automation platform 2.5automation-gateway-server0:2.5.20260824-1.el9ap
Red Hat ansible automation platform 2.5automation-gateway-server0:2.5.20260824-1.el8ap
Red Hat ansible automation platform 2.5python3.12-aiohttp0:3.14.3-1.el8ap
Red Hat ansible automation platform 2.5python3.12-aiohttp0:3.14.3-1.el9ap
Red Hat ansible automation platform 2.5python3.12-django0:5.2.17-1.el9ap
Red Hat ansible automation platform 2.5python3.12-django0:5.2.17-1.el8ap
Red Hat ansible automation platform 2.5python3.12-gitpython0:3.1.59-1.el8ap
Red Hat ansible automation platform 2.5python3.12-gitpython0:3.1.59-1.el9ap
Red Hat ansible automation platform 2.6automation-controller-cli0:4.7.16-1.el9ap
Red Hat ansible automation platform 2.6automation-controller-venv-tower0:4.7.16-1.el9ap
Red Hat ansible automation platform 2.6automation-platform-ui0:2.6.13-1.el9ap
Red Hat ansible automation platform 2.6python-django0:5.2.17-1.el10ap
Red Hat ansible automation platform 2.6python3-django0:5.2.17-1.el10ap
Red Hat ansible automation platform 2.6python3.12-aiohttp0:3.14.3-1.el9ap
Red Hat ansible automation platform 2.6python3.12-aiohttp-debuginfo0:3.14.3-1.el9ap
Red Hat ansible automation platform 2.6python3.12-aiohttp-debugsource0:3.14.3-1.el9ap
Red Hat ansible automation platform 2.6python3.12-django0:5.2.17-1.el9ap
Red Hat ansible automation platform 2.6python3.12-gitpython0:3.1.59-1.el9ap
Red Hat ansible automation platform 2.7automation-controller-cli0:4.8.6-1.el9ap
Red Hat ansible automation platform 2.7automation-controller-cli0:4.8.6-1.el10ap
Red Hat ansible automation platform 2.7python-django0:5.2.17-1.el10ap
Red Hat ansible automation platform 2.7python3-django0:5.2.17-1.el10ap
Red Hat ansible automation platform 2.7python3.12-django0:5.2.17-1.el9ap
Red Hat ansible automation platform developer 2.5automation-controller-cli0:4.6.32-1.el8ap
Red Hat ansible automation platform developer 2.5automation-controller-cli0:4.6.32-1.el9ap
Red Hat ansible automation platform developer 2.5python3.12-django0:5.2.17-1.el9ap
Red Hat ansible automation platform developer 2.5python3.12-django0:5.2.17-1.el8ap
Red Hat ansible automation platform developer 2.6automation-controller-cli0:4.7.16-1.el9ap
Red Hat ansible automation platform developer 2.6python-django0:5.2.17-1.el10ap
Red Hat ansible automation platform developer 2.6python3-django0:5.2.17-1.el10ap
Red Hat ansible automation platform developer 2.6python3.12-django0:5.2.17-1.el9ap
Red Hat ansible automation platform developer 2.7python-django0:5.2.17-1.el10ap
Red Hat ansible automation platform developer 2.7python3-django0:5.2.17-1.el10ap
Red Hat ansible automation platform developer 2.7python3.12-django0:5.2.17-1.el9ap
SUSE Linux Enterprise Module for Package Hub 15 SP7python-Django4.2.11-150600.3.65.1
Ubuntu 22.04 LTSpython-django2:3.2.12-2ubuntu1.29
Ubuntu 24.04 LTSpython-django3:4.2.11-1ubuntu1.18
Ubuntu 26.04 LTSpython-django3:5.2.9-0ubuntu4.3
Ubuntu Pro 14.04 LTSpython-django1.6.11-0ubuntu1.3+esm12
Ubuntu Pro 16.04 LTSpython-django1.8.7-1ubuntu5.15+esm13
Ubuntu Pro 18.04 LTSpython-djangono fix
Ubuntu Pro 18.04 LTSpython-django1:1.11.11-1ubuntu1.21+esm17
Ubuntu Pro 20.04 LTSpython-djangono fix
Ubuntu Pro 20.04 LTSpython-django2:2.2.12-1ubuntu0.29+esm10
openSUSE Leap 16.0python-Django5.2.4-bp160.11.1
openSUSE Tumbleweedpython-Django6.0.8-1.1
openSUSE Tumbleweedpython-Django44.2.30-5.1
openSUSE Tumbleweedpython-Django55.2.17-1.1