Skip to main content
Mallory
HighVulnerability

CVE-2026-15307: GeoDjango spatial lookup file write and server-side request forgery

Published Aug 4, 2026 · Updated today
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 days11 mentions · peak 6 in a dayToday
CVSS8.7High · v4
EPSS1.1%68th percentile
CISA KEVNoNot listed
In the wildNoneNo exploitation reported
Vendor
Djangoproject
IdentifiersCVE-2026-15307CWE-73 · External Control of File Name or…

CVE-2026-15307 affects GeoDjango spatial lookups in Django 5.2 before 5.2.17 and 6.0 before 6.0.8. Right-hand-side values supplied to spatial lookups against GeometryField or RasterField are optimistically interpreted as rasters and passed to the django.contrib.gis.gdal.GDALRaster constructor. Dictionary values and strings containing JSON dictionary representations trigger write-mode raster creation despite the constructor's write=False default, permitting attacker-controlled file names and contents through file-backed GDAL drivers. Other strings are interpreted as datasources and can initiate outbound requests through GDAL virtual filesystem handlers. An exposed attack path is a spatial-field filter in the Django admin changelist submitted by a staff user with view permission. A malicious file subsequently imported by the application can lead to remote code execution. Unsupported Django series, including 5.1, 5.0, and 4.2, were not evaluated and may also be affected.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

Impact, mitigation & remediation

What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation can compromise filesystem integrity through attacker-controlled file creation and enable server-side request forgery from the Django process. File writes are constrained by available GDAL drivers and the application's filesystem permissions; outbound requests are constrained by GDAL handler support and network controls. If malicious content is written to a location subsequently imported by the application, code execution can occur with the Django process's operating-system privileges, potentially compromising application data, secrets, and service availability.

Mitigation

If you can’t patch tonight, do this now.

Prevent untrusted values from reaching GeoDjango spatial lookups. Disable affected user-controlled spatial filters or strictly validate and constrain their accepted geometry inputs before query construction. Restrict access to Django admin changelists and the staff accounts with relevant view permissions. Limit filesystem writes by the application process, particularly to application code and Python import locations, and restrict outbound connectivity to required destinations. These controls reduce exposure but do not replace patching.

Remediation

Patch, then assume compromise.

Upgrade Django 5.2 to at least 5.2.17 or Django 6.0 to at least 6.0.8, or install a vendor package explicitly containing the fix. The original fix rejects dictionary values and strings that are not valid geometries in spatial lookups. These minimum versions do not address subsequently identified related GeoDjango weaknesses: prefer Django 5.2.20, 6.0.11, 6.1.4, or a later supported release to incorporate the additional fixes. Migrate unsupported Django installations to a supported, patched release and verify the version running in every deployed application instance.

Public exploits

Exploits

No public exploits tracked yet. Mallory keeps watching.

View more in app →
No public exploit code observed for this vulnerability. Mallory keeps watching.
Exposure surface

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
DjangoprojectDjangoapplication
FAQ

Frequently asked questions

Is CVE-2026-15307 exploited in the wild?
As of Dec 3, 2026, Mallory has no reports of CVE-2026-15307 being exploited in the wild. It is not listed in CISA KEV.
Is there a public exploit for CVE-2026-15307?
As of Dec 3, 2026, Mallory has found no public exploit for CVE-2026-15307.
Is there a patch for CVE-2026-15307?
Upgrade Django 5.2 to at least 5.2.17 or Django 6.0 to at least 6.0.8, or install a vendor package explicitly containing the fix. The original fix rejects dictionary values and strings that are not valid geometries in spatial lookups.
What products are affected by CVE-2026-15307?
Djangoproject Django.
How severe is CVE-2026-15307?
CVE-2026-15307 has a CVSS v4 score of 8.7 (High) and an EPSS score of 1.1% (68th percentile) as of Dec 3, 2026.
Activity feed

Recent activity

53 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

View more in app →
+29 more in the timeline. Sign up to see them
Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malwareMalware families linked to this CVE, with evidence and IOCs.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity18Community discussion across Reddit, Mastodon, and other social sources.