GEOS 3.13.0 before 3.15.1 Uncontrolled Recursion in RectangleContains::isContainedInBoundary
- State
- Published
- Severity
- 6.8 Medium
- Published
- Nov 25, 2026
- Updated
- Nov 25, 2026
- Reserved
- Nov 25, 2026
Description
GEOS 3.13.0 before 3.15.1 contains an uncontrolled recursion vulnerability in RectangleContains::isContainedInBoundary that recurses indefinitely on curved geometries returned by getGeometryN. Attackers can supply crafted WKT or WKB CircularString, CompoundCurve, or CurvePolygon geometries tested via PreparedGeometry::contains or GEOSPreparedContains against a prepared rectangle to crash the process with a stack overflow.
| Product | Versions |
|---|---|
| GEOS OSGeo | 3.13.0 to before 3.15.1 Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 6.8 Medium | VulnCheck | |
| 3.1 | 5.5 Medium | VulnCheck |
Weaknesses
- CWE-674 Uncontrolled Recursion
References
- https://github.com/libgeos/geos/pull/1617Issue TrackerPatch
- https://github.com/libgeos/geos/commit/b6754aa2eb591a2bdabfe7f730c1e3c9c71408e5Patch
- https://github.com/libgeos/geos/commit/840d85dcb76aaf7c92f8d168a69f01e3987b25d2Patch
- GEOS 3.15.1 Release NotesRelease Notes
- https://github.com/libgeos/geos/blob/3.15.0/src/operation/predicate/RectangleContains.cpp#L50-L71Technical Details
- VulnCheck Advisory: GEOS 3.13.0 before 3.15.1 Uncontrolled Recursion in RectangleContains::isContainedInBoundaryThird-Party Advisory
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.