{"answers":{"affected":"3 open source packages ship an affected version, including bentoml. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-40610 exists.","fix":"Upgrade bentoml to 1.4.39 or later.","what":"CVE-2026-40610 is a medium-severity path traversal vulnerability in BentoML, published on 22 May 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2026-40610 and fix it if it is affected.\n\nWhat it is: CVE-2026-40610 is a medium-severity path traversal vulnerability in BentoML, published on 22 May 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-40610 exists.\n\nAffected packages and fixed versions:\n- bentoml (PyPI): affected all versions; fixed in 1.4.39\n- bentoml (PyPI): affected all versions; fixed in 1.4.39\n- bentoml (PyPI): affected all versions; fixed in 1.4.39\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-40610/ (Markdown: https://insights.sbomify.com/CVE-2026-40610/index.md)","id":"CVE-2026-40610","markdown":"https://insights.sbomify.com/CVE-2026-40610/index.md","name":"CVE-2026-40610","record":{"aliases":["GHSA-mcfx-4vc6-qgxv","PYSEC-2026-2399"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Python AI serving library","requires_auth":"none","summary":"Attackers can exfiltrate sensitive local files from the build host into Bento artifacts via symlink traversal during the build process.","user_interaction":"required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"bentoml","vendor":"bentoml"}],"cvss":{"score":5.5,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-59","name":"Improper Link Resolution Before File Access"}],"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 -\u003e /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.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"BentoML has Information Disclosure in `bentoml build` via symlink traversal in the build context","id":"CVE-2026-40610","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"path_traversal","year":"2026"},"n_packages":3,"n_references":3,"next":{"headline":"Lego: Arbitrary File Write via Path Traversal in Webroot HTTP-01 Provider","id":"CVE-2026-40611"},"packages":[{"ecosystem":"PyPI","fixed":["1.4.39"],"introduced":["0"],"last_affected":[],"package":"bentoml","purl":null,"source":"GHSA-mcfx-4vc6-qgxv"},{"ecosystem":"PyPI","fixed":["1.4.39"],"introduced":["0"],"last_affected":[],"package":"bentoml","purl":"pkg:pypi/bentoml","source":"GHSA-mcfx-4vc6-qgxv"},{"ecosystem":"PyPI","fixed":["1.4.39"],"introduced":["0"],"last_affected":[],"package":"bentoml","purl":"pkg:pypi/bentoml","source":"PYSEC-2026-2399"}],"prev":{"headline":"This CVE is a duplicate of another CVE.","id":"CVE-2026-40609"},"products":["BentoML"],"published":"2026-05-22","related":[{"cvss_score":9.9,"headline":"BentoML is Vulnerable to an SSRF Attack Through File Upload Processing","id":"CVE-2025-54381","kev_date_added":null,"published":"2025-07-29"},{"cvss_score":9.8,"headline":"Insecure Deserialization leads to RCE in BentoML's runner server","id":"CVE-2025-32375","kev_date_added":null,"published":"2025-04-09"},{"cvss_score":9.8,"headline":"BentoML Allows Remote Code Execution (RCE) via Insecure Deserialization","id":"CVE-2025-27520","kev_date_added":null,"published":"2025-04-04"},{"cvss_score":8.8,"headline":"BentoML: Dockerfile command injection via docker.base_image","id":"CVE-2026-44345","kev_date_added":null,"published":"2026-05-27"},{"cvss_score":8.8,"headline":"BentoML: Dockerfile command injection via envs[*].name in bentofile.yaml","id":"CVE-2026-44346","kev_date_added":null,"published":"2026-05-27"},{"cvss_score":8.8,"headline":"BentoML has a Server-Side Template Injection via unsandboxed Jinja2 Environment in Dockerfile generation","id":"CVE-2026-35044","kev_date_added":null,"published":"2026-04-06"},{"cvss_score":8.6,"headline":"BentoML has an Arbitrary File Write via Symlink Path Traversal in Tar Extraction","id":"CVE-2026-27905","kev_date_added":null,"published":"2026-03-03"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-05-26","vendors":["bentoml"]},"summary":"Attackers can exfiltrate sensitive local files from the build host into Bento artifacts via symlink traversal during the build process.","url":"https://insights.sbomify.com/CVE-2026-40610/"}