# CVE-2026-112048: libspatialite through 5.1.0 Uncontrolled Memory Allocation via ParseWkbPolygon Ring Count

- Severity: Medium 6.9 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.18%, higher than 7% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-10-18T12:19:36.940Z
- Modified: 2026-10-20T16:17:01.487Z
- Weaknesses: CWE-789
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: VulnCheck

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

(As written by CVE List.)

## Affected

- SpatiaLite libspatialite: up to 5.1.0

## Every score

- VulnCheck: CVSS:4.0 6.9 Medium `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`
- VulnCheck: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:H`

## References

- <https://hackmd.io/@haindpwn/libspatialite-wkb-geometry-count-overflow> (exploit, third-party-advisory)
- <https://www.gaia-gis.it/fossil/libspatialite/file?name=src/gaiageo/gg_wkb.c&ci=5a5528e8d2> (technical-description)
- <https://www.vulncheck.com/advisories/libspatialite-through-5.1.0-uncontrolled-memory-allocation-via-parsewkbpolygon-ring-count> (third-party-advisory)

## Sources

- CVE List: [CVE-2026-112048](https://www.cve.org/CVERecord?id=CVE-2026-112048), CVE Terms of Use, modified 2026-10-20
- NVD: [CVE-2026-112048](https://nvd.nist.gov/vuln/detail/CVE-2026-112048), Public domain, modified 2026-10-20

---

Page: https://cve.day/CVE-2026-112048 · Whole record: https://cve.day/CVE-2026-112048.json · Rebuilt by cve.day 2026-11-25T22:59:45.175Z
