Skip to main content

Django GeoDjango CVE-2026-15830

| EUVDEUVD-2026-52749 MEDIUM
Uncontrolled Recursion (CWE-674)
6.9
CVSS 4.0 · Vendor
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Send crafted WKT/WKB POST request
  2. Delivery
    GeometryField/GEOSGeometry receives input
  3. Exploit
    GEOS recursive GEOMETRYCOLLECTION parsing
  4. Execution
    Stack exhaustion triggers segfault
  5. Persist
    Django worker process crashes
  6. Impact
    Service disruption (DoS)

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Recursion depth limits
Exploitation Conditions

The target Django application must have the GeoDjango GIS module installed and active (django.contrib.gis in INSTALLED_APPS). One or more of the following conditions must be true: (1) a view or form exposes a GeometryField form field that passes user-supplied data to GEOSGeometry using WKT or WKB format; (2) a model ORM lookup on a spatial field accepts user-controlled geometry values in WKT or WKB format; or (3) an admin changelist with a spatial model field is accessible. GeoJSON input paths are entirely unaffected. Exploitation is limited by: applications that restrict geometry input to GeoJSON only; multi-worker server configurations that auto-respawn crashed workers (limiting DoS to per-request disruption rather than full outage); and admin-facing spatial lookups which require at minimum staff-level authentication.

Impact

No CVSS vector or EPSS score was provided for CVE-2026-15830, and it is not listed in CISA KEV, so quantitative risk signals are absent. Django's own policy rates it 'moderate'. The realistic risk depends entirely on whether an application exposes geometry form fields or spatial lookup endpoints to untrusted users: if GeoJSON is the only accepted input format (common in REST APIs), the application is not vulnerable. A segfault crashes the Django worker process, which in multi-worker deployments (gunicorn, uWSGI) typically triggers automatic respawning, limiting the DoS window per request but enabling sustained disruption if the attacker can repeatedly send crafted payloads. There is no confidentiality or integrity impact - this is purely an availability concern. The absence of CVSS data is notable; security teams should independently score based on their specific deployment context.

Exploit ScenarioDerived

An unauthenticated attacker targeting a public-facing Django form that uses GeometryField (e.g., a location submission form) crafts a WKT payload consisting of 199 or more recursively nested GEOMETRYCOLLECTION(...) wrappers and submits it via a standard POST request. The payload is forwarded to GEOSGeometry, which triggers unbounded recursion in the GEOS C library, causing a segmentation fault and crashing the Django worker process. No public proof-of-concept has been identified, but the attack primitive - malformed WKT with extreme nesting - is trivially constructable from the advisory description alone.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.5% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Aug 04, 2026

Denial-of-service via recursive GEOMETRYCOLLECTION parsing crashes Django processes through a segmentation fault in the underlying GEOS library. Django's GEOSGeometry class, GeometryField form field, and spatial field lookups in versions 5.2, 6.0, 6.1 (RC), and main are all affected when processing WKT or WKB input containing deeply nested or excessively numerous GEOMETRYCOLLECTION objects. No public exploit code or active exploitation has been identified at time of analysis; the Django team rated this 'moderate' severity and issued fixed releases Django 5.2.17 and 6.0.8 on August 4, 2026.

RemediationAI

Upgrade to Django 5.2.17 or Django 6.0.8 immediately; these releases enforce a maximum depth of 198 GEOMETRYCOLLECTION objects for WKT and a total count of 198 (across both breadth and depth) for WKB. Release tarballs and wheels are available at https://www.djangoproject.com/download/5.2.17/tarball/ and https://www.djangoproject.com/download/6.0.8/tarball/ with PGP-verified checksums. If immediate upgrade is not possible, consider restricting geometry form field and API inputs to GeoJSON format only (parsed by GDAL and not affected), or add application-level validation to reject WKT/WKB inputs that exceed a reasonable nesting depth before passing them to GEOSGeometry. The patched versions also expose a new max_geom_collections argument on GEOSGeometry, the form field, and the model field, allowing operators to customize the threshold beyond the default of 198.

Affected VersionsENISA

Django 5.2 <5.2.17
Django 6.0 <6.0.8

Affected Packages

pypi django fix: 5.2.17, 6.0.8, 6.1.1

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in pypi

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The vulnerability resides in Django's GeoDjango GIS module, specifically in the GEOSGeometry class which wraps the GEOS (Geometry Engine - Open Source) C library for spatial data parsing. GEOS processes WKT and WKB geometry formats recursively; when GEOMETRYCOLLECTION nesting depth or total count exceeds safe thresholds, GEOS enters unbounded recursion leading to a stack exhaustion and segmentation fault - consistent with CWE-674 (Uncontrolled Recursion) or CWE-400 (Uncontrolled Resource Consumption). The flaw propagates through GeometryField form fields and spatial ORM lookups, meaning any Django view or admin interface that passes user-supplied WKT/WKB to GEOSGeometry is an attack surface. GeoJSON inputs are explicitly not affected because they are parsed by GDAL rather than GEOS. No CPE string or CWE identifier was provided in the source data; affected products are identified from the Django advisory text directly.

Know when Django gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (CNA) PRIMARY 6.9 MEDIUM
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
vuln.today AI 7.5 HIGH

Network-accessible form/API input path, no privileges required for public GeometryField forms, and impact is worker process crash (high availability, no C/I impact).

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
SUSE 7.5 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Red Hat 5.3 MEDIUM

Primary rating from Vendor (CNA).

CVSS VectorVendor

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Aug 04, 2026 - 17:16 EUVD
CVE Published
Aug 04, 2026 - 16:06 oss-security
HIGH

Description PRE-NVD

Disclosed via oss-security. NVD scoring and full description are pending.

Blast Radius

ecosystem impact
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 18 pypi packages depend on django (18 direct, 0 indirect)

Ecosystem-wide dependent count for version 6.0.

Executive ViewAI

Why It Matters

Django applications using spatial features (GeometryField, spatial lookups) are vulnerable to denial-of-service attacks via malformed geometry data (CVE-2026-15830), causing application process crashes and service disruption. Organizations running Django 5.2, 6.0, or 6.1 with geographic data processing face availability risk. Vendor patches were released August 4, 2026.

Business Impact: High
Compensating Controls

Apply vendor patch: Django 5.2.17 or 6.0.8 (released August 4, 2026). If immediate patching is infeasible, implement input validation on geometry submission endpoints and rate-limit spatial queries to reduce exposure.

Threat Intelligence Overview

EPSS Score
0.5%
Top 59% exploitable
Prevalence
Medium
optional GeoDjango GIS module, subset of Django deployments
Social Media
1
Sightings
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment Vendor CIRCL GitHub

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.5%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Partial

Priority Score

35
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +34
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

More in Django

View all
CVE-2021-23336 MEDIUM POC
5.9 Feb 15

The package python/cpython from 0 and before 3.6.13, from 3.7.0 and before 3.7.10, from 3.8.0 and before 3.8.8, from 3.9

CVE-2017-12794 MEDIUM POC
6.1 Sep 07

In Django 1.10.x before 1.10.8 and 1.11.x before 1.11.5, HTML autoescaping was disabled in a portion of the template for

CVE-2022-34265 CRITICAL POC
9.8 Jul 04

An issue was discovered in Django 3.2 before 3.2.14 and 4.0 before 4.0.6. Rated critical severity (CVSS 9.8), this vulne

CVE-2021-35042 CRITICAL POC
9.8 Jul 02

Django 3.1.x before 3.1.13 and 3.2.x before 3.2.5 allows QuerySet.order_by SQL injection if order_by is untrusted input

CVE-2019-19844 CRITICAL POC
9.8 Dec 18

Django before 1.11.27, 2.x before 2.2.9, and 3.x before 3.0.1 allows account takeover. Rated critical severity (CVSS 9.8

CVE-2026-61594 CRITICAL POC
9.1 Sep 16

An authentication/authorization bypass in the djust Python live-view framework (versions prior to 1.0.7) lets unauthenti

CVE-2026-61599 HIGH POC
8.8 Sep 16

Unauthenticated arbitrary Python module import in djust before 1.0.7 lets any client that can reach the WebSocket or SSE

CVE-2020-9402 HIGH POC
8.8 Mar 05

Django 1.11 before 1.11.29, 2.2 before 2.2.11, and 3.0 before 3.0.4 allows SQL Injection if untrusted data is used as a

CVE-2016-6186 MEDIUM POC
6.1 Aug 05

Cross-site scripting (XSS) vulnerability in the dismissChangeRelatedObjectPopup function in contrib/admin/static/admin/j

CVE-2026-93456 HIGH POC
8.4 Sep 18

Forged content modification in django-page-cms through 2.0.13 lets unauthenticated remote attackers exploit five CSRF-ex

CVE-2026-61593 HIGH POC
8.1 Sep 16

Cross-site request forgery in djust's Server-Sent-Events transport affects all versions prior to 1.0.7 and allows a cros

CVE-2026-61590 HIGH POC
7.4 Sep 16

Unauthenticated remote attackers can read live Django view and session state and invoke server-side handlers through dju

Vendor StatusVendor

SUSE

Severity: Important
Product Status
SUSE Linux Enterprise Module for Package Hub 15 SP7 Fixed
openSUSE Leap 16.0 Fixed
openSUSE Tumbleweed Fixed
SUSE Linux Enterprise Module for Package Hub 15 SP7 Affected
SUSE Linux Enterprise Module for Package Hub 15 SP6 Affected

References

Advisories & patches
PATCH https://github.com/django/django/commit/115ffd0463a765ab1cc93de18e94b5459b8a300e PATCH https://github.com/django/django/commit/13debb622a32720bda1bccda7622fd14fbf3931b PATCH https://github.com/django/django/commit/208f80cb682868b584ed0a78f23e4ba6304212aa PATCH https://github.com/django/django/commit/224dbc832586ad5cfb0237c2ff30d14baeaddc6f PATCH https://github.com/django/django/commit/27137e655e442e81095f1f8f77ff3870d9fdf169 PATCH https://github.com/django/django/commit/39b3e2d0c743a338def6c473086ebc06865e86b6 PATCH https://github.com/django/django/commit/47511a21026cdd721d8fbf8571cc079bc38bb46d PATCH https://github.com/django/django/commit/5a260d309a4c8010c2ebda24eb758a5d95e2508a PATCH https://github.com/django/django/commit/5b3523d29be25948e1dd90b3863a002f00fc865f PATCH https://github.com/django/django/commit/6af5da31775417c610dbf9c3f1b5b8333d42daf6 PATCH https://github.com/django/django/commit/9e4a3f186b6b07b483bfd9195ea06734663fcd06 PATCH https://github.com/django/django/commit/b9adb81339cc418f8f56b1050cca6dfec3ab6349 PATCH https://github.com/django/django/commit/ba80833fa656dd09660b97c4429331067db1b080 PATCH https://github.com/django/django/commit/c72a5dbb64d0777f3f471f1be94e8b2ca91e0959 PATCH https://github.com/django/django/commit/d2e59b77fe18de318a8272c2a7bbc798d84d1d0d PATCH https://github.com/django/django/commit/f1949c1f9758947ade984c895ff16bef46f56520 ADVISORY https://docs.djangoproject.com/en/dev/ref/contrib/gis/gdal/#raster-security ADVISORY https://docs.djangoproject.com/en/dev/releases/security/ ADVISORY https://groups.google.com/g/django-announce ADVISORY https://nvd.nist.gov/vuln/detail/CVE-2026-15830 ADVISORY https://seclists.org/oss-sec/2026/q3/406 ADVISORY https://www.djangoproject.com/download/5.2.17/checksum/ ADVISORY https://www.djangoproject.com/weblog/2026/aug/04/security-releases/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:3503/ REF https://github.com/django/django/commit/1eafa1a80f1363283f89208ba4499ed54e35f085 REF https://github.com/django/django/commit/4353dfb56f8ba3a6fccc4bdd7f2ef2fbee3aa638 REF https://github.com/django/django/commit/62ef9d40cf4ea75f16518436b44b8ab2515340df REF https://github.com/django/django/commit/75d401a1491e04a907ed745c128836d51c982c0f

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy