---
id: CVE-2026-112264
title: BentoML through 1.4.39 Dockerfile Instruction Injection via docker.env Keys
summary: >-
  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. Attacker…
severity: high
cvss: 7.8
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H'
cvssSource: cna
cwe:
  - CWE-78
vendor: bentoml
product: BentoML
affected:
  - BentoML <= 1.4.39
published: '2026-10-19'
updated: '2026-10-19'
sourceUpdated: '2026-10-19T13:55:14.430Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-112264'
references:
  - url: 'https://github.com/geo-chen/oss/blob/main/BentoML.md'
  - url: >-
      https://github.com/bentoml/BentoML/blob/v1.4.39/src/bentoml/_internal/container/frontend/dockerfile/templates/base.j2
  - url: >-
      https://github.com/bentoml/BentoML/blob/v1.4.39/src/bentoml/_internal/bento/build_config.py
  - url: >-
      https://github.com/bentoml/BentoML/blob/v1.4.39/src/bentoml/_internal/container/generate.py
  - url: >-
      https://github.com/bentoml/BentoML/blob/v1.4.39/src/bentoml/_internal/container/__init__.py
  - url: >-
      https://www.vulncheck.com/advisories/bentoml-through-1.4.39-dockerfile-instruction-injection-via-docker-env-keys
    label: >-
      VulnCheck Advisory: BentoML through 1.4.39 Dockerfile Instruction
      Injection via docker.env Keys
tags:
  - cve.org
ingestedAt: '2026-10-19T14:30:01.075Z'
---

## Overview

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.

## Affected

- `BentoML <= 1.4.39`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
