cve.bz

CVE-2026-15307 djangoproject django: External Control of File Name or Path

8.7 highEPSS 1.1%Fix available

High (8.7) in djangoproject django. EPSS 1.1% estimated probability of exploitation activity in the next 30 days. Fixed in django 5.2.17, 6.0.8.

On this page
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.

Severity

CVSS 4.0

8.7 high
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

CVSS 3.1

8.8 high
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS
1.1% (unchanged from 1.1% a week ago; 1.1% 30 days ago) estimated probability of exploitation activity in the next 30 days; 67th percentile. Scored 2026-11-15. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2026-08-04. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-73 External Control of File Name or Path
CWE-918 Server-Side Request Forgery (SSRF)
OWASP Top 10
A01:2025 Broken Access Control, A06:2025 Insecure Design
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-15307 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-15307?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-15307?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-15307 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Badge for a README or a site

CVE-2026-15307

An image that stays current: it is drawn from the data each time it is fetched (a host that proxies images, as GitHub does, may show its copy for a while). Markdown:

[![CVE-2026-15307](https://cve.bz/cve/badge/CVE-2026-15307.svg)](https://cve.bz/cve/CVE-2026-15307)

HTML:

<a href="https://cve.bz/cve/CVE-2026-15307"><img src="https://cve.bz/cve/badge/CVE-2026-15307.svg" alt="CVE-2026-15307"></a>

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
djangoproject Djangofrom 6.0 before 6.0.8
djangoproject Djangofrom 5.2 before 5.2.17

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-wvqv-fj8w-qmhmPyPIdjango<5.2.175.2.17
GHSA-wvqv-fj8w-qmhmPyPIdjango>=6.0a1 <6.0.86.0.8
PYSEC-2026-4035PyPIdjango<5.2.17
>=6.0a1 <6.0.8
5.2.17, 6.0.8

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13python-djangono fix listedDEBIAN-CVE-2026-15307
Debian14python-django3:5.2.17-1DEBIAN-CVE-2026-15307
Ubuntu22.04:LTSpython-django2:3.2.12-2ubuntu1.29UBUNTU-CVE-2026-15307 USN-8848-1
Ubuntu24.04:LTSpython-django3:4.2.11-1ubuntu1.18UBUNTU-CVE-2026-15307 USN-8848-1
Ubuntu26.04:LTSpython-django3:5.2.9-0ubuntu4.3UBUNTU-CVE-2026-15307 USN-8848-1
UbuntuPro:14.04:LTSpython-django1.6.11-0ubuntu1.3+esm12USN-8848-1
UbuntuPro:16.04:LTSpython-django1.8.7-1ubuntu5.15+esm13USN-8848-1
UbuntuPro:18.04:LTS, Pro:20.04:LTSpython-djangono fix listedUBUNTU-CVE-2026-15307 USN-8848-1
Red Hatansible_automation_platform:2.5::el8automation-controller-cli, automation-controller-venv-tower0:4.6.32-1.el8apRHSA-2026:59135
Red Hatansible_automation_platform:2.5::el8automation-gateway-server0:2.5.20260824-1.el8apRHSA-2026:59135
Red Hatansible_automation_platform:2.5::el8python3.12-aiohttp0:3.14.3-1.el8apRHSA-2026:59135
Red Hatansible_automation_platform:2.5::el8python3.12-gitpython0:3.1.59-1.el8apRHSA-2026:59135
Red Hatansible_automation_platform:2.5::el8, ansible_automation_platform_developer:2.5::el8python3.12-django0:5.2.17-1.el8apRHSA-2026:59135
Red Hatansible_automation_platform:2.5::el9automation-controller-cli, automation-controller-venv-tower0:4.6.32-1.el9apRHSA-2026:59135
Red Hatansible_automation_platform:2.5::el9automation-gateway-server0:2.5.20260824-1.el9apRHSA-2026:59135
Red Hatansible_automation_platform:2.5::el9python3.12-aiohttp0:3.14.3-1.el9apRHSA-2026:59135
Red Hatansible_automation_platform:2.5::el9python3.12-gitpython0:3.1.59-1.el9apRHSA-2026:59135
Red Hatansible_automation_platform:2.5::el9, ansible_automation_platform_developer:2.5::el9python3.12-django0:5.2.17-1.el9apRHSA-2026:59135
Red Hatansible_automation_platform:2.6::el9automation-controller-cli, automation-controller-venv-tower0:4.7.16-1.el9apRHSA-2026:59136
Red Hatansible_automation_platform:2.6::el9automation-platform-ui0:2.6.13-1.el9apRHSA-2026:59136
11 more for Red Hat in the JSON and on Red Hat's page.
SUSELinux Enterprise Module for Package Hub 15 SP7python-Django4.2.11-150600.3.65.1SUSE-SU-2026:3503-1
openSUSELeap 16.0python-Django5.2.4-bp160.11.1openSUSE-SU-2026:21543-1
openSUSETumbleweedpython-Django6.0.8-1.1openSUSE-SU-2026:11464-1
openSUSETumbleweedpython-Django44.2.30-5.1openSUSE-SU-2026:11465-1
openSUSETumbleweedpython-Django55.2.17-1.1openSUSE-SU-2026:11491-1
Alpinev3.24py3-django5.2.17-r0ALPINE-CVE-2026-15307

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Important.

Red Hat's statement

Red Hat products that are built with Django framework do not implement GeoDjango or GIS capabilities.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.

ProductPackageStateAdvisory
Red Hat Ansible Automation Platform 2.5 for RHEL 8python3.12-django-0:5.2.17-1.el8apFixed 2026-08-24RHSA-2026:59135
Red Hat Ansible Automation Platform 2.5 for RHEL 9python3.12-django-0:5.2.17-1.el9apFixed 2026-08-24RHSA-2026:59135
Red Hat Ansible Automation Platform 2.6 for RHEL 10python-django-0:5.2.17-1.el10apFixed 2026-08-24RHSA-2026:59136
Red Hat Ansible Automation Platform 2.6 for RHEL 9python3.12-django-0:5.2.17-1.el9apFixed 2026-08-24RHSA-2026:59136
Red Hat Ansible Automation Platform 2.7 for RHEL 10python-django-0:5.2.17-1.el10apFixed 2026-08-24RHSA-2026:59137
Red Hat Ansible Automation Platform 2.7 for RHEL 9python3.12-django-0:5.2.17-1.el9apFixed 2026-08-24RHSA-2026:59137
Red Hat Satellite 6.19 for RHEL 9python3.12-django-0:4.2.30-3.el9pcFixed 2026-10-29RHSA-2026:92861
Red Hat Ansible Automation Platform 2.2ansible-automation-platform/bootc-automation-portal-rhel9:1788943531Fixed 2026-09-09RHSA-2026:66003
Red Hat Ansible Automation Platform 2.5ansible-automation-platform-25/hub-rhel8:1787101922Fixed 2026-08-24RHSA-2026:59159
Red Hat Ansible Automation Platform 2.5ansible-automation-platform-25/lightspeed-rhel8:1787229385Fixed 2026-08-24RHSA-2026:59159
Red Hat Ansible Automation Platform 2ansible-automation-platform-24/controller-rhel8Not affected
Red Hat Ansible Automation Platform 2ansible-automation-platform-24/eda-controller-rhel8Not affected
Red Hat Ansible Automation Platform 2ansible-automation-platform-24/hub-rhel8Not affected
Red Hat Ansible Automation Platform 2ansible-automation-platform-24/lightspeed-rhel8Not affected
Red Hat Ansible Automation Platform 2ansible-automation-platform-25/ansible-dev-tools-rhel8Affected
Red Hat Ansible Automation Platform 2ansible-automation-platform-25/eda-controller-rhel8Not affected
Red Hat Ansible Automation Platform 2ansible-automation-platform-25/gateway-rhel8Not affected
Red Hat Ansible Automation Platform 2ansible-automation-platform-26/ansible-dev-tools-rhel9Affected
Red Hat Ansible Automation Platform 2ansible-automation-platform-26/eda-controller-rhel9Not affected
Red Hat Ansible Automation Platform 2ansible-automation-platform-26/gateway-rhel9Not affected
31 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-15307.

Attack patterns (CAPEC)

  • CAPEC-664 Server Side Request Forgery Likelihood: High · Severity: High
  • CAPEC-13 Subverting Environment Variable Values Likelihood: High · Severity: Very High
  • CAPEC-64 Using Slashes and URL Encoding Combined to Bypass Validation Logic Likelihood: High · Severity: High
  • CAPEC-72 URL Encoding Likelihood: High · Severity: High
  • CAPEC-76 Manipulating Web Input to File System Calls Likelihood: High · Severity: Very High
  • CAPEC-78 Using Escaped Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-79 Using Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-80 Using UTF-8 Encoding to Bypass Validation Logic Likelihood: High · Severity: High
  • CAPEC-267 Leverage Alternate Encoding Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON