MediumVulnerability
CVE-2026-85670: tokenizers BpeBuilder::build out-of-bounds buffer access on tokenizer.json
- Source
- NVD(opens in a new tab)
- Identifier
- CVE-2026-85670
- Published
- Record updated
- Known exploitation
- Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
- EPSS
- 0.3%Estimated probability that this CVE is exploited in the next 30 days, from the FIRST Exploit Prediction Scoring System. Read on .
Summary
CVE-2026-85670 affects tokenizers (Hugging Face) in BpeBuilder::build in tokenizers/src/models/bpe/model.rs, observed in version 0.23.1. When a crafted tokenizer.json is loaded via Tokenizer::from_file or Tokenizer::from_str, a merge whose concatenated token exceeds the longest vocabulary key overruns a scratch buffer, causing a panic that aborts the process in Rust and FFI embeddings, so an attacker can cause denial of service without any encoding step. A secondary defect at the same location causes a usize underflow when continuing_subword_prefix is set and a merge token is shorter than the prefix.
Mitigation
The source does not state a fix yet. Check the original advisory for updates.
Related items
- HighCVE-2026-142491: eole eval injection in pydantic configuration validatorsSame vendor, NVD/CVE Database
- MediumCVE-2026-142248: MLflow through 3.18.0 contains a server-side request forgery vulnerability in the AI Gateway LiteLLM provider that…Same vendor, NVD/CVE Database
- HighCVE-2026-141343: DLOmix unsafe deserialization code execution via malicious PyTorch model filesSame vendor, NVD/CVE Database
- HighCVE-2026-139989: Languagemodels 1.0.0 contains a template injection vulnerability in Config.use_hf_model that allows remote attackers to…Same vendor, NVD/CVE Database
- MediumCVE-2026-134825: Gradio 6.27.0 before 6.32.0 contains an authentication bypass vulnerability in gradio/history.py that allows remote…Same vendor, NVD/CVE Database