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: n/a
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-789). 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 18, 2026 at 14:08 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 18, 2026 at 14:08 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

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

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-10-18T12:19:36.940Z

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

Link: CVE-2026-112048

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

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

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

Link: CVE-2026-112048

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-18T14:15:14Z

Weaknesses
  • CWE-789

    Memory Allocation with Excessive Size Value