VDB
Sign up
—

PYSEC-2026-1909

Sentencepiece has a a heap overflow issue

Quick fix

PYSEC-2026-1909 — sentencepiece: upgrade to the fixed version with the command below.

pip install --upgrade 'sentencepiece>=0.2.1'

Details

Invalid memory access in Sentencepiece versions less than 0.2.1 when using a vulnerable model file, which is not created in the normal training procedure.

Are you affected?

Enter the version of the package you're using.

Affected packages

PyPI/sentencepiece
Introduced in: 0Fixed in: 0.2.1
Fixpip install --upgrade 'sentencepiece>=0.2.1'

References