CVE-2026-112052

libspatialite through 5.1.0 Integer Overflow in WKB Geometry Parsing

Published Oct 18, 2026 CVSS 4.0 · 6.9 Medium EPSS < 1% KEV · Not listed
Description
libspatialite through 5.1.0 contains an integer overflow vulnerability in the WKB point and vertex count size guard of ParseWkbLine and related parsers in gg_wkb.c, allowing out-of-bounds reads. Attackers can supply a crafted geometry BLOB with a large point count, for example in a SpatiaLite database file, to crash the process or corrupt heap memory on 32-bit builds.

Analysis

AI-generated

Technical impact

libspatialite through version 5.1.0 contains an integer overflow flaw (CWE‑190) and an out‑of‑bounds read vulnerability (CWE‑125) in the WKB geometry parsing routines. The overflow is triggered when the library parses a geometry blob with a point or vertex count larger than the internal guard, causing out‑of‑bounds reads. An attacker that can supply a crafted geometry BLOB—such as one stored in a SpatiaLite database—can trigger a crash or corrupt heap memory on 32‑bit builds, leading to service disruption or integrity violations.

Affected Systems

The vulnerable component is libspatialite from the SpatiaLite project. Versions 5.1.0 and earlier are affected, with 32‑bit platforms exhibiting the strongest manifestation. The flaw is exercised during normal parsing of WKB geometries, which can occur when opening or querying a database file.

Risk and Exploitability

The CVSS base score of 6.9 denotes moderate severity. No EPSS value is available, and the vulnerability is not listed in the CISA KEV catalog. Exploitation requires an attacker to provide a malicious geometry blob, which could be delivered via a crafted database file or through an application that loads untrusted data with libspatialite. The integer overflow and resulting out‑of‑bounds read can compromise application stability and memory, delivering denial of service or potential integrity compromise.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update libspatialite to a version newer than 5.1.0 where the integer overflow has been fixed.
  • If an update is not immediately available, disable or restrict the loading of WKB geometries from untrusted sources, or validate geometry data against length limits before parsing.
  • Monitor and audit database files for unusually large geometry blobs and avoid processing them.

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

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Spatialite
Spatialite libspatialite
Vendors & Products Spatialite
Spatialite libspatialite
Type Values Removed Values Added
References
Metrics ssvc

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

Type Values Removed Values Added
Description libspatialite through 5.1.0 contains an integer overflow vulnerability in the WKB point and vertex count size guard of ParseWkbLine and related parsers in gg_wkb.c, allowing out-of-bounds reads. Attackers can supply a crafted geometry BLOB with a large point count, for example in a SpatiaLite database file, to crash the process or corrupt heap memory on 32-bit builds.
Title libspatialite through 5.1.0 Integer Overflow in WKB Geometry Parsing
Weaknesses CWE-190
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'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Oct 19, 2026, 6:01 PM
Reserved
Oct 18, 2026, 11:54 AM
Status
Deferred
Published
Oct 18, 2026, 1:16 PM
Modified
Oct 19, 2026, 9:14 PM
Severity
Moderate
Public date
Oct 18, 2026, 12:19 PM