CVE-2026-40610
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.
Weakness
- CWE-59: Improper Link Resolution Before File Access
CISA SSVC decision points
| Exploitation | poc |
|---|---|
| Automatable | no |
| Technical impact | partial |
| Scored | 2026-05-26 |
Timeline
- 2026-05-07GitHub advisory published (GHSA-mcfx-4vc6-qgxv)15 days before publication
- 2026-05-22Published by the CNA19:47 UTC
- 2026-05-26CISA SSVC decision recorded4 days after publication
Exploit and advisory records
GitHub advisory GHSA-mcfx-4vc6-qgxv, affected packages:
| Package | Vulnerable versions | Fixed in |
|---|---|---|
| PyPI bentoml | before 1.4.39 | 1.4.39 |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| bentoml bentoml | before 1.4.39fixed in 1.4.39 | 1.4.39 |
References
- https://github.com/bentoml/BentoML/commit/5fb7cd41f92e2a56b45391284cf15b9ac9963a1f
- https://github.com/bentoml/BentoML/security/advisories/GHSA-mcfx-4vc6-qgxv
- https://github.com/bentoml/BentoML/releases/tag/v1.4.39
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2026-40610'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2026-40610'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2026-40610'curl 'https://api.contrastcyber.com/cve_products/CVE-2026-40610'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).