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 package | Versions | Reported by |
|---|---|---|
| django | from 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.8 | GitHub Advisory Database, PyPA Advisory Database |
| djangoproject django | before 5.2.17, from 6.0 before 6.0.8 | NVD |
| django (Bitnami) | before 5.2.17, from 6.0.0 before 6.0.8 | Bitnami Vulnerability Database |
All scores
| DSF | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
| DSF | 6.9medium CVSS:4.0 | 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 |
| GitHub | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
| GitHub | medium CVSS:4.0 | 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 |
| PyPA Advisory Database | Not scored CVSS:4.0 | 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/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 Database | medium rating |
Classification
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
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-15830 changed 2026-10-08 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-q238-5cxm-5c9h changed 2026-10-12 | CC-BY-4.0 |
| NVD | CVE-2026-15830 changed 2026-10-24 | Public domain |
| PyPA Advisory Database | PYSEC-2026-3717 changed 2026-10-01 | CC-BY-4.0 |
| Bitnami Vulnerability Database | BIT-DJANGO-2026-15830 changed 2026-10-09 | Apache-2.0 |