Staging Environment: Content and features may be unstable or change without notice.
Search for packages
Package details: pkg:pypi/bentoml@1.2.7
purl pkg:pypi/bentoml@1.2.7
Next non-vulnerable version 1.4.39
Latest non-vulnerable version 1.4.39
Risk 10.0
Vulnerabilities affecting this package (12)
Vulnerability Summary Fixed by
VCID-4bcc-ergh-83e6
Aliases:
CVE-2025-32375
GHSA-7v4r-c989-xh26
PYSEC-2025-32
BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Prior to 1.4.8, there was an insecure deserialization in BentoML's runner server. By setting specific headers and parameters in the POST request, it is possible to execute any unauthorized arbitrary code on the server, which will grant the attackers to have the initial access and information disclosure on the server. This vulnerability is fixed in 1.4.8.
1.4.8
Affected by 8 other vulnerabilities.
VCID-4wp2-p85j-s7dr
Aliases:
CVE-2026-24123
GHSA-6r62-w2q3-48hf
BentoML has a Path Traversal via Bentofile Configuration BentoML's `bentofile.yaml` configuration allows path traversal attacks through multiple file path fields (`description`, `docker.setup_script`, `docker.dockerfile_template`, `conda.environment_yml`). An attacker can craft a malicious bentofile that, when built by a victim, exfiltrates arbitrary files from the filesystem into the bento archive. This enables supply chain attacks where sensitive files (SSH keys, credentials, environment variables) are silently embedded in bentos and exposed when pushed to registries or deployed.
1.4.34
Affected by 6 other vulnerabilities.
VCID-5mjt-8ze7-h7d9
Aliases:
CVE-2026-44346
GHSA-w2pm-x38x-jp44
PYSEC-2026-190
BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Prior to 1.4.39, a malicious bentofile.yaml containing a newline-injected value in envs[*].name produces unquoted RUN directives in the BentoML-generated Dockerfile. When the victim runs bentoml containerize on the imported bento, those RUN directives execute on the host during docker build. This vulnerability is fixed in 1.4.39.
1.4.39
Affected by 0 other vulnerabilities.
VCID-bv3z-1yux-kka6
Aliases:
CVE-2026-35044
GHSA-v959-cwq9-7hr6
PYSEC-2026-159
BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Prior to 1.4.38, the Dockerfile generation function generate_containerfile() in src/bentoml/_internal/container/generate.py uses an unsandboxed jinja2.Environment with the jinja2.ext.do extension to render user-provided dockerfile_template files. When a victim imports a malicious bento archive and runs bentoml containerize, attacker-controlled Jinja2 template code executes arbitrary Python directly on the host machine, bypassing all container isolation. This vulnerability is fixed in 1.4.38.
1.4.38
Affected by 2 other vulnerabilities.
VCID-ek5w-sqgd-xkbg
Aliases:
CVE-2024-12760
GHSA-564p-rx2q-4c8v
BentoML Open Redirect vulnerability An open redirect vulnerability in bentoml/bentoml v1.3.9 allows a remote unauthenticated attacker to redirect users to arbitrary websites via a specially crafted URL. This can be exploited for phishing attacks, malware distribution, and credential theft.
1.3.10
Affected by 11 other vulnerabilities.
VCID-h88c-7wrv-fyg2
Aliases:
CVE-2024-12759
GHSA-hh3j-9m59-p8vc
BentoML vulnerable to Uncontrolled Resource Consumption In bentoml/bentoml version 1.3.9, the `/login` endpoint of the newly integrated Gradio app is vulnerable to a Denial of Service (DoS) attack. This vulnerability can be exploited by appending characters, such as dashes (-), to the end of a multipart boundary in an HTTP request. The server continuously processes each character, leading to excessive resource consumption and rendering the service unavailable. The issue is unauthenticated and does not require any user interaction.
1.3.10
Affected by 11 other vulnerabilities.
VCID-nqwe-qcu8-jkan
Aliases:
CVE-2024-9070
GHSA-9g44-gwvm-hc44
BentoML deserialization vulnerability A deserialization vulnerability exists in BentoML's runner server in bentoml/bentoml versions <=1.3.4.post1. By setting specific parameters, an attacker can execute unauthorized arbitrary code on the server, causing severe harm. The vulnerability is triggered when the args-number parameter is greater than 1, leading to automatic deserialization and arbitrary code execution. There are no reported fixed by versions.
VCID-twd8-ejvs-6ffv
Aliases:
CVE-2026-33744
GHSA-jfjg-vc52-wqvf
PYSEC-2026-157
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.
1.4.37
Affected by 4 other vulnerabilities.
VCID-ujzb-bk9k-7yf2
Aliases:
CVE-2026-44345
GHSA-78f9-r8mh-4xm2
PYSEC-2026-189
BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Prior to 1.4.39, src/bentoml/_internal/container/frontend/dockerfile/templates/base_v2.j2 interpolates docker.base_image raw with no escaping, newline filtering, or validation. A malicious bento.yaml with a multi-line docker.base_image value smuggles arbitrary Dockerfile directives into the generated Dockerfile, and bentoml containerize then runs docker build which executes the injected RUN directives on the victim host. This vulnerability is fixed in 1.4.39.
1.4.39
Affected by 0 other vulnerabilities.
VCID-wzre-vn34-qqak
Aliases:
CVE-2024-9056
GHSA-hw8j-hw49-752c
BentoML Denial of Service (DoS) via Multipart Boundary BentoML version v1.3.4post1 is vulnerable to a Denial of Service (DoS) attack. The vulnerability can be exploited by appending characters, such as dashes (-), to the end of a multipart boundary in an HTTP request. This causes the server to continuously process each character, leading to excessive resource consumption and rendering the service unavailable. The issue is unauthenticated and does not require any user interaction, impacting all users of the service. There are no reported fixed by versions.
VCID-z6sb-5n7n-1qgz
Aliases:
CVE-2026-27905
GHSA-m6w7-qv66-g3mf
BentoML Vulnerable to Arbitrary File Write via Symlink Path Traversal in Tar Extraction The `safe_extract_tarfile()` function validates that each tar member's path is within the destination directory, but for symlink members it only validates the symlink's own path, **not the symlink's target**. An attacker can create a malicious bento/model tar file containing a symlink pointing outside the extraction directory, followed by a regular file that writes through the symlink, achieving arbitrary file write on the host filesystem.
1.4.36
Affected by 5 other vulnerabilities.
VCID-zxca-jerw-6ycm
Aliases:
CVE-2026-35043
GHSA-fgv4-6jr3-jgfw
PYSEC-2026-158
BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Prior to 1.4.38, the cloud deployment path in src/bentoml/_internal/cloud/deployment.py was not included in the fix for CVE-2026-33744. Line 1648 interpolates system_packages directly into a shell command using an f-string without any quoting. The generated script is uploaded to BentoCloud as setup.sh and executed on the cloud build infrastructure during deployment, making this a remote code execution on the CI/CD tier. This vulnerability is fixed in 1.4.38.
1.4.38
Affected by 2 other vulnerabilities.
Vulnerabilities fixed by this package (0)
Vulnerability Summary Aliases
This package is not known to fix vulnerabilities.

Date Actor Action Vulnerability Source VulnerableCode Version
2026-06-06T07:46:01.452555+00:00 GitLab Importer Affected by VCID-bv3z-1yux-kka6 https://gitlab.com/gitlab-org/advisories-community/-/blob/main/pypi/bentoml/CVE-2026-35044.yml 38.6.0
2026-06-06T07:43:53.732620+00:00 GitLab Importer Affected by VCID-zxca-jerw-6ycm https://gitlab.com/gitlab-org/advisories-community/-/blob/main/pypi/bentoml/CVE-2026-35043.yml 38.6.0
2026-06-06T07:35:34.399698+00:00 GitLab Importer Affected by VCID-twd8-ejvs-6ffv https://gitlab.com/gitlab-org/advisories-community/-/blob/main/pypi/bentoml/CVE-2026-33744.yml 38.6.0
2026-06-06T07:11:24.621064+00:00 GitLab Importer Affected by VCID-z6sb-5n7n-1qgz https://gitlab.com/gitlab-org/advisories-community/-/blob/main/pypi/bentoml/CVE-2026-27905.yml 38.6.0
2026-06-06T06:44:53.026925+00:00 GitLab Importer Affected by VCID-4wp2-p85j-s7dr https://gitlab.com/gitlab-org/advisories-community/-/blob/main/pypi/bentoml/CVE-2026-24123.yml 38.6.0
2026-06-06T05:46:36.865998+00:00 GitLab Importer Affected by VCID-4bcc-ergh-83e6 https://gitlab.com/gitlab-org/advisories-community/-/blob/main/pypi/bentoml/CVE-2025-32375.yml 38.6.0
2026-06-06T05:43:48.972461+00:00 GitLab Importer Affected by VCID-nqwe-qcu8-jkan https://gitlab.com/gitlab-org/advisories-community/-/blob/main/pypi/bentoml/CVE-2024-9070.yml 38.6.0
2026-06-06T05:43:47.904380+00:00 GitLab Importer Affected by VCID-wzre-vn34-qqak https://gitlab.com/gitlab-org/advisories-community/-/blob/main/pypi/bentoml/CVE-2024-9056.yml 38.6.0
2026-06-06T05:42:49.115150+00:00 GitLab Importer Affected by VCID-h88c-7wrv-fyg2 https://gitlab.com/gitlab-org/advisories-community/-/blob/main/pypi/bentoml/CVE-2024-12759.yml 38.6.0
2026-06-06T05:42:40.112750+00:00 GitLab Importer Affected by VCID-ek5w-sqgd-xkbg https://gitlab.com/gitlab-org/advisories-community/-/blob/main/pypi/bentoml/CVE-2024-12760.yml 38.6.0
2026-06-05T17:05:35.384976+00:00 PyPI Importer Affected by VCID-5mjt-8ze7-h7d9 https://osv-vulnerabilities.storage.googleapis.com/PyPI/all.zip 38.6.0
2026-06-05T17:05:34.955333+00:00 PyPI Importer Affected by VCID-ujzb-bk9k-7yf2 https://osv-vulnerabilities.storage.googleapis.com/PyPI/all.zip 38.6.0
2026-06-05T17:05:11.038150+00:00 PyPI Importer Affected by VCID-bv3z-1yux-kka6 https://osv-vulnerabilities.storage.googleapis.com/PyPI/all.zip 38.6.0
2026-06-05T17:05:10.642228+00:00 PyPI Importer Affected by VCID-zxca-jerw-6ycm https://osv-vulnerabilities.storage.googleapis.com/PyPI/all.zip 38.6.0
2026-06-05T17:05:09.237569+00:00 PyPI Importer Affected by VCID-twd8-ejvs-6ffv https://osv-vulnerabilities.storage.googleapis.com/PyPI/all.zip 38.6.0
2026-06-05T17:04:31.111036+00:00 PyPI Importer Affected by VCID-4bcc-ergh-83e6 https://osv-vulnerabilities.storage.googleapis.com/PyPI/all.zip 38.6.0
2026-06-04T16:14:39.614721+00:00 Pypa Importer Affected by VCID-5mjt-8ze7-h7d9 https://github.com/pypa/advisory-database/blob/main/vulns/bentoml/PYSEC-2026-190.yaml 38.6.0
2026-06-04T16:14:39.234385+00:00 Pypa Importer Affected by VCID-ujzb-bk9k-7yf2 https://github.com/pypa/advisory-database/blob/main/vulns/bentoml/PYSEC-2026-189.yaml 38.6.0
2026-06-02T04:24:29.513397+00:00 Pypa Importer Affected by VCID-bv3z-1yux-kka6 https://github.com/pypa/advisory-database/blob/main/vulns/bentoml/PYSEC-2026-159.yaml 38.6.0
2026-06-02T04:24:28.611618+00:00 Pypa Importer Affected by VCID-zxca-jerw-6ycm https://github.com/pypa/advisory-database/blob/main/vulns/bentoml/PYSEC-2026-158.yaml 38.6.0
2026-06-02T04:24:25.406034+00:00 Pypa Importer Affected by VCID-twd8-ejvs-6ffv https://github.com/pypa/advisory-database/blob/main/vulns/bentoml/PYSEC-2026-157.yaml 38.6.0
2026-06-02T04:22:57.905506+00:00 Pypa Importer Affected by VCID-4bcc-ergh-83e6 https://github.com/pypa/advisory-database/blob/main/vulns/bentoml/PYSEC-2025-32.yaml 38.6.0