CVE-2026-40610 Details
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.
A vulnerability in BentoML's build packaging workflow prior to version 1.4.39 allows for information disclosure through symlink traversal. The issue arises because the workflow follows attacker-controlled symlinks in the build context and copies the linked file contents into the final Bento artifact. This vulnerability can be exploited by building an untrusted repository or using an attacker-supplied build context, where an attacker can place a symlink to a sensitive local file. When the 'bentoml build' command is executed, BentoML dereferences the symlink and includes the contents of the target file in the Bento artifact. The leaked file can then be exported, pushed, or containerized, potentially spreading sensitive information such as cloud credentials, SSH keys, API tokens, or other local configurations beyond the original build machine.
Users can update to BentoML version 1.4.39 or later, where this vulnerability has been fixed.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed May 26, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/bentoml/BentoML/security/advisories/GHSA-mcfx-4vc6-qgxv | CISA-ADP | ExploitVendor Advisory |
| https://github.com/bentoml/BentoML/commit/5fb7cd41f92e2a56b45391284cf15b9ac9963a1f | [email protected] | Patch |
| https://github.com/bentoml/BentoML/releases/tag/v1.4.39 | [email protected] | ProductRelease Notes |
| https://github.com/bentoml/BentoML/security/advisories/GHSA-mcfx-4vc6-qgxv | [email protected] | ExploitVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-59 | Improper Link Resolution Before File Access ('Link Following') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| bentoml bentoml | < 1.4.39 |
CPE
Remediation
| |
Change History
6 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 23, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| May 29, 2026 | Initial Analysis | [email protected] |
| May 26, 2026 | CVE Modified | CISA-ADP |
| May 22, 2026 | New CVE Received | [email protected] |