Description
libspatialite through 5.1.0 fails to validate the polygon ring count in ParseWkbPolygon, allowing attackers to trigger uncontrolled interior-ring allocation via crafted geometry BLOBs. Attackers can supply a crafted polygon in a SpatiaLite database or ST_GeomFromWKB input to crash the process or corrupt heap memory on 32-bit builds.
Published: 2026-10-18
Score: 6.9 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Denial of Service and Heap Corruption
Action: Apply Patch
AI Analysis

Impact

libspatialite through 5.1.0 allows an attacker to supply a polygon geometry with an unvalidated ring count, causing the ParseWkbPolygon routine to allocate an uncontrolled number of interior‑ring structures. This flaw leads to a crash or heap corruption on 32‑bit builds. The weakness is a classic uncontrolled memory allocation vulnerability (CWE-770). The resulting heap corruption could potentially enable arbitrary code execution, but such an outcome is inferred rather than explicitly documented in the CVE description.

Affected Systems

The vulnerability impacts the libspatialite component of SpatiaLite up to and including version 5.1.0. Systems that use any 32‑bit build of this library and process user‑provided geometry—such as database records stored in SpatiaLite or direct calls to ST_GeomFromWKB—are at risk. Applications that embed libspatialite as a dependency, regardless of language, are also affected when the vulnerable versions are present.

Risk and Exploitability

A CVSS score of 6.9 indicates moderate severity, and the absence of EPSS data and a KEV listing suggests that exploitation likelihood is currently low to moderate. The vulnerability can be exploited by injecting a crafted WKB polygon that contains an oversized ring count; the attack vector therefore requires the ability to influence input processed by libspatialite. It is inferred that, on 32‑bit builds, a successful exploit that corrupts heap memory could be escalated to arbitrary code execution, but no confirmed exploitation evidence is provided.

Generated by OpenCVE AI on October 19, 2026 at 01:22 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade libspatialite to the latest released version that includes a polygon ring count validation.
  • Validate or sanitize polygon WKB input before passing it to libspatialite, ensuring the ring count does not exceed a safe threshold.
  • Monitor application and system logs for crashes or abnormal memory behavior and apply the patch as soon as it becomes available.

Generated by OpenCVE AI on October 19, 2026 at 01:22 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 21 Oct 2026 17:15:00 +0000

Type Values Removed Values Added
First Time appeared Spatialite
Spatialite libspatialite
Vendors & Products Spatialite
Spatialite libspatialite

Tue, 20 Oct 2026 16:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Mon, 19 Oct 2026 00:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-770
References
Metrics threat_severity

None

threat_severity

Moderate


Sun, 18 Oct 2026 12:45:00 +0000

Type Values Removed Values Added
Description libspatialite through 5.1.0 fails to validate the polygon ring count in ParseWkbPolygon, allowing attackers to trigger uncontrolled interior-ring allocation via crafted geometry BLOBs. Attackers can supply a crafted polygon in a SpatiaLite database or ST_GeomFromWKB input to crash the process or corrupt heap memory on 32-bit builds.
Title libspatialite through 5.1.0 Uncontrolled Memory Allocation via ParseWkbPolygon Ring Count
Weaknesses CWE-789
References
Metrics cvssV3_1

{'score': 6.1, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:H'}

cvssV4_0

{'score': 6.9, 'vector': 'CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:H/SC:N/SI:N/SA:N'}


Subscriptions

Spatialite Libspatialite
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-10-20T15:31:53.762Z

Reserved: 2026-10-18T11:48:36.083Z

Link: CVE-2026-112048

cve-icon Vulnrichment

Updated: 2026-10-20T15:31:18.174Z

cve-icon NVD

Status : Deferred

Published: 2026-10-18T13:16:36.770

Modified: 2026-10-20T16:17:01.487

Link: CVE-2026-112048

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-10-18T12:19:36Z

Links: CVE-2026-112048 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-10-21T17:02:13Z

Weaknesses
  • CWE-770

    Allocation of Resources Without Limits or Throttling

  • CWE-789

    Memory Allocation with Excessive Size Value