CVE-2026-24123: bentoml: Path Traversal enables file access
GHSA-6r62-w2q3-48hf MEDIUM PoC AVAILABLEIf your team builds BentoML packages from external or community-sourced bentofiles, upgrade to 1.4.34 immediately — a malicious bentofile.yaml can silently exfiltrate SSH keys, .env files, and credentials into your bento archive before it reaches a registry. The real risk is supply chain: a compromised open-source model repo can trigger credential theft during a routine CI/CD build. Patch first, then audit any bento archives built from untrusted sources for unexpected file inclusions.
What is the risk?
Rated Medium (CVSS 6.5) but the supply chain angle elevates operational risk for MLOps teams. Confidentiality impact is HIGH — SSH keys and credentials can be silently exfiltrated. EPSS is very low (0.00011), indicating no observed active exploitation. Attack requires user interaction (victim must run bentoml build on a malicious bentofile), limiting blast radius but not eliminating it given the prevalence of community-sourced ML artifacts. Organizations with automated CI/CD pipelines that build third-party BentoML packages face the highest exposure.
What systems are affected?
How severe is it?
What is the attack surface?
What should I do?
6 steps-
Patch: Upgrade BentoML to >= 1.4.34 immediately across all build environments.
-
Audit: Inspect bento archives built on affected versions for unexpected non-model files — scan for .ssh, .env, credentials, and config files outside expected directory structures.
-
Trust controls: Never run bentoml build on untrusted bentofiles without prior code review of all file path fields.
-
Detection: Add pre-build linting rules to validate bentofile.yaml path fields against strict allowlists, failing builds on path traversal patterns (e.g., ../).
-
CI/CD hygiene: Ensure build environments are ephemeral, isolated, and credentials are injected via secrets managers rather than stored as on-disk files accessible during builds.
-
Registry audit: Review push history for model registries that received artifacts built by BentoML < 1.4.34 and rotate any credentials that may have been co-located on build hosts.
What does CISA's SSVC say?
Source: CISA Vulnrichment (SSVC v2.0). Decision based on the CISA Coordinator decision tree.
How is it classified?
Which compliance frameworks are affected?
This CVE is relevant to:
Frequently Asked Questions
What is CVE-2026-24123?
If your team builds BentoML packages from external or community-sourced bentofiles, upgrade to 1.4.34 immediately — a malicious bentofile.yaml can silently exfiltrate SSH keys, .env files, and credentials into your bento archive before it reaches a registry. The real risk is supply chain: a compromised open-source model repo can trigger credential theft during a routine CI/CD build. Patch first, then audit any bento archives built from untrusted sources for unexpected file inclusions.
Is CVE-2026-24123 actively exploited?
Proof-of-concept exploit code is publicly available for CVE-2026-24123, increasing the risk of exploitation.
How to fix CVE-2026-24123?
1. Patch: Upgrade BentoML to >= 1.4.34 immediately across all build environments. 2. Audit: Inspect bento archives built on affected versions for unexpected non-model files — scan for .ssh, .env, credentials, and config files outside expected directory structures. 3. Trust controls: Never run bentoml build on untrusted bentofiles without prior code review of all file path fields. 4. Detection: Add pre-build linting rules to validate bentofile.yaml path fields against strict allowlists, failing builds on path traversal patterns (e.g., ../). 5. CI/CD hygiene: Ensure build environments are ephemeral, isolated, and credentials are injected via secrets managers rather than stored as on-disk files accessible during builds. 6. Registry audit: Review push history for model registries that received artifacts built by BentoML < 1.4.34 and rotate any credentials that may have been co-located on build hosts.
What systems are affected by CVE-2026-24123?
This vulnerability affects the following AI/ML architecture patterns: MLOps pipelines, model serving, model packaging and distribution, CI/CD build pipelines, model registries.
What is the CVSS score for CVE-2026-24123?
CVE-2026-24123 has a CVSS v3.1 base score of 6.5 (MEDIUM). The EPSS exploitation probability is 0.44%.
What is the AI security impact?
Affected AI Architectures
MITRE ATLAS Techniques
AML.T0010 AI Supply Chain Compromise AML.T0010.001 AI Software AML.T0010.004 Container Registry AML.T0011 User Execution AML.T0011.001 Malicious Package AML.T0025 Exfiltration via Cyber Means AML.T0037 Data from Local System AML.T0055 Unsecured Credentials Compliance Controls Affected
What are the technical details?
Original Advisory
BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Prior to version 1.4.34, BentoML's `bentofile.yaml` configuration allows path traversal attacks through multiple file path fields (`description`, `docker.setup_script`, `docker.dockerfile_template`, `conda.environment_yml`). An attacker can craft a malicious bentofile that, when built by a victim, exfiltrates arbitrary files from the filesystem into the bento archive. This enables supply chain attacks where sensitive files (SSH keys, credentials, environment variables) are silently embedded in bentos and exposed when pushed to registries or deployed. Version 1.4.34 contains a patch for the issue.
Exploitation Scenario
An adversary publishes a popular open-source ML project on GitHub with a crafted bentofile.yaml where the docker.setup_script field contains a path traversal payload pointing to ../../../../home/user/.ssh/id_rsa or a cloud credentials file. A developer or CI/CD pipeline clones the repo and runs bentoml build to package the model for deployment — standard MLOps workflow. BentoML follows the traversal path and silently embeds the SSH private key inside the bento archive without any warning. The team pushes the archive to a shared or public model registry. The adversary pulls the archive and extracts the embedded credential, enabling lateral movement into production infrastructure or cloud environments.
Weaknesses (CWE)
CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Primary
CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Primary
CWE-22 — Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal'): The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.
- [Implementation] Assume all input is malicious. Use an "accept known good" input validation strategy, i.e., use a list of acceptable inputs that strictly conform to specifications. Reject any input that does not strictly conform to specifications, or transform it into something that does. When performing input validation, consider all potentially relevant properties, including length, type of input, the full range of acceptable values, missing or extra inputs, syntax, consistency across related fields, and conformance to business rules. As an example of business rule logic, "boat" may be syntactically valid because it only contains alphanumeric characters, but it is not valid if the input is only expected to contain colors such as "red" or "blue." Do not rely exclusively on looking for malicious or malformed inputs. This is likely to miss at least one undesirable input, especially if the code's environment changes. This can give attackers enough room to bypass the intended validation. However, denylis
- [Architecture and Design] For any security checks that are performed on the client side, ensure that these checks are duplicated on the server side, in order to avoid CWE-602. Attackers can bypass the client-side checks by modifying values after the checks have been performed, or by changing the client to remove the client-side checks entirely. Then, these modified values would be submitted to the server.
Source: MITRE CWE corpus.
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N References
- github.com/advisories/GHSA-6r62-w2q3-48hf
- nvd.nist.gov/vuln/detail/CVE-2026-24123
- github.com/bentoml/BentoML/commit/84d08cfeb40c5f2ce71b3d3444bbaa0fb16b5ca4 Patch
- github.com/bentoml/BentoML/releases/tag/v1.4.34 Product Release
- github.com/bentoml/BentoML/security/advisories/GHSA-6r62-w2q3-48hf Vendor
Timeline
Related Vulnerabilities
CVE-2025-54381 9.9 BentoML: unauthenticated SSRF via file upload URLs
Same package: bentoml CVE-2025-27520 9.8 BentoML: unauthenticated RCE via insecure deserialization
Same package: bentoml CVE-2025-32375 9.8 BentoML: RCE via insecure deserialization in runner
Same package: bentoml CVE-2024-9070 9.8 BentoML: unauthenticated RCE via runner deserialization
Same package: bentoml CVE-2026-35044 8.8 BentoML: malicious bento archive RCE via Jinja2 SSTI
Same package: bentoml