{"id":"CVE-2026-40610","published":"2026-05-22T19:47:51Z","modified":"2026-05-26T15:33:25Z","title":"BentoML has Information Disclosure in `bentoml build` via symlink traversal in the build context","vendor":"bentoml","product":"BentoML","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.002,"percentile":0.05638,"provenance":"source"},"cwes":[{"id":"CWE-59","name":"Improper Link Resolution Before File Access"}],"references":[{"url":"https://github.com/bentoml/BentoML/security/advisories/GHSA-mcfx-4vc6-qgxv","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/bentoml/BentoML/commit/5fb7cd41f92e2a56b45391284cf15b9ac9963a1f","tags":["x_refsource_MISC"]},{"url":"https://github.com/bentoml/BentoML/releases/tag/v1.4.39","tags":["x_refsource_MISC"]}],"priority":{"score":5.0,"factors":[{"name":"EPSS percentile","points":1.13},{"name":"CVSS severity","points":3.85}]},"vendorSlug":"bentoml","affectedVersions":[{"vendor":"bentoml","product":"BentoML","versions":["< 1.4.39"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-05-26T15:32:48.902811Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"bentoml","vulnerableRanges":["<1.4.39"],"patched":["1.4.39"],"from":["GHSA-mcfx-4vc6-qgxv","PYSEC-2026-2399"],"provenance":"source"}],"summary":{"text":"The flaw is in BentoML's build packaging workflow, a Python library for serving AI and model inference systems, where bentoml build follows symlinks inside the build context and copies their target file contents into the generated Bento artifact. An attacker who can supply a build context, such as by getting a victim to build an untrusted repository, can plant a symlink that points at a sensitive local file on the build host, which is then exposed in the artifact and can propagate further through export, push, or containerization workflows.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:12:52Z"},"euvd":{"id":"EUVD-2026-31497","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-bentoml-cve-2026-24123","parents":[{"from":"CVE-2026-24123","to":"CVE-2026-40610","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/bentoml/_internal/bento/bento.py"],"commits":["https://github.com/bentoml/BentoML/commit/84d08cfeb40c5f2ce71b3d3444bbaa0fb16b5ca4","https://github.com/bentoml/BentoML/commit/5fb7cd41f92e2a56b45391284cf15b9ac9963a1f"],"basis":"shared function","functions":["append_model"]}]}],"packageHistory":[{"cve":"CVE-2026-33744","published":"2026-03-27","fixed":"1.4.37","kev":false},{"cve":"CVE-2026-35043","published":"2026-04-06","fixed":"1.4.38","kev":false,"link":{"from":"CVE-2026-35043","to":"CVE-2026-40610","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:bentoml","fromFixed":"1.4.38","toFixed":"1.4.39","daysApart":46}]}},{"cve":"CVE-2026-35044","published":"2026-04-06","fixed":"1.4.38","kev":false},{"cve":"CVE-2026-40610","published":"2026-05-22","fixed":"1.4.39","kev":false},{"cve":"CVE-2026-44345","published":"2026-05-27","fixed":"1.4.39","kev":false},{"cve":"CVE-2026-44346","published":"2026-05-27","fixed":"1.4.39","kev":false}],"package":"PyPI:bentoml"}}