{"cve":"CVE-2026-15307","nvd":{"published":"2026-08-04T17:16:46.127","modified":"2026-10-24T16:10:00.153","status":"Analyzed","description":"An issue was discovered in Django 5.2 before 5.2.17 and 6.0 before 6.0.8.\nGeoDjango 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.\nEarlier, unsupported Django series (such as 5.1.x, 5.0.x, and 4.2.x) were not evaluated and may also be affected.\nDjango would like to thank Bence Nagy, localhost-detect, and kimchunbok_ for reporting this issue.","cvss_v4":{"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","score":8.7},"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8},"cwes":["CWE-73","CWE-918"],"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"],"products":["djangoproject:django"],"source":"nvd","synced_at":"2026-10-24T16:53:34.184483516+00:00"},"epss":{"cve":"CVE-2026-15307","score":0.01134,"percentile":0.66254,"date":"2026-10-25"},"kev":null,"osv":[{"id":"GHSA-wvqv-fj8w-qmhm","url":"https://osv.dev/vulnerability/GHSA-wvqv-fj8w-qmhm","summary":"Django GeoDjango spatial lookups allow file writes and outbound requests through GDAL raster parsing","modified":"2026-10-01T17:56:17.845009416Z","packages":[{"ecosystem":"PyPI","name":"django","purl":"pkg:pypi/django","ranges":["<5.2.17"],"fixed":["5.2.17"]},{"ecosystem":"PyPI","name":"django","purl":"pkg:pypi/django","ranges":[">=6.0a1 <6.0.8"],"fixed":["6.0.8"]}]},{"id":"PYSEC-2026-4035","url":"https://osv.dev/vulnerability/PYSEC-2026-4035","summary":"Django GeoDjango spatial lookups allow file writes and outbound requests through GDAL raster parsing","modified":"2026-10-01T17:56:17.845009416Z","packages":[{"ecosystem":"PyPI","name":"django","purl":"pkg:pypi/django","ranges":["<5.2.17",">=6.0a1 <6.0.8"],"fixed":["5.2.17","6.0.8"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}