Heap-based Buffer Overflow Affecting sentencepiece package, versions [,0.2.1)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0% (1st percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Heap-based Buffer Overflow vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PYTHON-SENTENCEPIECE-15091567
  • published25 Jan 2026
  • disclosed22 Jan 2026
  • creditUnknown

Introduced: 22 Jan 2026

CVE-2026-1260  (opens in a new tab)
CWE-122  (opens in a new tab)

How to fix?

Upgrade sentencepiece to version 0.2.1 or higher.

Overview

sentencepiece is an Unsupervised text tokenizer and detokenizer.

Affected versions of this package are vulnerable to Heap-based Buffer Overflow via the processing of a malicious model file. An attacker can cause the application to access invalid memory regions by supplying a model file that contains an invalid precompiled normalization model.

CVSS Base Scores

version 4.0
version 3.1