Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSupply crafted CircularString/CurvePolygon as WKT or WKB
-
ExploitApplication runs PreparedGeometry contains against prepared rectangle
-
ExecutionisContainedInBoundary recurses indefinitely on curved geometry
-
ImpactStack overflow crashes the process
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Recursion depth limits
|
| Exploitation Conditions | Exploitation requires the host application to parse and process attacker-supplied geometry through GEOS's prepared-rectangle containment path - specifically PreparedGeometry::contains or the GEOSPreparedContains C API - with the input being a curved geometry type: CircularString, CompoundCurve, or CurvePolygon supplied as WKT or WKB. Limiting factors: only these curved geometry types trigger the recursion (straight-line geometries are unaffected); the vulnerable code path is the RectangleContains prepared predicate, so the app must specifically prepare a rectangle and test containment; affected versions are 3.13.0 through 3.15.0 only (fixed in 3.15.1); and per UI:P the attacker cannot trigger it unaided - a victim application or user must feed the crafted geometry into the predicate. Impact is confined to availability (process crash); no data exposure or modification occurs. |
| Impact | This is a moderate-severity, availability-only denial-of-service issue (CWE-674 uncontrolled recursion) rather than a top-tier emergency. The supplied CVSS 4.0 vector (AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H) scores 6.8 and makes the limited impact clear: no confidentiality or integrity loss, only a process crash via stack overflow. Two signals pull the real-world risk down: the Local attack vector (AV:L) and Passive user interaction (UI:P) mean an application must actually ingest and process attacker-supplied geometry for the flaw to fire - it is not a self-propagating remote crash against a listening service by itself. The vuln.today Decision label is 'this_month' (not act_now/emergency), consistent with a patch-on-normal-cadence priority. No CISA KEV entry and no EPSS score are provided in the input, and there is no confirmed active exploitation. One caveat worth stating explicitly: the real exposure depends heavily on deployment - if GEOS sits behind a service that parses untrusted WKT/WKB (e.g. a web API or a PostGIS-backed endpoint accepting user geometries), the practical reachability is closer to remote even though the library-level vector is scored Local; verify how geometry reaches the parser in your environment. Overall: a genuine but contained DoS that merits scheduled patching, not crisis response. |
| Exploit ScenarioDerived | An application using GEOS 3.13.0-3.15.0 accepts an untrusted geometry and runs a prepared-rectangle containment test (PreparedGeometry::contains or GEOSPreparedContains). An attacker submits a crafted CircularString, CompoundCurve, or CurvePolygon as WKT or WKB; isContainedInBoundary recurses indefinitely over the curved component returned by getGeometryN, exhausting the stack and crashing the process. No public weaponized exploit is identified, though the vendor's fix PR includes a unit test that reproduces the faulty behavior. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 25, 2026
A stack-overflow denial of service affects GEOS 3.13.0 through 3.15.0, where the prepared-geometry rectangle containment predicate (RectangleContains::isContainedInBoundary) recurses without a bound when it encounters curved geometry types. An attacker who can get geometry data into an application that prepares a rectangular geometry and then calls PreparedGeometry::contains or the GEOSPreparedContains C API can supply a crafted CircularString, CompoundCurve, or CurvePolygon (as WKT or WKB) and crash the process; straight-line geometries do not trigger the flaw. The independent assessment rates this availability-only issue at moderate severity (CVSS 3.1 AV:L/AC:L/PR:N/UI:R, A:H) because a victim application or user must feed the crafted geometry into the predicate, and there is no evidence of active exploitation in CISA KEV and no public exploit identified at time of analysis; the fix is released in GEOS 3.15.1.
RemediationAI
Upgrade to GEOS 3.15.1, the first release containing the fix (release notes at https://github.com/libgeos/geos/releases/tag/3.15.1); the change originates in PR https://github.com/libgeos/geos/pull/1617 with commits b6754aa2eb591a2bdabfe7f730c1e3c9c71408e5 and 840d85dcb76aaf7c92f8d168a69f01e3987b25d2, and vendor guidance is published at https://www.vulncheck.com/advisories/geos-3.13.0-before-3.15.1-uncontrolled-recursion-in-rectanglecontains-iscontainedinboundary. Where an immediate upgrade is not possible, gate untrusted input before it reaches the predicate: reject or strip CircularString, CompoundCurve and CurvePolygon geometries during WKT/WKB parsing, or linearise curves to straight segments before calling PreparedGeometry::contains or GEOSPreparedContains - the trade-off is loss of exact curve semantics for containment tests and the need to touch every ingest path. Alternatively, avoid preparing rectangular geometries for containment against untrusted input and use the non-prepared predicate implementations, at a performance cost on large spatial workloads. Note that the patched code signals the condition by throwing geos::util::GEOSException, so after upgrading, callers should ensure that exception is caught and mapped to an input-validation error rather than an unhandled crash.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
GEOS is the C/C++ geometry engine behind PostGIS, Shapely, GDAL and many spatial data pipelines, and it implements OGC Simple Features plus the SQL/MM curve types (CircularString, CompoundCurve, CurvePolygon). The vulnerability is CWE-674 (uncontrolled recursion) rooted in the optimised prepared-predicate path: when a geometry is prepared as a rectangle, RectangleContains::isContainedInBoundary walks components via getGeometryN and, for curved geometry types, keeps re-entering the same structure instead of terminating, exhausting the call stack and aborting the process. The upstream fix in PR #1617 adds a call to util::ensureNoCurvedTypes(geom) in RectangleContains.cpp, so curved inputs are rejected with a geos::util::GEOSException rather than recursed into; the accompanying unit test prepares POLYGON((0 0,10 0,10 10,0 10,0 0)) and asserts that contains() of CIRCULARSTRING (1 5, 5 1, 9 5) throws. The trigger is limited to the prepared-rectangle containment path with curved operands - the advisory does not describe any other code path as affected - and the CPE cpe:2.3:a:osgeo:geos:*:*:*:*:*:*:*:* covers the library across all consumers, so downstream applications inherit the behaviour depending on the GEOS version they bundle.
Know when Geos 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
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
A library crash driven by data the host app must process locally (AV:L, UI:R), no authentication to craft the input (PR:N), reliably triggered (AC:L), and availability-only impact from the stack overflow (A:H, C/I:N).
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
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.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
EUVD-2026-135776
GHSA-35qp-87hh-mfr5
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB