CVE-2026-40610
BentoML has Information Disclosure in `bentoml build` via symlink traversal in the build context
Description
BentoML is a Python library for building online serving systems optimized for AI apps and model inference. In versions 1.4.38 and prior, the build packaging workflow follows attacker-controlled symlinks inside the build context and copies the referenced file contents into the generated Bento artifact. If a victim builds an untrusted repository or other attacker-supplied build context, the attacker can place a symlink such as loot.txt -> /tmp/outside-marker.txt or a link to a more sensitive local file. When bentoml build runs, BentoML dereferences the symlink and packages the target file contents into the Bento. The leaked file can then propagate further through export, push, or containerization workflows. An attacker can exfiltrate local files from the build host into the Bento artifact, exposing secrets such as cloud credentials, SSH keys, API tokens, environment files, or other sensitive local configurations. Because Bento artifacts are commonly exported, uploaded, stored, or containerized after build, the leaked file contents can spread beyond the original build machine. This issue has been fixed in version 1.4.39.
INFO
Published Date :
May 22, 2026, 8:16 p.m.
Last Modified :
July 23, 2026, 11:10 a.m.
Remotely Exploit :
No
Source :
[email protected]
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| CVSS | 134c704f-9b21-4f2e-91b3-4a467353bcc0 | |||||
| CVSS 3.1 | MEDIUM | MITRE-CVE | ||||
| CVSS 3.1 | MEDIUM | [email protected] |
Solution
- Update BentoML to version 1.4.39 or later.
- Avoid building untrusted repositories.
- Review build context for suspicious symlinks.
- Scan artifacts for sensitive information.
Public PoC/Exploit Available at Github
CVE-2026-40610 has a 2 public
PoC/Exploit available at Github.
Go to the Public Exploits tab to see the list.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2026-40610.
| URL | Resource |
|---|---|
| https://github.com/bentoml/BentoML/commit/5fb7cd41f92e2a56b45391284cf15b9ac9963a1f | Patch |
| https://github.com/bentoml/BentoML/releases/tag/v1.4.39 | Product Release Notes |
| https://github.com/bentoml/BentoML/security/advisories/GHSA-mcfx-4vc6-qgxv | Exploit Vendor Advisory |
| https://github.com/bentoml/BentoML/security/advisories/GHSA-mcfx-4vc6-qgxv | Exploit Vendor Advisory |
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2026-40610 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2026-40610
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Agent-driven automated CVE discovery platform for source code auditing, vulnerability verification, and report generation.
agent ai-security code-audit cve fastapi llm-agent multi-agent penetration-testing react security-audit security-tools source-code-analysis vulnerability-detection vulnerability-research
Python HTML Dockerfile Mako Shell JavaScript TypeScript CSS Batchfile PowerShell
None
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2026-40610 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2026-40610 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Translated by [email protected]
Jul. 23, 2026
Action Type Old Value New Value Added Translation Title: BentoML de bentoml, Description: BentoML es una biblioteca de Python para construir sistemas de servicio en línea optimizados para aplicaciones de IA e inferencia de modelos. En las versiones 1.4.38 y anteriores, el flujo de trabajo de empaquetado de compilación sigue enlaces simbólicos controlados por el atacante dentro del contexto de compilación y copia el contenido del archivo referenciado en el artefacto Bento generado. Si una víctima compila un repositorio no confiable o cualquier otro contexto de compilación suministrado por el atacante, el atacante puede colocar un enlace simbólico como loot.txt -> /tmp/outside-marker.txt o un enlace a un archivo local más sensible. Cuando se ejecuta bentoml build, BentoML desreferencia el enlace simbólico y empaqueta el contenido del archivo de destino en el Bento. El archivo filtrado puede propagarse aún más a través de flujos de trabajo de exportación, envío (push) o contenerización. Un atacante puede exfiltrar archivos locales del host de compilación al artefacto Bento, exponiendo secretos como credenciales de la nube, claves SSH, tokens de API, archivos de entorno u otras configuraciones locales sensibles. Debido a que los artefactos Bento se exportan, cargan, almacenan o contenerizan comúnmente después de la compilación, el contenido del archivo filtrado puede propagarse más allá de la máquina de compilación original. Este problema ha sido solucionado en la versión 1.4.39. -
CVE Modified by [email protected]
Jun. 17, 2026
Action Type Old Value New Value Added Affected [{'vendor': 'bentoml', 'product': 'BentoML', 'versions': [{'status': 'affected', 'version': '< 1.4.39'}]}] -
CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0
Jun. 17, 2026
Action Type Old Value New Value Added SSVC {'id': 'CVE-2026-40610', 'role': 'CISA Coordinator', 'options': [{'exploitation': 'poc'}, {'automatable': 'no'}, {'technicalImpact': 'partial'}], 'version': '2.0.3', 'timestamp': '2026-05-26T15:32:48.902811Z'} -
Initial Analysis by [email protected]
May. 29, 2026
Action Type Old Value New Value Added CPE Configuration OR *cpe:2.3:a:bentoml:bentoml:*:*:*:*:*:*:*:* versions up to (excluding) 1.4.39 Added Reference Type GitHub, Inc.: https://github.com/bentoml/BentoML/commit/5fb7cd41f92e2a56b45391284cf15b9ac9963a1f Types: Patch Added Reference Type GitHub, Inc.: https://github.com/bentoml/BentoML/releases/tag/v1.4.39 Types: Product, Release Notes Added Reference Type CISA-ADP: https://github.com/bentoml/BentoML/security/advisories/GHSA-mcfx-4vc6-qgxv Types: Exploit, Vendor Advisory Added Reference Type GitHub, Inc.: https://github.com/bentoml/BentoML/security/advisories/GHSA-mcfx-4vc6-qgxv Types: Exploit, Vendor Advisory -
CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0
May. 26, 2026
Action Type Old Value New Value Added Reference https://github.com/bentoml/BentoML/security/advisories/GHSA-mcfx-4vc6-qgxv -
New CVE Received by [email protected]
May. 22, 2026
Action Type Old Value New Value Added Description BentoML is a Python library for building online serving systems optimized for AI apps and model inference. In versions 1.4.38 and prior, the build packaging workflow follows attacker-controlled symlinks inside the build context and copies the referenced file contents into the generated Bento artifact. If a victim builds an untrusted repository or other attacker-supplied build context, the attacker can place a symlink such as loot.txt -> /tmp/outside-marker.txt or a link to a more sensitive local file. When bentoml build runs, BentoML dereferences the symlink and packages the target file contents into the Bento. The leaked file can then propagate further through export, push, or containerization workflows. An attacker can exfiltrate local files from the build host into the Bento artifact, exposing secrets such as cloud credentials, SSH keys, API tokens, environment files, or other sensitive local configurations. Because Bento artifacts are commonly exported, uploaded, stored, or containerized after build, the leaked file contents can spread beyond the original build machine. This issue has been fixed in version 1.4.39. Added CVSS V3.1 AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N Added CWE CWE-59 Added Reference https://github.com/bentoml/BentoML/commit/5fb7cd41f92e2a56b45391284cf15b9ac9963a1f Added Reference https://github.com/bentoml/BentoML/releases/tag/v1.4.39 Added Reference https://github.com/bentoml/BentoML/security/advisories/GHSA-mcfx-4vc6-qgxv