CVE-2026-1260 Invalid Memory Access in Sentencepiece,

High 8.5 Published Updated

Attackers can trigger invalid memory access and potential code execution by providing a specially crafted model file to the Sentencepiece library.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2026-1260?

CVE-2026-1260 is a high-severity memory corruption vulnerability in Google Sentencepiece, published on 22 Jan 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official description

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.

Weakness: CWE-119

Which versions are affected by CVE-2026-1260?

3 open source packages ship an affected version, including sentencepiece. It affects 1 product.

PackageAffectedFixed in
sentencepiece PyPIAll versions0.2.1
sentencepiece PyPIAll versions0.2.1
sentencepiece PyPIAll versions0.2.1

Products include Google Sentencepiece.

How do I fix CVE-2026-1260?

Upgrade sentencepiece to 0.2.1 or later.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2026-1260 being exploited?

There is no known exploitation of CVE-2026-1260 in the wild and no public exploit code.

Sources

Also known as GHSA-38vq-g6vr-w8wf, OESA-2026-3915, OESA-2026-3916, OESA-2026-3917, OESA-2026-4045, PYSEC-2026-1909.

Is CVE-2026-1260 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free