{"id":"CVE-2026-112264","published":"2026-10-19T14:17:03.003","lastModified":"2026-10-19T21:13:39.973","description":"BentoML through 1.4.39 contains a Dockerfile instruction injection vulnerability that allows attackers to add arbitrary build instructions by embedding newlines in docker.env mapping keys rendered by the legacy base.j2 template. Attackers can supply a crafted bentofile.yaml or imported bento archive so that bentoml containerize executes injected RUN instructions during docker build, accessing build secrets and poisoning images.","cvssScore":7.8,"cvssSeverity":"HIGH","cvssVector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","cwes":["CWE-78"],"vendors":[],"products":[],"references":[{"url":"https://github.com/bentoml/BentoML/blob/v1.4.39/src/bentoml/_internal/bento/build_config.py","tags":[]},{"url":"https://github.com/bentoml/BentoML/blob/v1.4.39/src/bentoml/_internal/container/__init__.py","tags":[]},{"url":"https://github.com/bentoml/BentoML/blob/v1.4.39/src/bentoml/_internal/container/frontend/dockerfile/templates/base.j2","tags":[]},{"url":"https://github.com/bentoml/BentoML/blob/v1.4.39/src/bentoml/_internal/container/generate.py","tags":[]},{"url":"https://github.com/geo-chen/oss/blob/main/BentoML.md","tags":[]},{"url":"https://www.vulncheck.com/advisories/bentoml-through-1.4.39-dockerfile-instruction-injection-via-docker-env-keys","tags":[]},{"url":"https://github.com/geo-chen/oss/blob/main/BentoML.md","tags":[]}],"exploitRefs":[{"url":"https://github.com/bentoml/BentoML/blob/v1.4.39/src/bentoml/_internal/bento/build_config.py","tags":[]},{"url":"https://github.com/bentoml/BentoML/blob/v1.4.39/src/bentoml/_internal/container/__init__.py","tags":[]},{"url":"https://github.com/bentoml/BentoML/blob/v1.4.39/src/bentoml/_internal/container/frontend/dockerfile/templates/base.j2","tags":[]},{"url":"https://github.com/bentoml/BentoML/blob/v1.4.39/src/bentoml/_internal/container/generate.py","tags":[]},{"url":"https://github.com/geo-chen/oss/blob/main/BentoML.md","tags":[]},{"url":"https://github.com/geo-chen/oss/blob/main/BentoML.md","tags":[]}],"hasPoc":true,"ai":null}