VDB
Sign up
CRITICAL9.8

PYSEC-2026-296

Insecure deserialization in BentoML

Quick fix

PYSEC-2026-296 — bentoml: upgrade to the fixed version with the command below.

pip install --upgrade 'bentoml>=1.2.5'

Details

An insecure deserialization vulnerability exists in the BentoML framework, allowing remote code execution (RCE) by sending a specially crafted POST request. By exploiting this vulnerability, attackers can execute arbitrary commands on the server hosting the BentoML application. The vulnerability is triggered when a serialized object, crafted to execute OS commands upon deserialization, is sent to any valid BentoML endpoint. This issue poses a significant security risk, enabling attackers to compromise the server and potentially gain unauthorized access or control.

Are you affected?

Enter the version of the package you're using.

Affected packages

PyPI/bentoml
Introduced in: 0Fixed in: 1.2.5
Fixpip install --upgrade 'bentoml>=1.2.5'

References