python-django: An issue was discovered in Django 5.2 before 5.2.17 and 6.0 before 6.0.8
CVE-2026-15307 is fixed in 3 products on 1 platform, first by python3-django 2:3.2.12-2ubuntu1.29, released August 4, 2026. It is not reported as exploited. Patch Radar priority: High.
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.
Where it's fixed
| Product | Fixed in | Fix | Released |
|---|---|---|---|
| Linux | |||
| python-Django · opensuse-leap 16.0 | 5.2.4-bp160.11.1 | OPENSUSE-SU-2026:21543-1 | Aug 6, 2026 |
| python-Django · sles 15.7 | 4.2.11-150600.3.65.1 | SUSE-SU-2026:3503-1 | Aug 5, 2026 |
| python-django · Debian 14 | 3:5.2.17-1 | DEBIAN-CVE-2026-15307 | Aug 22, 2026 |
| python-django · RHEL 10 | 5.2.17-1.el10ap | RHSA-2026:59137 | Aug 26, 2026 |
| python3-django · Ubuntu 22.04.1 LTS (jammy) | 2:3.2.12-2ubuntu1.29 | python3-django 2:3.2.12-2ubuntu1.29 | Aug 4, 2026 |
| python3-django · Ubuntu 24.04.5 LTS (noble) | 3:4.2.11-1ubuntu1.18 | python3-django 3:4.2.11-1ubuntu1.18 | Aug 4, 2026 |
| python3-django · Ubuntu 26.04.1 LTS (resolute) | 3:5.2.9-0ubuntu4.3 | python3-django 3:5.2.9-0ubuntu4.3 | Aug 4, 2026 |
Patch Radar data is free to use with attribution. Terms and how to credit it.
Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.