# CVE-2026-40610: BentoML has Information Disclosure in `bentoml build` via symlink traversal in the build context

- Severity: Medium 5.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.28%, higher than 22% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-05-07T16:39:47.000Z
- Modified: 2026-10-06T22:10:00.247Z
- Also known as: GHSA-mcfx-4vc6-qgxv, PYSEC-2026-2399
- Weaknesses: CWE-59
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- bentoml BentoML: < 1.4.39; before 1.4.39
- bentoml (PyPI): before 1.4.39

## Every score

- GitHub_M: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N`
- GitHub: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N`
- PyPA Advisory Database: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N`

## References

- <https://github.com/bentoml/BentoML/security/advisories/GHSA-mcfx-4vc6-qgxv> (exploit, vendor-advisory, web)
- <https://github.com/bentoml/BentoML/commit/5fb7cd41f92e2a56b45391284cf15b9ac9963a1f> (patch, web)
- <https://github.com/bentoml/BentoML/releases/tag/v1.4.39> (product, release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-40610> (advisory)
- <https://github.com/bentoml/BentoML> (package)
- <https://pypi.org/project/bentoml> (package)
- <https://github.com/advisories/GHSA-mcfx-4vc6-qgxv> (advisory)

## Sources

- CVE List: [CVE-2026-40610](https://www.cve.org/CVERecord?id=CVE-2026-40610), CVE Terms of Use, modified 2026-05-26
- GitHub Advisory Database: [GHSA-mcfx-4vc6-qgxv](https://github.com/advisories/GHSA-mcfx-4vc6-qgxv), CC-BY-4.0, modified 2026-07-13
- NVD: [CVE-2026-40610](https://nvd.nist.gov/vuln/detail/CVE-2026-40610), Public domain, modified 2026-10-06
- PyPA Advisory Database: [PYSEC-2026-2399](https://osv.dev/vulnerability/PYSEC-2026-2399), CC-BY-4.0, modified 2026-07-13

---

Page: https://cve.day/CVE-2026-40610 · Whole record: https://cve.day/CVE-2026-40610.json · Rebuilt by cve.day 2026-11-25T22:59:22.207Z
