Horizon Alert
Summary of the vulnerability and why it matters
This advisory concerns a critical vulnerability in the BentoML library, a tool used for serving AI applications. The issue allows for arbitrary code execution on the host machine if a user imports a specially crafted archive and runs a specific command, bypassing container isolation. The main concern is to confirm if BentoML is in use and if the affected versions are deployed within the organization.
- Malicious code can run directly on your machine.
- Confirms if BentoML is used and vulnerable.
- Assess use and impact to ensure relevance.
Attack Path
How an attacker could exploit the issue
An attacker could trick a user into importing a malicious BentoML archive and then running the `bentoml containerize` command. This would cause the system to execute attacker-controlled code within a Jinja2 template, leading to arbitrary Python execution on the host machine and bypassing container isolation.
- Requires user to import malicious archive.
- Triggered by running `bentoml containerize`.
- Allows arbitrary code execution on host.
Live Threat
Current exploitation, exposure, and threat context
When a user imports a malicious Bento archive and runs the `bentoml containerize` command, attacker-controlled Jinja2 template code could execute arbitrary Python directly on the host machine, bypassing container isolation, when the affected function is used with user-provided templates.
- Arbitrary Python code execution on host.
- Malicious Bento archive import and containerize.
- Complete system compromise or data exfiltration.
Operational Fix
Recommended remediation, mitigation, and detection steps
Real-world remediation of this vulnerability likely involves collaboration between the application owners responsible for AI model deployment pipelines and the platform or infrastructure teams managing the BentoML environment. The first practical step is to inventory all instances where BentoML is used for containerizing AI models, determine which of these are actively processing user-supplied archives or templates, and confirm if they are exposed to untrusted input. Once identified, the accountable owner should be engaged to plan remediation, prioritizing critical or exposed systems.
- Application owners and platform teams.
- Verify all BentoML containerize uses.
- Plan and coordinate remediation based on risk.