CVE-2026-85670
CVE-2026-85670 — tokenizers BpeBuilder Buffer Overflow via merge token
tokenizers (Hugging Face) is affected by an out-of-bounds buffer access in BpeBuilder::build (tokenizers/src/models/bpe/model.rs). When loading a tokenizer.json via Tokenizer::from_file/from_str, the builder sizes a scratch buffer to the longest vocabulary key, then writes each concatenated merge rule into it. A merge whose concatenated token exceeds the longest vocabulary key overruns the buffer, which Rust turns into a panic that aborts the process in Rust and FFI embeddings. This occurs at load time with no encoding required, so an attacker who supplies a crafted tokenizer.json can cause a denial of service. A secondary defect at the same location can cause a usize underflow (panic in debug, potential memory corruption in release) when continuing_subword_prefix is set and a merge token is shorter than the prefix. Observed in version 0.23.1.
Published Updated Sources: cvelistV5, VulnCheck
Triage
Is it exploited, how likely is exploitation, what does it touch, and how severe do the scoring sources call it.
Exploitation
Unreported
no source claims exploitation
EPSS
<1%
chance of exploitation in 30 days
CVSS base
6.5
MEDIUM
CISA SSVC assessment
Three decision points CISA publishes for the CVEs it assesses · SSVC 2.0.3. A stakeholder decision, not a severity score.
Exploitation
PoC
none · proof-of-concept · active
Automatable
No
can an attacker script all four kill-chain steps
Technical impact
Partial
partial · total control of the vulnerable component
Affected scope
The catalog records vendors and products as separate lists, not pairs, so which product belongs to which vendor is not something this page can say.
Vendors (1)
Products (1)
Every base score collected
Sources score independently and disagree; each row says who scored it and under which version.
| Score | Version | Severity | Expl. | Impact | Source |
|---|---|---|---|---|---|
| 6.5 | CVSS 3.1 | MEDIUM | n/a | n/a | cvelistV5 |
Weakness & attack patterns
- CWE-787
Detection
Read off the CVSS vector and the weakness class. Starting points, not rules we have tested.
- Search application, proxy, and WAF logs for requests touching /src/models/bpe/model.rs), /from_str.
References
4 on the record
- github.com/huggingface/tokenizers/issues/2094
issue-tracking
- github.com/huggingface/tokenizers
product
- github.com/huggingface/tokenizers/blob/v0.23.2/tokenizers/src/models/bpe/model.rs
technical-description
- www.vulncheck.com/advisories/tokenizers-bpebuilder-buffer-overflow-via-merge-token
third-party-advisory
Related CVEs
Same product first, then the same weakness or threat actor.
- CVE-2025-43300 Apple iOS, iPadOS, and macOS Out-of-Bounds Write VulnerabilityCVSS 10.0 · CISA KEV
- CVE-2025-24201 Apple Multiple Products WebKit Out-of-Bounds Write VulnerabilityCVSS 10.0 · CISA KEV
- CVE-2021-35211 SolarWinds Serv-U Remote Code Execution VulnerabilityCVSS 10.0 · CISA KEV
- CVE-2020-14871 Oracle Solaris and Zettabyte File System (ZFS) Unspecified VulnerabilityCVSS 10.0 · CISA KEV
- CVE-2026-111497 Out-of-Bounds Write in Google Brotli DecoderCVSS 9.8 · CISA KEV
- CVE-2026-0300 PAN-OS: Unauthenticated user initiated Buffer Overflow Vulnerability in User-ID™ Authentication PortalCVSS 9.8 · CISA KEV
Elsewhere on this site
- Huggingfaceevery CVE for this vendor
- CWE-787other pages naming this weakness
Not in any source we poll
Listed rather than left blank: an empty field and an unmeasured one look identical on screen, and only one is a reason to look elsewhere.
- No confirmed IOCs, IP addresses, domains, file hashes, or malware artifacts supplied.
- No organization-specific asset inventory, compensating-control status, or patch deployment evidence supplied.
- No exploit packet captures, log samples, or incident case IDs supplied.