CVE-2026-15307 json
Server-side file-write and request forgery via spatial lookups
published 2026-08-04 3 mo ago modified 2026-10-24 15 d ago also BIT-django-2026-15307 , EUVD-2026-52747 , GHSA-wvqv-fj8w-qmhm , PYSEC-2026-4035
- cvss
- 8.8
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.1%
- EPSS 1.1% chance of exploitation in 30 days, percentile 66%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- pypi django 5.2.17, 6.0.8
- bitnami django 5.2.17, 6.0.8
- djangoproject Django 5.2.17, 6.0.8
- python-django Debian 14 3:5.2.17-1
debian advisories DEBIAN-CVE-2026-15307
- python-django Ubuntu 22.04 LTS 2:3.2.12-2ubuntu1.29
- python-django Ubuntu 24.04 LTS 3:4.2.11-1ubuntu1.18
- python-django Ubuntu 26.04 LTS 3:5.2.9-0ubuntu4.3
ubuntu advisories UBUNTU-CVE-2026-15307
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- python-django ansible automation platform developer 2.7, ansible automation platform developer 2.6, ansible automation platform 2.7 +1 more 5.2.17-1.el10ap
- python3-django ansible automation platform developer 2.7, ansible automation platform developer 2.6, ansible automation platform 2.7 +1 more 5.2.17-1.el10ap
- python3.12-django ansible automation platform developer 2.7, ansible automation platform developer 2.6, ansible automation platform developer 2.5 +3 more 5.2.17-1.el9ap
- automation-controller-cli ansible automation platform 2.7 4.8.6-1.el10ap
- automation-controller-cli ansible automation platform 2.7 4.8.6-1.el9ap
- python3.12-django ansible automation platform developer 2.5, ansible automation platform 2.5 5.2.17-1.el8ap
- python3.12-aiohttp ansible automation platform 2.5 3.14.3-1.el8ap
- python3.12-aiohttp ansible automation platform 2.6, ansible automation platform 2.5 3.14.3-1.el9ap
red hat advisories RHSA-2026:59137RHSA-2026:59135RHSA-2026:59136
- python-Django SLE Module for Package Hub 15 SP7 4.2.11-150600.3.65.1
suse advisories SUSE-SU-2026:3503-1
- python-Django5 openSUSE Tumbleweed 5.2.17-1.1
- python-Django openSUSE Leap 16.0 5.2.4-bp160.11.1
- python-Django openSUSE Tumbleweed 6.0.8-1.1
- python-Django4 openSUSE Tumbleweed 4.2.30-5.1
opensuse advisories openSUSE-SU-2026:11491-1openSUSE-SU-2026:21543-1openSUSE-SU-2026:11464-1openSUSE-SU-2026:11465-1
- py3-django Alpine 3.24 5.2.17-r0
alpine advisories ALPINE-CVE-2026-15307
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2026-15307 updated cvss 8.8
django: Django: Remote code execution via GeoDjango spatial lookups
-
Red Hat Ansible Automation Platform 2 automation-controller 4.7.14-3.el9ap, ansible-automation-platform-25/ansible-dev-tools-rhel8, ansible-automation-platform-26/ansible-dev-tools-rhel9, ansible-automation-platform-27/aap-cloud-billing-rhel9, ansible-automation-platform-27/ansible-dev-tools-rhel9, ansible-automation-platform/automation-dashboard-rhel9affected: workaround, no fix available, no fix planned “Will not fix”
-
Red Hat Discovery 2 discovery/discovery-server-rhel9affected: workaround, no fix available
-
Red Hat OpenStack Platform 16.2 python-django20, python3-django20, rhosp-rhel8/openstack-horizon, python-django20-bash-completion Red Hat OpenStack Platform 17.1 python-django, python3-django, rhosp-rhel9/openstack-horizon Red Hat OpenStack Platform 18.0 python-django, rhoso/openstack-horizon-rhel9affected: workaround, no fix available, no fix planned “Will not fix”
-
Red Hat Update Infrastructure 4 for Cloud Providers python-django Red Hat Update Infrastructure 5 rhui5/rhua-rhel9affected: workaround, no fix planned “Will not fix”
-
Red Hat Ansible Automation Platform 2.2 ansible-automation-platform/bootc-automation-portal-rhel9 1788943531fixed: vendor fix RHSA-2026:66003
-
Red Hat Ansible Automation Platform 2.5 ansible-automation-platform-25/hub-rhel8 1787101922, ansible-automation-platform-25/controller-rhel8 1789607021, ansible-automation-platform-25/lightspeed-rhel8 1787229385fixed: vendor fix RHSA-2026:71210
-
Red Hat Ansible Automation Platform 2.5 for RHEL 8 python3.12-django 5.2.17-1.el8ap Red Hat Ansible Automation Platform 2.5 for RHEL 9 python3.12-django 5.2.17-1.el9apfixed: vendor fix RHSA-2026:59135
-
Red Hat Ansible Automation Platform 2.6 ansible-automation-platform-26/hub-rhel9 1787220598, ansible-automation-platform-26/controller-rhel9 1789673739, ansible-automation-platform-26/lightspeed-rhel9 1787244079, ansible-automation-platform-tech-preview/metrics-service-rhel9 1789654558fixed: vendor fix RHSA-2026:71179
show 10 moreshow fewer
-
Red Hat Ansible Automation Platform 2.6 for RHEL 9 python3.12-django 5.2.17-1.el9ap Red Hat Ansible Automation Platform 2.6 for RHEL 10 python-django 5.2.17-1.el10ap, python3-django 5.2.17-1.el10apfixed: vendor fix RHSA-2026:59136
-
Red Hat Ansible Automation Platform 2.7 ansible-automation-platform-27/hub-rhel9 1788918708, ansible-automation-platform-27/controller-rhel9 1788918363, ansible-automation-platform-27/lightspeed-rhel9 1787217531, ansible-automation-platform-27/metrics-service-rhel9 1788917058fixed: vendor fix RHSA-2026:67279
-
Red Hat Ansible Automation Platform 2.7 for RHEL 9 python3.12-django 5.2.17-1.el9ap Red Hat Ansible Automation Platform 2.7 for RHEL 10 python-django 5.2.17-1.el10ap, python3-django 5.2.17-1.el10apfixed: vendor fix RHSA-2026:59137
-
Red Hat Satellite 6.16 for RHEL 8 python-pyyaml 6.0.1-1.el8pc, python-django 4.2.30-2.el8pc, python3.11-pyyaml 6.0.1-1.el8pc, python3.11-django 4.2.30-2.el8pc Red Hat Satellite 6.16 for RHEL 9 python-pyyaml 6.0.1-1.el9pc, python-django 4.2.30-2.el9pc, python3.11-pyyaml 6.0.1-1.el9pc, python3.11-django 4.2.30-2.el9pcfixed: vendor fix RHSA-2026:95655
-
Red Hat Satellite 6.17 for RHEL 9 python-django 4.2.30-2.el9pc, python3.11-django 4.2.30-2.el9pcfixed: vendor fix RHSA-2026:95656
-
Red Hat Satellite 6.18 for RHEL 9 python3.12-django 4.2.30-3.el9pcfixed: vendor fix RHSA-2026:95657
-
Red Hat Satellite 6.19 for RHEL 9 python3.12-django 4.2.30-3.el9pcfixed: vendor fix RHSA-2026:92861
-
Red Hat Ansible Automation Platform 2 python3x-django 4.2.24-1.el8ap, python3.11-django 4.2.27-2.el9ap, ansible-automation-platform-24/hub-rhel8, ansible-automation-platform-25/gateway-rhel8, ansible-automation-platform-26/gateway-rhel9, ansible-automation-platform-27/gateway-rhel9, +6 more Red Hat Ansible Automation Platform 2.5 ansible-automation-platform-25/hub-rhel8 1789606395, ansible-automation-platform-25/gateway-rhel8 1787100608, ansible-automation-platform-25/gateway-rhel8 1789605572, ansible-automation-platform-25/hub-web-rhel8 1787185021, ansible-automation-platform-25/hub-web-rhel8 1789690469, ansible-automation-platform-25/receptor-rhel8 1787100120, +45 more Red Hat Ansible Automation Platform 2.5 for RHEL 8 automation-hub 4.10.18-1.el8ap, python3.12-aiohttp 3.14.3-1.el8ap, python3.12-gitpython 3.1.59-1.el8ap, automation-controller 4.6.32-1.el8ap, python3.12-galaxy-ng 4.10.18-1.el8ap, automation-controller-ui 4.6.32-1.el8ap, +11 more Red Hat Ansible Automation Platform 2.5 for RHEL 9 automation-hub 4.10.18-1.el9ap, python3.12-aiohttp 3.14.3-1.el9ap, python3.12-gitpython 3.1.59-1.el9ap, automation-controller 4.6.32-1.el9ap, python3.12-galaxy-ng 4.10.18-1.el9ap, automation-controller-ui 4.6.32-1.el9ap, +11 more Red Hat Ansible Automation Platform 2.6 ansible-automation-platform-26/hub-rhel9 1789611274, ansible-automation-platform-26/gateway-rhel9 1787219751, ansible-automation-platform-26/gateway-rhel9 1789666472, ansible-automation-platform-26/hub-web-rhel9 1787224278, ansible-automation-platform-26/hub-web-rhel9 1789615881, ansible-automation-platform-26/receptor-rhel9 1787202412, +52 more Red Hat Ansible Automation Platform 2.6 for RHEL 9 molecule 26.8.0-1.el9ap, ansible-lint 26.8.0-1.el9ap, python3.12-nh3 0.3.6-1.el9ap, ansible-creator 26.8.0-1.el9ap, automation-hub 4.11.13-1.el9ap, ansible-dev-tools 26.8.0-1.el9ap, +37 morenot affected: vulnerable code not present
+4 more productsfewer
Red Hat Ansible Automation Platform 2.6 for RHEL 10 molecule 26.8.0-1.el10ap, ansible-lint 26.8.0-1.el10ap, ansible-creator 26.8.0-1.el10ap, ansible-dev-tools 26.8.0-1.el10ap, ansible-navigator 26.8.0-1.el10ap, python-tox-ansible 26.8.0-1.el10ap, +5 more Red Hat Ansible Automation Platform 2.7 ansible-automation-platform-27/hub-rhel9 1787223293, ansible-automation-platform-27/gateway-rhel9 1787218409, ansible-automation-platform-27/gateway-rhel9 1788918510, ansible-automation-platform-27/hub-web-rhel9 1787225966, ansible-automation-platform-27/hub-web-rhel9 1788924567, ansible-automation-platform-27/receptor-rhel9 1787216969, +54 more Red Hat Ansible Automation Platform 2.7 for RHEL 9 molecule 26.8.0-1.el9ap, ansible-lint 26.8.0-1.el9ap, ansible-creator 26.8.0-2.el9ap, ansible-dev-tools 26.8.0-1.el9ap, ansible-navigator 26.8.0-2.el9ap, python3.12-tox-ansible 26.8.0-1.el9ap, +4 more Red Hat Ansible Automation Platform 2.7 for RHEL 10 molecule 26.8.0-1.el10ap, ansible-lint 26.8.0-1.el10ap, ansible-creator 26.8.0-2.el10ap, ansible-dev-tools 26.8.0-1.el10ap, ansible-navigator 26.8.0-2.el10ap, python-tox-ansible 26.8.0-1.el10ap, +6 more -
Red Hat OpenStack Platform 13 (Queens) python-django, python2-django, python-django-bash-completionnot affected: vulnerable code not in execute path
-
Red Hat Satellite 6 python-django, python2-django, python-django-bash-completion, satellite/iop-advisor-backend-rhel9 Red Hat Satellite 6.16 for RHEL 8 python-nh3 0.3.0-2.el8pc, python-brotli 1.2.1-1.el8pc, python-pillow 13.0.0-1.el8pc, python-urllib3 2.8.0-1.el8pc, python3.11-nh3 0.3.0-2.el8pc, openvox-agent 8.32.0-1.el8sat, +10 more Red Hat Satellite 6.16 for RHEL 9 python-nh3 0.3.0-2.el9pc, python-brotli 1.2.1-1.el9pc, python-pillow 13.0.0-1.el9pc, python-urllib3 2.8.0-1.el9pc, python3.11-nh3 0.3.0-2.el9pc, openvox-agent 8.32.0-1.el9sat, +10 more Red Hat Satellite 6.17 for RHEL 9 python-brotli 1.2.1-1.el9pc, python-pillow 13.0.0-1.el9pc, python-urllib3 2.8.0-1.el9pc, openvox-agent 8.32.0-1.el9sat, openvox-server 8.18.0-1.el9sat, python-gitpython 3.2.1-1.el9pc, +6 more Red Hat Satellite 6.18 for RHEL 9 openvox-agent 8.32.0-1.el9sat, openvox-server 8.18.0-1.el9sat, python3.12-brotli 1.2.1-1.el9pc, python3.12-pillow 13.0.0-1.el9pc, python3.12-urllib3 2.8.0-1.el9pc, python3.12-gitpython 3.2.1-1.el9pc, +2 more Red Hat Satellite 6.19 for RHEL 9 openvox-agent 8.31.1-1.el9sat, openvox-server 8.17.0-1.el9sat, python3.12-brotli 1.2.1-1.el9pc, python3.12-pillow 13.0.0-1.el9pc, python3.12-urllib3 2.8.0-1.el9pc, python3.12-gitpython 3.2.1-1.el9pc, +2 morenot affected: vulnerable code not present
+1 more productsfewer
Red Hat Update Infrastructure 5 rhui5/rhua-tp-rhel9
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- total
- Assessed
- 3 mo ago
Exploit prediction
1.13% chance of exploitation in the next 30 days, higher than 66% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| CNA | 4.0 | 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 |
| GitHub | 3.1 | 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| CNA | 4.0 | 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 | 3.1 | 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | django | <5.2.17 >=6.0a1, <6.0.8 |
5.2.17 6.0.8 |
| bitnami | django | <5.2.17 >=6.0.0, <6.0.8 |
5.2.17 6.0.8 |
Affected products
- djangoproject Django
Classification
- Weakness
- Technology feeds
References
-
github.com
/django/django/commit/f1949c1f9758947ade984c895ff16bef46f56520
patch, web
-
github.com
/django/django/commit/39b3e2d0c743a338def6c473086ebc06865e86b6
patch, web
-
github.com
/django/django/commit/208f80cb682868b584ed0a78f23e4ba6304212aa
patch, web
-
github.com
/django/django/commit/115ffd0463a765ab1cc93de18e94b5459b8a300e
patch, web
-
docs.djangoproject.com
/en/dev/releases/security/
vendor-advisory, patch, advisory
-
djangoproject.com
/weblog/2026/aug/04/security-releases/
vendor-advisory, advisory
-
groups.google.com
/g/django-announce
mailing-list, web, discussion
-
nvd.nist.gov
/vuln/detail/CVE-2026-15307
advisory, web
-
docs.djangoproject.com
/en/dev/releases/security
web
-
github.com
/django/django
package
-
djangoproject.com
/weblog/2026/aug/04/security-releases
web
-
pypi.org
/project/django
package
-
github.com
/advisories/GHSA-wvqv-fj8w-qmhm
advisory
Sources
- CVE List CVE-2026-15307
- GitHub Advisory GHSA-wvqv-fj8w-qmhm
- NVD CVE-2026-15307
- OSV BIT-django-2026-15307
- OSV PYSEC-2026-4035
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.