{"id":"CVE-2026-44346","published":"2026-05-27T17:22:47Z","modified":"2026-05-28T15:09:40Z","title":"BentoML: Dockerfile command injection via envs[*].name in bentofile.yaml","vendor":"bentoml","product":"BentoML","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00476,"percentile":0.33428,"provenance":"source"},"cwes":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"},{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"references":[{"url":"https://github.com/bentoml/BentoML/security/advisories/GHSA-w2pm-x38x-jp44","tags":["x_refsource_CONFIRM"]}],"priority":{"score":12.8,"factors":[{"name":"EPSS percentile","points":6.69},{"name":"CVSS severity","points":6.16}]},"vendorSlug":"bentoml","affectedVersions":[{"vendor":"bentoml","product":"BentoML","versions":["< 1.4.39"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2026-05-28T15:09:12.256831Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"bentoml","vulnerableRanges":["<1.4.39"],"patched":["1.4.39"],"from":["GHSA-w2pm-x38x-jp44","PYSEC-2026-190"],"provenance":"source"}],"summary":{"text":"BentoML, a Python library for building model-serving systems, contains an OS command injection flaw in how it generates Dockerfiles from the envs[*].name field of bentofile.yaml: newline characters in that value are not neutralised, so injected content becomes unquoted RUN directives. An attacker who can get a victim to import a malicious bento and run bentoml containerize on it, which requires user interaction, can have those commands executed on the host during docker build.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:52:21Z"},"euvd":{"id":"EUVD-2026-32609","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-bentoml-cve-2026-44345","parents":[{"from":"CVE-2026-44345","to":"CVE-2026-44346","relation":"related","confidence":"high","kind":"lineage","evidence":[{"kind":"osv-related","provenance":"source","id":"GHSA-78f9-r8mh-4xm2","via":"reference","url":"https://github.com/bentoml/BentoML/security/advisories/GHSA-w2pm-x38x-jp44"},{"kind":"osv-related","provenance":"source","id":"GHSA-w2pm-x38x-jp44","via":"reference","url":"https://github.com/bentoml/BentoML/security/advisories/GHSA-78f9-r8mh-4xm2"},{"kind":"similar","provenance":"machine","score":0.52,"basis":"same product + CWE + description similarity"}]}],"packageHistory":[{"cve":"CVE-2026-35043","published":"2026-04-06","fixed":"1.4.38","kev":false,"link":{"from":"CVE-2026-35043","to":"CVE-2026-44346","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:bentoml","fromFixed":"1.4.38","toFixed":"1.4.39","daysApart":51}]}},{"cve":"CVE-2026-35044","published":"2026-04-06","fixed":"1.4.38","kev":false},{"cve":"CVE-2026-40610","published":"2026-05-22","fixed":"1.4.39","kev":false},{"cve":"CVE-2026-44345","published":"2026-05-27","fixed":"1.4.39","kev":false},{"cve":"CVE-2026-44346","published":"2026-05-27","fixed":"1.4.39","kev":false}],"package":"PyPI:bentoml"}}