CVE-2026-15830
JSON

6.9medium

Potential denial-of-service vulnerability via nested geometry collections

Severity
6.9medium CVSS:4.0 by DSF
Exploit likelihood
2.18% (higher than 82% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
DSF
Also known as
GHSA-q238-5cxm-5c9hBIT-DJANGO-2026-15830PYSEC-2026-3717

Description

An issue was discovered in Django 6.0 before 6.0.9 and 5.2 before 5.2.18. GeoDjango's `django.contrib.gis.geos.GEOSGeometry` is subject to a potential denial-of-service when parsing deeply nested `GEOMETRYCOLLECTION` objects supplied as well-known text (WKT), well-known binary (WKB), or hex-encoded WKB, which triggers unbounded recursion and a segmentation fault in the underlying GEOS library. Spatial field lookups and the `django.contrib.gis.forms.GeometryField` form field are also affected. 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 Andrew MacPherson and kimchunbok_ for reporting this issue.

Affected

Product or packageVersionsReported by
djangofrom 6.0 before 6.0.9, from 5.2 before 5.2.18
Not affected: 6.0.9, 5.2.18
CVE List
django (PyPI)before 5.2.17, from 6.0a1 before 6.0.8, from 6.1a1 before 6.1.1, from 6.0 before 6.0.8GitHub Advisory Database, PyPA Advisory Database
djangoproject djangobefore 5.2.17, from 6.0 before 6.0.8NVD
django (Bitnami)before 5.2.17, from 6.0.0 before 6.0.8Bitnami Vulnerability Database

All scores

DSF5.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
DSF6.9medium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
GitHub5.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
GitHubmedium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
PyPA Advisory DatabaseNot scored CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/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
Bitnami Vulnerability Databasemedium rating

Classification

CWE-674

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.

What each source says

CVE List

An issue was discovered in Django 6.0 before 6.0.9 and 5.2 before 5.2.18. GeoDjango's `django.contrib.gis.geos.GEOSGeometry` is subject to a potential denial-of-service when parsing deeply nested `GEOMETRYCOLLECTION` objects supplied as well-known text (WKT), well-known binary (WKB), or hex-encoded WKB, which triggers unbounded recursion and a segmentation fault in the underlying GEOS library. Spatial field lookups and the `django.contrib.gis.forms.GeometryField` form field are also affected. 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 Andrew MacPherson and kimchunbok_ for reporting this issue.

GitHub Advisory Database

An issue was discovered in Django 5.2 before 5.2.17 and 6.0 before 6.0.8. GeoDjango's django.contrib.gis.geos.GEOSGeometry is subject to a potential denial-of-service when parsing deeply nested GEOMETRYCOLLECTION objects supplied as well-known text (WKT), well-known binary (WKB), or hex-encoded WKB, which triggers unbounded recursion and a segmentation fault in the underlying GEOS library. Spatial field lookups and the django.contrib.gis.forms.GeometryField form field are also affected. 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 Andrew MacPherson and kimchunbok_ for reporting this issue.

NVD (es)

Se descubrió un problema en Django 6.0 anterior a la versión 6.0.9 y 5.2 anterior a la versión 5.2.18. La clase ’django.contrib.gis.geos.GEOSGeometry’ de GeoDjango es susceptible a una posible denegación de servicio al analizar objetos ’GEOMETRYCOLLECTION’ profundamente anidados, proporcionados como texto conocido (WKT), binario conocido (WKB) o WKB codificado en hexadecimal, lo que desencadena una recursión ilimitada y un fallo de segmentación en la biblioteca GEOS subyacente. Las búsquedas de campos espaciales y el campo de formulario ’django.contrib.gis.forms.GeometryField’ también se ven afectados. Series de Django anteriores y sin soporte (como 5.1.x, 5.0.x y 4.2.x) no fueron evaluadas y también podrían verse afectadas. Django desea agradecer a Andrew MacPherson y kimchunbok_ por informar de este problema.

References

https://docs.djangoproject.com/en/dev/releases/security/advisory, fix, patch, vendor-advisory
https://groups.google.com/g/django-announcearticle, discussion, mailing-list, web
https://github.com/django/django/commit/d2e59b77fe18de318a8272c2a7bbc798d84d1d0dfix, patch, web
https://github.com/django/django/commit/9e4a3f186b6b07b483bfd9195ea06734663fcd06fix, patch, web
https://github.com/django/django/commit/6af5da31775417c610dbf9c3f1b5b8333d42daf6fix, patch, web
https://github.com/django/django/commit/ba80833fa656dd09660b97c4429331067db1b080fix, patch, web
https://www.djangoproject.com/weblog/2026/aug/04/security-releases/advisory, vendor-advisory
https://github.com/django/django/commit/62ef9d40cf4ea75f16518436b44b8ab2515340dfpatch, web
https://github.com/django/django/commit/75d401a1491e04a907ed745c128836d51c982c0fpatch, web
https://github.com/django/django/commit/4353dfb56f8ba3a6fccc4bdd7f2ef2fbee3aa638patch, web
https://github.com/django/django/commit/1eafa1a80f1363283f89208ba4499ed54e35f085patch, web
https://nvd.nist.gov/vuln/detail/CVE-2026-15830advisory, web

Sources

SourceRecordLicence
CVE ListCVE-2026-15830 changed 2026-10-08CVE Terms of Use
GitHub Advisory DatabaseGHSA-q238-5cxm-5c9h changed 2026-10-12CC-BY-4.0
NVDCVE-2026-15830 changed 2026-10-24Public domain
PyPA Advisory DatabasePYSEC-2026-3717 changed 2026-10-01CC-BY-4.0
Bitnami Vulnerability DatabaseBIT-DJANGO-2026-15830 changed 2026-10-09Apache-2.0