Description
BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Prior to 1.4.37, the `docker.system_packages` field in `bentofile.yaml` accepts arbitrary strings that are interpolated directly into Dockerfile `RUN` commands without sanitization. Since `system_packages` is semantically a list of OS package names (data), users do not expect values to be interpreted as shell commands. A malicious `bentofile.yaml` achieves arbitrary command execution during `bentoml containerize` / `docker build`. Version 1.4.37 fixes the issue.
Published: 2026-03-27
Score: 7.8 High
EPSS: < 1% Very Low
KEV: No
Impact: Arbitrary Command Execution during container build
Action: Apply Patch
AI Analysis

Impact

BentoML, a Python library for AI model serving, contained a flaw in versions prior to 1.4.37. The field name "docker.system_packages" in a bentofile.yaml file was treated as raw text and inserted directly into Dockerfile RUN commands. This allowed any string supplied in that list to be executed as a shell command, providing attackers with the ability to run arbitrary code while the container image is built.

Affected Systems

Any deployment using BentoML library versions earlier than 1.4.37 that employs the docker.system_packages field to specify operating system packages. Attackers who control the bentofile.yaml or have influence over the build process can exploit the vulnerability.

Risk and Exploitability

The vulnerability has a CVSS score of 7.8, indicating high severity, but an EPSS score of less than 1%, suggesting a low probability of exploitation in the wild. It is not listed in the CISA KEV catalog, and the attack vector is inferred to be local to the build environment, requiring control over the bentofile.yaml used during containerization. Because the flaw allows execution of arbitrary shell commands on the builder host, it can lead to full compromise of the build infrastructure if not mitigated.

Generated by OpenCVE AI on April 2, 2026 at 04:11 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade to BentoML 1.4.37 or later to eliminate the vulnerability.

Generated by OpenCVE AI on April 2, 2026 at 04:11 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-jfjg-vc52-wqvf BentoML has Dockerfile Command Injection via system_packages in bentofile.yaml
History

Wed, 01 Apr 2026 23:45:00 +0000

Type Values Removed Values Added
CPEs cpe:2.3:a:bentoml:bentoml:*:*:*:*:*:*:*:*

Fri, 27 Mar 2026 20:15:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Fri, 27 Mar 2026 08:45:00 +0000

Type Values Removed Values Added
First Time appeared Bentoml
Bentoml bentoml
Vendors & Products Bentoml
Bentoml bentoml

Fri, 27 Mar 2026 04:00:00 +0000

Type Values Removed Values Added
Description BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Prior to 1.4.37, the `docker.system_packages` field in `bentofile.yaml` accepts arbitrary strings that are interpolated directly into Dockerfile `RUN` commands without sanitization. Since `system_packages` is semantically a list of OS package names (data), users do not expect values to be interpreted as shell commands. A malicious `bentofile.yaml` achieves arbitrary command execution during `bentoml containerize` / `docker build`. Version 1.4.37 fixes the issue.
Title BentoML has Dockerfile Command Injection via system_packages in bentofile.yaml
Weaknesses CWE-94
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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-03-27T20:01:40.600Z

Reserved: 2026-03-23T17:34:57.562Z

Link: CVE-2026-33744

cve-icon Vulnrichment

Updated: 2026-03-27T20:01:33.499Z

cve-icon NVD

Status : Analyzed

Published: 2026-03-27T01:16:21.007

Modified: 2026-04-01T15:00:48.743

Link: CVE-2026-33744

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-04-02T07:55:49Z

Weaknesses