# OSV-2026-646: Heap-buffer-overflow in sentencepiece::unigram::Model::EncodeOptimized

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2026-04-29T00:04:02.164Z
- Modified: 2026-04-29T00:04:02.165Z

## Description

OSS-Fuzz report: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=507169860

```
Crash type: Heap-buffer-overflow READ 8
Crash state:
sentencepiece::unigram::Model::EncodeOptimized
sentencepiece::unigram::Model::Encode
sentencepiece::SentencePieceProcessor::Encode
```

(As written by OSS-Fuzz.)

## Affected

- sentencepiece (OSS-Fuzz): from ea83729ca83c4696a775d3d1e8a03e3bd4fa8d97 before eb3ba49278fd10e5ae7b1d71c87f50e5a842f541

## References

- <https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=507169860> (report)

## Sources

- OSS-Fuzz: [OSV-2026-646](https://osv.dev/vulnerability/OSV-2026-646), CC-BY-4.0, modified 2026-04-29

---

Page: https://cve.day/OSV-2026-646 · Whole record: https://cve.day/OSV-2026-646.json · Rebuilt by cve.day 2026-11-25T22:56:19.181Z
