Skip to main content
Vulnerability Database/CVE-2026-112059

CVE-2026-112059: libLAS Heap Buffer Overflow Vulnerability

CVE-2026-112059 is a heap buffer overflow in libLAS through version 1.8.1 affecting point record processing. Attackers can exploit this flaw using crafted .las files to cause memory corruption. This article covers technical details, affected versions, impact analysis, and mitigation strategies.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-112059 Overview

CVE-2026-112059 is a heap out-of-bounds write vulnerability in libLAS through version 1.8.1. The flaw resides in the point record reader, which truncates the schema byte size to 16 bits when sizing the point buffer. Attackers can craft a .las file containing a LASSchema variable length record (VLR) with a schema exceeding 65535 bytes. When tools such as lasinfo, las2las, or las2txt parse the file, they write attacker-controlled bytes past the allocated heap buffer. The result is memory corruption and process crashes. This issue is tracked under CWE-787: Out-of-bounds Write.

Critical Impact

Processing a malicious .las file in any libLAS-based tool corrupts the heap and crashes the process, with potential for further memory corruption exploitation.

Affected Products

  • libLAS versions through 1.8.1
  • Command-line tools built on libLAS including lasinfo, las2las, and las2txt
  • Third-party geospatial applications linking against vulnerable libLAS releases

Discovery Timeline

  • 2026-10-18 - CVE-2026-112059 published to NVD
  • 2026-10-22 - Last updated in NVD database

Technical Details for CVE-2026-112059

Vulnerability Analysis

The LAS file format uses variable length records (VLRs) to describe point data layouts. One such record, LASSchema, defines the schema and per-point byte size. libLAS reads the declared schema size and uses it to allocate a heap buffer that stores each point as it is read from disk.

The reader stores this size in a 16-bit integer. When the on-disk schema size exceeds 65535 bytes, the value wraps and the allocated buffer becomes smaller than the actual record length the reader will write. Subsequent point reads copy attacker-controlled bytes beyond the end of the heap allocation, corrupting adjacent heap metadata and data structures. Successful exploitation requires a user to open or process a crafted file in a libLAS-powered tool. See the VulnCheck advisory and the HackMD root cause analysis for a deeper walkthrough.

Root Cause

The root cause is a numeric truncation error. The schema byte size, which the LAS specification permits to be larger than 16 bits, is stored in a 16-bit field before buffer allocation. The reader then uses the untruncated length when copying bytes, breaking the invariant that the buffer size equals or exceeds the copy length. Relevant code paths are visible in the libLAS reader source and the libLAS header source.

Attack Vector

Exploitation is local and requires user interaction. An attacker delivers a crafted .las file through email, a shared drive, or a web download. When the victim opens the file with lasinfo, las2las, las2txt, or any application linking libLAS, the parser writes past the heap buffer. Primary impact is availability through process crash, with potential heap-grooming scenarios enabling further memory corruption.

No verified public proof-of-concept code is listed in the NVD references. The vulnerability mechanism is described in the external HackMD and VulnCheck analyses linked above.

Detection Methods for CVE-2026-112059

Indicators of Compromise

  • .las files whose LASSchema VLR declares a schema byte size greater than 65535
  • Unexpected crashes or segmentation faults in lasinfo, las2las, or las2txt processes
  • Heap corruption signatures reported by glibc, AddressSanitizer, or Windows Fault Tolerant Heap when processing LAS files

Detection Strategies

  • Parse LAS files with a lightweight pre-validator that inspects each VLR header and rejects LASSchema records exceeding 65535 bytes before invoking libLAS
  • Build or load libLAS with AddressSanitizer in test and staging pipelines to surface out-of-bounds writes during fuzzing
  • Monitor crash reports from endpoints running geospatial toolchains and correlate with recent file ingestion events

Monitoring Recommendations

  • Enable file-type telemetry on endpoints that process geospatial data and alert on .las files arriving from untrusted sources
  • Capture process-crash events for libLAS-linked binaries and ship them to a centralized log store for triage
  • Track versions of libLAS and dependent packages across the fleet using software bill of materials (SBOM) tooling

How to Mitigate CVE-2026-112059

Immediate Actions Required

  • Inventory all systems running lasinfo, las2las, las2txt, or applications that bundle libLAS at version 1.8.1 or earlier
  • Restrict processing of externally supplied .las files to sandboxed or non-privileged accounts until a patched build is deployed
  • Validate LAS files with a schema-size pre-check that rejects any LASSchema VLR larger than 65535 bytes

Patch Information

At the time of publication, no fixed upstream release is referenced in the NVD entry. Distributors and downstream maintainers should track the libLAS repository for a patched release that widens the schema size storage from 16 bits and re-validates the buffer allocation against the declared length. Rebuild dependent tools and container images once a fix lands.

Workarounds

  • Pre-filter LAS files with a validation script that parses VLR headers and discards records whose declared schema size exceeds 65535 bytes
  • Run libLAS-based tools inside a container, chroot, or seccomp-restricted sandbox to contain heap corruption effects
  • Disable automatic LAS preview or indexing in GIS platforms that rely on libLAS until a patched version is installed
bash
# Example pre-filter: reject .las files whose LASSchema VLR exceeds 65535 bytes
# Replace this stub with a parser that walks the VLR table per LAS spec
python3 validate_las.py --max-schema-bytes 65535 /path/to/incoming.las \
  && lasinfo /path/to/incoming.las \
  || echo "Rejected: potential CVE-2026-112059 trigger"

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.