Skip to main content

GEOS EUVDEUVD-2026-135776

| CVE-2026-137070 MEDIUM
Uncontrolled Recursion (CWE-674)
2026-11-25 VulnCheck GHSA-35qp-87hh-mfr5
6.8
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Access
    Supply crafted CircularString/CurvePolygon as WKT or WKB
  2. Exploit
    Application runs PreparedGeometry contains against prepared rectangle
  3. Execution
    isContainedInBoundary recurses indefinitely on curved geometry
  4. Impact
    Stack 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.

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

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

Alert me

AnalysisAIv1 – 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

GEOS 3.13.0 <3.15.1

Affected Packages

euvd geos fix: 3.15.1

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

Vendor (VulnCheck) PRIMARY 6.8 MEDIUM
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
vuln.today AI 5.5 MEDIUM

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).

3.1 AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
4.0 AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Red Hat 5.5 MEDIUM

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

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

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

EPSS Score
0.4%
Top 69% exploitable
Prevalence
High
core geometry engine behind PostGIS, QGIS, Shapely and many GIS stacks
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment MSRC Vendor 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.4%
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· derived
Scheduled
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact· derived
High
Technical Impact
Partial

Priority Score

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

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

Vendor StatusVendor

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