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.
Published: 2026-10-19
Score: 8.5 High
EPSS: n/a
KEV: No
Impact: Remote Code Execution and Secret Compromise
Action: Immediate Patch
AI Analysis

Impact

The vulnerability is a Dockerfile instruction injection flaw in BentoML prior to version 1.4.39. By embedding newline characters in the keys of the docker.env mapping, an attacker can supply a crafted bentofile.yaml or a malicious bento archive that causes BentoML's containerization process to render additional Dockerfile instructions. These injected RUN commands are executed during the build, allowing the attacker to access build secrets, modify the image contents, and introduce arbitrary code. The weakness corresponds to OS Command Injection (CWE‑78).

Affected Systems

BentoML versions up to and including 1.4.39 are affected. The flaw exists in the legacy base.j2 Dockerfile template used by the containerization tool. The impact is limited to systems that generate Docker images using BentoML's containerize command with potentially untrusted bentofile.yaml or bento archives.

Risk and Exploitability

The CVSS score of 8.5 indicates high severity. The EPSS score is not available, so the likelihood of real-world exploitation cannot be quantified, but the vulnerability is not listed in the CISA KEV catalog. The attack requires the ability to supply a custom bentofile.yaml or bento archive to the containerize process, which may occur if an organization imports untrusted projects or uses unvalidated artifacts. An attacker who succeeds can execute arbitrary RUN instructions during image build, potentially exfiltrating secrets or inserting malicious software into the image. Therefore, the risk is high for environments that build images from untrusted sources.

Generated by OpenCVE AI on October 19, 2026 at 15:49 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade BentoML to a patched release (1.4.40 or later).
  • Validate docker.env keys in bentofile.yaml to ensure they contain no newline characters or other control characters before rendering.
  • Implement pipeline rules that block or flag Dockerfile builds containing unexpected RUN instructions and monitor build logs for anomalous commands.

Generated by OpenCVE AI on October 19, 2026 at 15:49 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 19 Oct 2026 19:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Mon, 19 Oct 2026 14:00:00 +0000

Type Values Removed Values Added
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.
Title BentoML through 1.4.39 Dockerfile Instruction Injection via docker.env Keys
First Time appeared Bentoml
Bentoml bentoml
Weaknesses CWE-78
CPEs cpe:2.3:a:bentoml:bentoml:*:*:*:*:*:*:*:*
Vendors & Products Bentoml
Bentoml bentoml
References
Metrics cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H'}

cvssV4_0

{'score': 8.5, 'vector': 'CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-10-19T18:08:19.307Z

Reserved: 2026-10-19T13:25:23.753Z

Link: CVE-2026-112264

cve-icon Vulnrichment

Updated: 2026-10-19T18:08:14.948Z

cve-icon NVD

Status : Received

Published: 2026-10-19T14:17:03.003

Modified: 2026-10-19T19:17:27.460

Link: CVE-2026-112264

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-19T20:15:03Z

Weaknesses
  • CWE-78

    Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')