CVE-2026-15307
published high CVSS 4.0 · 8.7Server-side file-write and request forgery via spatial lookups
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| djangoproject | — | djangoDjango · 6.0 to < 6.0.8 (affected · python) · 6.0.8 (unaffected · python) · 5.2 to < 5.2.17 (affected · python) · 5.2.17 (unaffected · python) · Other versions: unaffected | Version-specific | Not stated | DSF |
| Alpine Linux | edge | py3-django | Fixed | 5.2.17-r0 | Package fix record |
| SUSE / openSUSE | SLE-15-SP7 | python311-Djangonoarch | Advisory build | 4.2.11-150600.3.65.1 | SUSE-SU-2026:3503-1 |
| Ubuntu | jammy | python-django | Advisory build | 2:3.2.12-2ubuntu1.29 | USN-8848-1 |
| Alpine Linux | v3.24 | py3-django | Fixed | 5.2.17-r0 | Package fix record |
| SUSE / openSUSE | openSUSE-Leap-16.0 | python313-Djangonoarch | Advisory build | 5.2.4-bp160.11.1 | OPENSUSE-SU-2026:21543-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-Djangoaarch64 | Advisory build | 6.0.8-1.1 | OPENSUSE-SU-2026:11464-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-Djangoppc64le | Advisory build | 6.0.8-1.1 | OPENSUSE-SU-2026:11464-1 |
Show 27 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-Djangos390x | Advisory build | 6.0.8-1.1 | OPENSUSE-SU-2026:11464-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-Djangox86_64 | Advisory build | 6.0.8-1.1 | OPENSUSE-SU-2026:11464-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-Django4aarch64 | Advisory build | 4.2.30-5.1 | OPENSUSE-SU-2026:11465-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-Django4ppc64le | Advisory build | 4.2.30-5.1 | OPENSUSE-SU-2026:11465-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-Django4s390x | Advisory build | 4.2.30-5.1 | OPENSUSE-SU-2026:11465-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-Django4x86_64 | Advisory build | 4.2.30-5.1 | OPENSUSE-SU-2026:11465-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-Django5aarch64 | Advisory build | 5.2.17-1.1 | OPENSUSE-SU-2026:11491-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-Django5ppc64le | Advisory build | 5.2.17-1.1 | OPENSUSE-SU-2026:11491-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-Django5s390x | Advisory build | 5.2.17-1.1 | OPENSUSE-SU-2026:11491-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-Django5x86_64 | Advisory build | 5.2.17-1.1 | OPENSUSE-SU-2026:11491-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-Djangoaarch64 | Advisory build | 6.0.8-1.1 | OPENSUSE-SU-2026:11464-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-Djangoppc64le | Advisory build | 6.0.8-1.1 | OPENSUSE-SU-2026:11464-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-Djangos390x | Advisory build | 6.0.8-1.1 | OPENSUSE-SU-2026:11464-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-Djangox86_64 | Advisory build | 6.0.8-1.1 | OPENSUSE-SU-2026:11464-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-Django4aarch64 | Advisory build | 4.2.30-5.1 | OPENSUSE-SU-2026:11465-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-Django4ppc64le | Advisory build | 4.2.30-5.1 | OPENSUSE-SU-2026:11465-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-Django4s390x | Advisory build | 4.2.30-5.1 | OPENSUSE-SU-2026:11465-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-Django4x86_64 | Advisory build | 4.2.30-5.1 | OPENSUSE-SU-2026:11465-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-Django5aarch64 | Advisory build | 5.2.17-1.1 | OPENSUSE-SU-2026:11491-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-Django5ppc64le | Advisory build | 5.2.17-1.1 | OPENSUSE-SU-2026:11491-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-Django5s390x | Advisory build | 5.2.17-1.1 | OPENSUSE-SU-2026:11491-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-Django5x86_64 | Advisory build | 5.2.17-1.1 | OPENSUSE-SU-2026:11491-1 |
| Ubuntu | jammy | python3-django | Advisory build | 2:3.2.12-2ubuntu1.29 | USN-8848-1 |
| Ubuntu | noble | python-django | Advisory build | 3:4.2.11-1ubuntu1.18 | USN-8848-1 |
| Ubuntu | noble | python3-django | Advisory build | 3:4.2.11-1ubuntu1.18 | USN-8848-1 |
| Ubuntu | resolute | python-django | Advisory build | 3:5.2.9-0ubuntu4.3 | USN-8848-1 |
| Ubuntu | resolute | python3-django | Advisory build | 3:5.2.9-0ubuntu4.3 | USN-8848-1 |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 8.7 / 10
- Severity
- high
- Provider
- DSF · cna
- Vector string
- 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
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 8.8 | high | DSF · cna | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| djangoproject | Django | 6.0 to < 6.0.8 (affected · python)6.0.8 (unaffected · python)5.2 to < 5.2.17 (affected · python)5.2.17 (unaffected · python)Default: unaffected | DSF · cna |
Weaknesses
2- CWE-73 CWE-73: External Control of File Name or Path
- CWE-918 CWE-918: Server-Side Request Forgery (SSRF)
References
7- Django security archive 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
- Django releases announcements https://groups.google.com/g/django-announce
- Django security releases issued: 6.0.8 and 5.2.17 https://www.djangoproject.com/weblog/2026/aug/04/security-releases/
Provider assertions
2DSF · cna
Server-side file-write and request forgery via spatial lookups
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- d5d8f2235713ec89db33ec93ba5318fac92b4201469d2aca44485ffc4c485600
- Ingested
- 23 Sep 2026, 09:02:16 UTC
- Source record
- Official CVE record