Skip to content
OpenAdvisories
High · 8.8 CVE-2026-44346 EUVD-2026-32609GHSA-w2pm-x38x-jp44PYSEC-2026-190

BentoML: Dockerfile command injection via envs[*].name in bentofile.yaml

Published May 27, 2026 · Updated May 28, 2026 · Assigned by GitHub_M

Description

BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Prior to 1.4.39, a malicious bentofile.yaml containing a newline-injected value in envs[*].name produces unquoted RUN directives in the BentoML-generated Dockerfile. When the victim runs bentoml containerize on the imported bento, those RUN directives execute on the host during docker build. This vulnerability is fixed in 1.4.39.

Affected products

VendorProductAffectedFixed
bentoml BentoML < 1.4.39 —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI bentoml < 1.4.39 1.4.39 GHSA-w2pm-x38x-jp44

References