Skip to main content
Mallory
← Back to News
open-source-dependency-vulnerabilitywidely-deployed-product-advisoryinternet-facing-service-vulnerabilityend-of-life-software

Django patches GeoDjango flaw that can lead to file writes and possible RCE

Vulnerability Disclosure · 17 sources · Updated 4mo ago · First seen Aug 4, 2026

Django patches GeoDjango flaw that can lead to file writes and possible RCE

The Django project released Django 6.0.8 and Django 5.2.17 to fix four vulnerabilities, led by CVE-2026-15307, a high-severity flaw in GeoDjango spatial lookups. The bug affects cases where untrusted str or dict input is passed to django.contrib.gis.gdal.GDALRaster, allowing attacker-controlled server-side file writes and outbound requests through GDAL virtual filesystem handlers; in some deployments, that file-write primitive can be chained into remote code execution if the written file is later imported by the application. Reports said the issue could be exploited remotely with low privileges, including by a staff user through a Django admin changelist query string.

The same releases also addressed CVE-2026-15337, a low-severity denial-of-service issue in check_for_language(); CVE-2026-15830, a moderate denial-of-service flaw triggered by deeply nested GEOMETRYCOLLECTION objects in GEOSGeometry; and CVE-2026-15920, a moderate stored cross-site scripting issue in Django admin rendering of URLField values. Supported branches including Django main, the 6.1 release candidate, 6.0, and 5.2 received fixes, and the project urged users to upgrade promptly; older unsupported branches such as 5.1.x, 5.0.x, and 4.2.x were not evaluated and may also be affected.

Why it matters

Impact assessment

Django deployments running versions before 6.0.8 or 5.2.17 are exposed, with highest risk concentrated in applications using GeoDjango spatial lookups and environments where the Django admin is accessible to staff users. The most serious issue, CVE-2026-15307, can enable attacker-controlled server-side file writes, SSRF-like outbound requests, and in some deployments possible remote code execution, creating material risk of application compromise, data exposure, and service disruption.

Exposure is broad across supported Django branches, but practical exploitation is more targeted to applications that use GIS features, spatial fields, raster handling, or admin filtering on registered models with spatial fields. No confirmed in-the-wild exploitation was cited in the references, but the vulnerability is remotely reachable with low privileges and should be treated as urgent.

Affected populations and products

  • Product: Django
  • Affected versions: before 6.0.8 and before 5.2.17
  • Supported branches receiving fixes: main, 6.1 release candidate, 6.0, 5.2
  • Older unsupported branches not evaluated and possibly affected: 5.1.x, 5.0.x, 4.2.x
  • Highest-risk feature areas:
    • GeoDjango spatial lookups
    • GeometryField and RasterField usage
    • Django admin exposure to staff users
    • django.views.i18n.set_language() if enabled
    • Admin rendering of URLField values

Severity and business impact by issue

  • CVE-2026-15307: high severity; potential application compromise through file write and possible RCE, plus outbound requests from the Django process
  • CVE-2026-15337: low severity; bounded memory-consumption DoS
  • CVE-2026-15830: moderate severity; crafted geometry input can crash GEOS and disrupt application availability
  • CVE-2026-15920: moderate severity; stored XSS in Django admin can target administrative users and enable session or workflow abuse

Known exploitation status

  • No explicit reports of exploitation in the wild were provided
  • Remote exploitation with low privileges was described for CVE-2026-15307, including staff users with view permission via admin changelist query strings
Do you run this?See affected versions and whether adversaries are exploiting it.
Check your exposure
Event timeline

How this story unfolded

Events from the most recent confirmed update back to the earliest known activity.

6 events · Aug 4, 2026
  1. Aug 4, 20264mo ago

    Django patches CVE-2026-15920 admin URLField XSS issue

    On August 4, 2026, Django patched CVE-2026-15920, a moderate-severity cross-site scripting issue in the admin where URLField values could be rendered as clickable links without safe-scheme validation. The fix added URLValidator checks in display_for_field() and now falls back to plain-text rendering for unsafe values such as javascript: or data: URLs.

    [6.0.x] Fixed CVE-2026-15920 -- Made display_for_field() validate URL… · django/django@13debb6 · GitHub
  2. Aug 4, 20264mo ago

    Django discloses and fixes CVE-2026-15830 GEOS crash DoS flaw

    On August 4, 2026, Django disclosed and patched CVE-2026-15830, a denial-of-service issue in geographic geometry processing where deeply nested GEOMETRYCOLLECTION input could trigger a segmentation fault in GEOS. The fix capped nested geometry collections at 198 for WKT and WKB input and added a max_geom_collections setting for GEOSGeometry and related fields.

    Django Urges Immediate Upgrade to 6.0.8 and 5.2.17 After Four Security Fixes
  3. Aug 4, 20264mo ago

    Django fixes CVE-2026-15337 in stable 6.0.x branch

    On August 4, 2026, Django committed fix 224dbc8 for CVE-2026-15337 on the stable/6.0.x branch and shipped it in Django 6.0.8. The patch mitigated the potential denial-of-service issue in check_for_language() by rejecting language codes longer than 500 characters before cached lookup and moving catalog existence checks into a separate cached helper.

    [6.0.x] Fixed CVE-2026-15337 -- Mitigated potential DoS in check_for_… · django/django@224dbc8 · GitHub
  4. Aug 4, 20264mo ago

    Django fixes CVE-2026-15337 DoS issue in 5.2.x branch

    On August 4, 2026, Django fixed CVE-2026-15337 in commit c72a5db and shipped it in Django 5.2.17. The low-severity flaw in django.utils.translation.check_for_language() could allow attacker-controlled long language codes to accumulate as cache keys and consume memory, so Django began rejecting codes longer than 500 characters before cached lookup.

    [5.2.x] Fixed CVE-2026-15337 -- Mitigated potential DoS in check_for_… · django/django@c72a5db · GitHub
  5. Aug 4, 20264mo ago

    CVE-2026-15307 is published for GeoDjango spatial lookup flaw

    On August 4, 2026, CVE-2026-15307 was published for a high-severity GeoDjango issue in which untrusted spatial lookup input could trigger server-side file writes, outbound network requests, and in some cases remote code execution. The issue affects Django 5.2 before 5.2.17 and 6.0 before 6.0.8, and Django credited Bence Nagy, localhost-detect, and kimchunbok_ for reporting it.

    oss-sec: Django CVE-2026-15307, CVE-2026-15337, CVE-2026-15830, and CVE-2026-15920
  6. Aug 4, 20264mo ago

    Django releases 6.0.8 and 5.2.17 to fix four vulnerabilities

    On August 4, 2026, the Django team issued security releases Django 6.0.8 and Django 5.2.17. The releases fixed CVE-2026-15307, CVE-2026-15337, CVE-2026-15830, and CVE-2026-15920 across supported branches.

    oss-sec: Django CVE-2026-15307, CVE-2026-15337, CVE-2026-15830, and CVE-2026-15920
Linked entities

Related entities

Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.

Open in app →

Affected products

2 linked
DjangoDjango
Do you run this?See whether adversaries are exploiting this yet, and where the affected versions run in your environment.
Check Your Exposure
Mallory platform

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which threat actors are using it right now, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.