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-112108 Overview
CVE-2026-112108 is a buffer overflow vulnerability in ztxz16 fastllm through version 0.1.8.2. The flaw resides in the GGUFBuffer::ReadString function within third_party/gguf/gguf.cpp, part of the String Parsing component. Manipulation of the len argument triggers the overflow condition during GGUF file parsing. The issue is classified under [CWE-119] (Improper Restriction of Operations within the Bounds of a Memory Buffer). A public proof-of-concept exploit has been disclosed. The project maintainer was notified through an issue report but has not responded at the time of publication.
Critical Impact
Attackers can trigger memory corruption in fastllm by supplying a crafted GGUF model file, with user interaction required to load the malicious file.
Affected Products
- ztxz16 fastllm versions up to and including 0.1.8.2
- The vulnerable component is third_party/gguf/gguf.cpp (GGUF parser)
- Downstream applications embedding the fastllm GGUF loader
Discovery Timeline
- 2026-10-19 - CVE-2026-112108 published to NVD
- 2026-10-22 - Last updated in NVD database
Technical Details for CVE-2026-112108
Vulnerability Analysis
The vulnerability affects the GGUFBuffer::ReadString function used by fastllm to parse string fields inside GGUF model files. GGUF is the binary container format used to distribute quantized large language model weights. During parsing, the function reads a length prefix (len) from the input buffer and then copies that many bytes into a destination buffer. The function fails to validate len against the remaining buffer size or the destination buffer capacity. A crafted GGUF file can therefore specify an attacker-controlled len value that drives an out-of-bounds write or read.
The weakness is categorized as [CWE-119]. Because model files are routinely downloaded from public repositories, the attack surface extends to any workflow that loads untrusted GGUF files through fastllm. A public proof-of-concept has been published, lowering the effort required to reproduce the issue.
Root Cause
The root cause is missing bounds validation on the len argument before performing the string copy inside GGUFBuffer::ReadString. The parser treats the length field as trusted input rather than as attacker-controlled data derived from the file.
Attack Vector
Exploitation requires an operator to load a malicious GGUF file into an application that uses fastllm. The attacker delivers the crafted model through a model-sharing site, repository, or direct transfer. Opening the file in a vulnerable version triggers the overflow in the string parsing path. Impact depends on the host application and allocator behavior.
No verified exploit code is reproduced here. Refer to GitHub Issue #759 and the VulDB entry for CVE-2026-112108 for technical details.
Detection Methods for CVE-2026-112108
Indicators of Compromise
- Crashes or segmentation faults in processes that load GGUF files via fastllm
- Unexpected memory region writes originating from the GGUFBuffer::ReadString call path
- GGUF files with abnormally large string length prefixes that do not match the enclosing file size
Detection Strategies
- Perform static scanning of GGUF files to flag string length fields that exceed the file length
- Instrument fastllm builds with AddressSanitizer in test environments to surface out-of-bounds access during model loading
- Inventory systems and build pipelines that depend on ztxz16/fastllm and flag versions at or below 0.1.8.2
Monitoring Recommendations
- Monitor model-loading services for process crashes correlated with newly introduced GGUF files
- Log the source URL and SHA-256 of every GGUF file ingested by inference services
- Alert on inference workers restarting repeatedly after loading an untrusted model artifact
How to Mitigate CVE-2026-112108
Immediate Actions Required
- Restrict fastllm to loading only GGUF files from trusted, integrity-verified sources
- Isolate inference processes that parse untrusted GGUF files in sandboxed or containerized environments with minimal privileges
- Review build pipelines and remove unused copies of ztxz16/fastllm from systems that do not require it
Patch Information
At the time of publication, no vendor patch has been released. The maintainer was informed through GitHub Issue #759 but has not responded. Monitor the ztxz16/fastllm repository for upstream fixes and apply updates as soon as they are available.
Workarounds
- Reject GGUF files whose declared string length fields exceed the remaining file size during pre-parse validation
- Run fastllm under a memory-safety wrapper or seccomp profile that terminates on out-of-bounds access
- Disable automated ingestion of community-sourced GGUF models until a patched release is available
# Example pre-flight check: reject GGUF files above an expected size ceiling
MAX_SIZE=$((8 * 1024 * 1024 * 1024)) # 8 GiB ceiling, adjust per deployment
for f in ./models/*.gguf; do
size=$(stat -c%s "$f")
if [ "$size" -gt "$MAX_SIZE" ]; then
echo "REJECT: $f exceeds size policy"
mv "$f" ./quarantine/
fi
done
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

