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
bentoml: bentoml
References2
- github.com/bentoml/BentoML/security/advisories/GHSA-w2pm-x38x-j… ExploitMitigationVendor Advisory
- github.com/bentoml/BentoML/security/advisories/GHSA-w2pm-x38x-j… ExploitMitigationVendor Advisory
Metrics
- CVSS 3.1
-
8.8
HIGH
Score source: CNA
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - EPSS — exploit probability
- 0% percentile: 25 · as of 14 November 2026
- CWE
- CWE-78CWE-94
Could this be exploited in your environment?
A patch closes the known hole. A penetration test shows what an attacker can still reach — with proof.