{"id":"CVE-2026-44345","published":"2026-05-27T17:24:18Z","modified":"2026-05-27T18:00:32Z","title":"BentoML: Dockerfile command injection via docker.base_image","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, src/bentoml/_internal/container/frontend/dockerfile/templates/base_v2.j2 interpolates docker.base_image raw with no escaping, newline filtering, or validation. A malicious bento.yaml with a multi-line docker.base_image value smuggles arbitrary Dockerfile directives into the generated Dockerfile, and bentoml containerize then runs docker build which executes the injected RUN directives on the victim host. 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"}],"references":[{"url":"https://github.com/bentoml/BentoML/security/advisories/GHSA-78f9-r8mh-4xm2","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-27T18:00:08.389382Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"bentoml","vulnerableRanges":["<1.4.39"],"patched":["1.4.39"],"from":["GHSA-78f9-r8mh-4xm2","PYSEC-2026-189"],"provenance":"source"}],"summary":{"text":"BentoML's Dockerfile generation template (base_v2.j2) inserts the docker.base_image value from bento.yaml without escaping or newline filtering, so a crafted multi-line value can inject arbitrary Dockerfile directives. The flaw affects versions before 1.4.39 of the BentoML Python library's container build frontend. An attacker who supplies a malicious bento.yaml can have injected RUN directives executed on the host when bentoml containerize runs docker build, and this requires the victim to build a bento from that attacker-supplied configuration file.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:53:03Z"},"euvd":{"id":"EUVD-2026-32610","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-bentoml-cve-2026-44345","children":[{"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-44345","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"}}