PatchSiren

bentoml CVE debriefs

These pages are published after PatchSiren validates generated defensive summaries against stored public CVE and source evidence.

MEDIUM bentoml CVE published 2026-08-24

CVE-2026-78205

CVE-2026-78205 is a Server-Side Request Forgery (SSRF) vulnerability in BentoML, a framework for building and deploying machine learning models. The vulnerability arises from the framework's incomplete safeguard against outbound connections to private IP addresses, specifically allowing requests to the RFC 6598 shared address space (100.64.0.0/10). This oversight enables unauthenticated attackers to make the server perform requests to internal hosts within CGNAT networks. The issue affects BentoML versions 1.4.19 through 1.4.39.

LOW bentoml CVE published 2026-07-08

CVE-2026-15035

CVE-2026-15035 is a low-severity vulnerability in Bentoml OpenLLM 0.6.30, affecting the async_run_command function in src/openllm/common.py, which is part of the Model Repository Directory Name Handler component. An attacker must have local access to exploit this vulnerability. The exploit has been made public, and the project has been informed but has not yet responded. The vulnerability allows for command injection due to improper handling of the cmd argument.

HIGH bentoml CVE published 2026-05-27

CVE-2026-44345

BentoML versions prior to 1.4.39 contain a template injection vulnerability in the container build pipeline. The Jinja2 template at `src/bentoml/_internal/container/frontend/dockerfile/templates/base_v2.j2` interpolates the `docker.base_image` configuration value without escaping, newline filtering, or validation. A maliciously crafted `bento.yaml` file with a multi-line `docker.base_image` value can inject arbitrary Dockerfile directives. When `bentoml containerize` is executed, the generated Dockerfile containing injected `RUN` directives is passed to `docker build`, resulting in arbitrary command execution on the victim host during the build process. This vulnerability requires user interaction to trigger (loading a malicious bento configuration), but the attack vector is network-accessible and the impact is high (confidentiality, integrity, and availability compromise). The CVSS 3.1 score of 8.8 reflects high severity with network attack vector, low attack complexity, no privileges required, user interaction required, and high impact across all three security dimensions.

MEDIUM bentoml CVE published 2026-05-22

CVE-2026-40610

A symlink-following vulnerability in BentoML's build packaging workflow allows attackers to exfiltrate local files from build hosts into Bento artifacts. When building untrusted repositories, attacker-controlled symlinks are dereferenced and their target file contents are copied into the generated artifact. This exposes sensitive files including cloud credentials, SSH keys, API tokens, and environment configurations. The leaked contents can propagate further through export, push, or containerization workflows. The vulnerability affects versions 1.4.38 and prior; version 1.4.39 contains the fix.

HIGH bentoml CVE published 2026-04-06

CVE-2026-35044

CVE-2026-35044 is a high-severity vulnerability in the BentoML library, which is used for building online serving systems optimized for AI apps and model inference. The vulnerability exists in the Dockerfile generation function generate_containerfile() in src/bentoml/_internal/container/generate.py, which uses an unsandboxed jinja2.Environment with the jinja2.ext.do extension to render user-provided dockerfile_template files. This allows attacker-controlled Jinja2 template code to execute arbitrary Python directly on the host machine, bypassing all container isolation, when a victim imports a malicious bento archive and runs bentoml containerize. The vulnerability is fixed in version 1.4.38.

HIGH bentoml CVE published 2026-04-06

CVE-2026-35043

CVE-2026-35043 is a high-severity vulnerability in the BentoML library, a Python package for building online serving systems optimized for AI apps and model inference. The vulnerability is caused by a remote code execution (RCE) issue in the cloud deployment path, specifically in the `src/bentoml/_internal/cloud/deployment.py` file. The issue arises from the interpolation of `system_packages` directly into a shell command using an f-string without any quoting, allowing for RCE on the CI/CD tier. This vulnerability is fixed in version 1.4.38.