Security mailing lists by PureSourceCode

CVE-2026-15307

HIGH 8.7CVSS 4.0

Django GeoDjango spatial lookups allow file writes and outbound requests through GDAL raster parsing

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
4 Aug 2026
Last modified
24 Oct 2026
Assigned by
6a34fbeb-21d4-45e7-8e0a-62b95bc12c92
NVD status
Analyzed
Weakness
CWE-73
Also known as
BIT-django-2026-15307GHSA-wvqv-fj8w-qmhmPYSEC-2026-4035
Sources
NVDJSONOSV GHSA-wvqv-fj8w-qmhmJSONOSV PYSEC-2026-4035JSON

Scores

SourceScored byVersionScoreVector / decision
NVD 6a34fbeb-21d4-45e7-8e0a-62b95bc12c92 (Secondary) CVSS 4.0 HIGH 8.7 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
OSV GitHub CVSS 4.0 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
OSV PyPA CVSS 4.0 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
NVD 6a34fbeb-21d4-45e7-8e0a-62b95bc12c92 (Secondary) CVSS 3.1 HIGH 8.8 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
OSV GitHub CVSS 3.1 HIGH 8.8 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
OSV PyPA CVSS 3.1 HIGH 8.8 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD djangoproject django
cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*
< 5.2.17 5.2.17
NVD djangoproject django
cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*
>= 6.0, < 6.0.8 6.0.8
OSV PyPI django < 5.2.17 5.2.17
OSV PyPI django >= 6.0a1, < 6.0.8 6.0.8
OSV PyPI django < 5.2.17; >= 6.0a1, < 6.0.8 5.2.17, 6.0.8

References

History

  • 25 Nov 2026 21:04 UTC · NVD: first stored (published 4 Aug 2026)
  • 25 Nov 2026 20:12 UTC · OSV: first stored (published 1 Oct 2026)
  • 25 Nov 2026 20:12 UTC · OSV: first stored (published 4 Aug 2026)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.