{"id":"CVE-2026-112052","kind":"vulnerability","aliases":["CVE-2026-112052"],"related":[],"title":"libspatialite: integer overflow in WKB parser allows out-of-bounds reads","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.","summary":"libspatialite through 5.1.0 has an integer overflow in the point and vertex count size check used when parsing WKB geometry in gg_wkb.c. A crafted geometry BLOB with a large point count can crash the process or corrupt heap memory on 32-bit builds.","severity":"medium","cvss":6.9,"epss":null,"exploited":false,"exploited_at":null,"products":[],"ecosystems":[],"tags":["32-bit","c","gis","libspatialite","package","spatialite"],"not_affected_if":["64-bit-build","trusted-data-only"],"how_to_check":"- Run `spatialite --version` or check the libspatialite version in the application's dependencies, and compare against `5.1.0`\n- Look for libspatialite in the build or lockfile (for example `libspatialite` in a Debian or Alpine package list)\n- unknown whether a specific fixed version exists in the sources","fix":"- Upgrade libspatialite past `5.1.0` once a patched release is available; unknown whether one has shipped\n- Until then, only open geometry data from trusted sources in SpatiaLite databases","status":"open","published_at":"2026-10-18T13:16:37+00:00","first_seen_at":"2026-10-23T21:57:15+00:00","triaged_at":"2026-10-25T03:40:58+00:00","updated_at":"2026-10-25T03:40:58+00:00","category":"package","confidence":0.5,"triage":{"at":"2026-10-25T03:40:58Z","model":"claude-haiku-5-5","output":{"fix":"- Upgrade libspatialite past `5.1.0` once a patched release is available; unknown whether one has shipped\n- Until then, only open geometry data from trusted sources in SpatiaLite databases","reach":"unknown","title":"libspatialite: integer overflow in WKB parser allows out-of-bounds reads","impact":"medium","summary":"libspatialite through 5.1.0 has an integer overflow in the point and vertex count size check used when parsing WKB geometry in gg_wkb.c. A crafted geometry BLOB with a large point count can crash the process or corrupt heap memory on 32-bit builds.","category":"package","nicknames":[],"who_cares":["libspatialite","spatialite","gis","32-bit","c"],"confidence":0.5,"needs_auth":"unknown","worst_case":"process crashes or heap memory is corrupted on 32-bit builds","analyst_note":"Check the NVD entry and the upstream libspatialite repository for a fixed version and whether the flaw is reachable on 64-bit builds.","how_to_check":"- Run `spatialite --version` or check the libspatialite version in the application's dependencies, and compare against `5.1.0`\n- Look for libspatialite in the build or lockfile (for example `libspatialite` in a Debian or Alpine package list)\n- unknown whether a specific fixed version exists in the sources","needs_analyst":true,"not_affected_if":["trusted-data-only","64-bit-build"],"who_is_affected":"Applications that load SpatiaLite databases or parse WKB geometry blobs from files or users with libspatialite 5.1.0 or earlier. The risk is highest on 32-bit builds, where the overflow corrupts memory; systems that only use trusted, locally created spatial data are less exposed.","user_interaction":"unknown","needs_special_setup":"unknown","severity_if_unknown":"unknown"},"cost_usd":0.000662,"input_tokens":3359,"output_tokens":652,"severity_before":"medium"},"analyst_status":null,"analyst_note":null,"search":"'-112052':15A,18A '-2026':14A,17A '32':19B,67B,129C '5.1.0':28B,72C 'allow':7A,95C 'attack':101C 'bit':20B,68B,130C 'blob':52B,107C 'bound':11A,99C 'build':69B,131C 'c':21B 'check':40B 'contain':73C 'corrupt':63B,125C 'count':38B,57B,84C,112C 'craft':50B,105C 'crash':59B,121C 'cve':13A,16A 'databas':118C 'exampl':114C 'file':119C 'geometri':45B,51B,106C 'gg':47B,93C 'gis':22B 'guard':86C 'heap':64B,126C 'integ':2A,31B,75C 'larg':55B,110C 'libspatialit':1A,23B,26B,70C 'memori':65B,127C 'out-of-bound':8A,96C 'overflow':3A,32B,76C 'packag':24B 'pars':43B 'parser':6A,91C 'parsewkblin':88C 'point':35B,56B,81C,111C 'process':61B,123C 'read':12A,100C 'relat':90C 'size':39B,85C 'spatialit':25B,117C 'suppli':103C 'use':41B 'vertex':37B,83C 'vulner':77C 'wkb':5A,44B,80C 'wkb.c':48B,94C","nicknames":[],"mitigations":[],"who_affected":"Applications that load SpatiaLite databases or parse WKB geometry blobs from files or users with libspatialite 5.1.0 or earlier. The risk is highest on 32-bit builds, where the overflow corrupts memory; systems that only use trusted, locally created spatial data are less exposed.","tier":"C","verified":{},"analyst_revisit_at":null,"first_public_at":"2026-10-18T13:16:37+00:00","kev":null,"cvss_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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","cvss_by":"disclosure@vulncheck.com","poc_count":0,"sources":[{"source":"nvd","external_id":"CVE-2026-112052","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-112052","severity":null,"published_at":"2026-10-18T13:16:37+00:00","modified_at":"2026-10-19T21:14:14+00:00","first_seen_at":"2026-10-23T21:57:15+00:00","fetched_at":"2026-10-23T22:28:55+00:00","note":null}],"documents":[],"notice":"Free to read at a human pace. An API with keys and an MCP server are in preparation; early access: hello@infrastack.ai"}