
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-1260 is a heap overflow vulnerability in Google's SentencePiece library, an unsupervised text tokenizer widely used in neural network-based NLP systems. The flaw involves invalid memory access triggered when processing a specially crafted (non-standard) model file, and affects all SentencePiece versions prior to 0.2.1. It was disclosed on January 22, 2026, with a patch released in version 0.2.1. The vulnerability carries a CVSS v3.1 score of 7.8 (High) and a CVSS v4.0 score of 8.5 (High) (Github Advisory, NVD).
The root cause is classified as CWE-119 (Improper Restriction of Operations within the Bounds of a Memory Buffer), specifically a heap overflow in the PrefixMatcher constructor within src/normalizer.cc. The fix (commit d856b67) shows that the trie_->build() call previously omitted string length information when constructing the double array trie, allowing out-of-bounds memory access when processing a maliciously crafted precompiled normalization model embedded in a SentencePiece model file (GitHub Commit). Exploitation requires a local attack vector with low complexity and passive user interaction — specifically, a user must load the malicious model file. The vulnerability cannot be triggered by model files produced through the normal SentencePiece training procedure (Github Advisory).
Successful exploitation can result in high-impact confidentiality, integrity, and availability consequences on the affected system, including memory disclosure, data corruption, and application crashes. An attacker who can convince a user to load a maliciously crafted SentencePiece model file could potentially achieve arbitrary code execution in the context of the application using the library. Given SentencePiece's widespread use in ML/NLP pipelines and tools (including popular fine-tuning frameworks), the blast radius could extend to AI training environments and inference systems (Github Advisory, Feedly).
No public proof-of-concept exploit code is known to exist, and there is no evidence of in-the-wild exploitation at this time (Github Advisory). The EPSS score is approximately 0.002% (0th percentile), indicating a very low near-term exploitation probability. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. No threat actor attribution has been reported. Exploitation requires user interaction (loading a malicious model file locally), which limits opportunistic exploitation but remains a realistic threat in supply chain or social engineering scenarios.
.model file containing an invalid or specially crafted precompiled normalization model (not producible via normal training). The malicious data must be structured to trigger an out-of-bounds memory access in the PrefixMatcher constructor's trie_->build() call..model file using a vulnerable version of SentencePiece (< 0.2.1), for example via spm.SentencePieceProcessor(model_file='malicious.model') in Python or equivalent C++ API.PrefixMatcher constructor processes the embedded normalization rules without proper length bounds, causing a heap buffer overflow in src/normalizer.cc.SentencePieceProcessor..model files from untrusted or unverified external sources; model files with anomalous sizes or structures inconsistent with normally trained models.normalizer.cc or PrefixMatcher; heap corruption error messages from memory allocators (e.g., glibc malloc errors, AddressSanitizer reports).The primary remediation is to upgrade SentencePiece to version 0.2.1 or later, which includes a security fix for the heap overflow in the precompiled normalization model processing (GitHub Release). Python users should run pip install --upgrade sentencepiece to obtain the patched package. As a workaround, organizations should restrict the use of SentencePiece model files to those sourced from trusted, verified origins, and implement integrity checks (e.g., cryptographic hash verification) before loading any model file. Automated ML pipelines that load model files from external repositories should be reviewed and hardened against supply chain risks (Github Advisory).
The vulnerability received routine coverage across vulnerability tracking platforms and security feeds shortly after disclosure on January 22, 2026. A related GitHub issue was opened in the kohya_ss fine-tuning framework repository, indicating community awareness of the downstream impact on popular ML tooling (kohya_ss Issue). Red Hat tracked the vulnerability via Bugzilla and published a CVE advisory page, reflecting its relevance to Linux distributions packaging SentencePiece (Red Hat). A Fedora update including the SentencePiece patch was also noted in Linux community coverage (LinuxCompatible). Overall community reaction was measured, consistent with a patched vulnerability requiring user interaction and lacking public exploit code.
Fix availability across major Linux distributions and their releases.
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."