A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-44345

CVE-2026-44345: BentoML Dockerfile Injection RCE Vulnerability

CVE-2026-44345 is a remote code execution flaw in BentoML allowing attackers to inject malicious Dockerfile directives through unsanitized docker.base_image values. This article covers technical details, affected versions, and mitigation.

Published: May 28, 2026

CVE-2026-44345 Overview

CVE-2026-44345 is a command injection vulnerability in BentoML, a Python library for building online serving systems optimized for AI applications and model inference. The flaw exists in the Dockerfile template src/bentoml/_internal/container/frontend/dockerfile/templates/base_v2.j2, which interpolates the docker.base_image value without escaping, newline filtering, or validation. A crafted bento.yaml containing a multi-line docker.base_image value smuggles attacker-controlled Dockerfile directives into the generated Dockerfile. When a victim runs bentoml containerize, the subsequent docker build executes the injected RUN instructions on the host. The issue is fixed in BentoML 1.4.39 and is tracked under [CWE-78].

Critical Impact

Processing an untrusted bento.yaml and invoking bentoml containerize results in arbitrary command execution on the build host with the privileges of the Docker daemon user.

Affected Products

  • BentoML versions prior to 1.4.39
  • Build systems and CI/CD pipelines invoking bentoml containerize on untrusted bento bundles
  • Developer workstations consuming third-party bento.yaml files

Discovery Timeline

  • 2026-05-27 - CVE-2026-44345 published to NVD
  • 2026-05-27 - Last updated in NVD database

Technical Details for CVE-2026-44345

Vulnerability Analysis

BentoML generates a Dockerfile from a Jinja2 template located at src/bentoml/_internal/container/frontend/dockerfile/templates/base_v2.j2. The template substitutes the docker.base_image field from bento.yaml directly into the FROM instruction. The substitution applies no escaping, newline stripping, or value validation. An attacker who controls the bento.yaml can place newline characters and additional Dockerfile directives within the docker.base_image string. These directives become part of the rendered Dockerfile and execute when docker build runs.

The injected directives run during image build, which means commands execute on the host that invokes bentoml containerize. This bridges a configuration file parse into operating system command execution, matching the OS Command Injection pattern in [CWE-78].

Root Cause

The root cause is missing input validation and output encoding on the docker.base_image field. The template treats the value as a trusted single-line identifier. The parser accepts multi-line YAML strings, allowing line breaks and arbitrary RUN, COPY, or ENV directives to pass through unchanged.

Attack Vector

An attacker publishes or supplies a malicious bento bundle whose bento.yaml sets docker.base_image to a value such as a legitimate image name followed by newline-delimited RUN directives. When a developer, build agent, or CI pipeline executes bentoml containerize against the bundle, the generated Dockerfile contains the injected directives. The docker build invocation executes those directives, granting the attacker code execution in the build context. User interaction is required because a victim must initiate containerization. See the GitHub Security Advisory for technical details.

Detection Methods for CVE-2026-44345

Indicators of Compromise

  • bento.yaml files where docker.base_image contains newline characters, whitespace beyond a single image reference, or Dockerfile keywords such as RUN, COPY, or ADD.
  • Generated Dockerfiles in BentoML build directories containing directives the developer did not author.
  • Unexpected outbound network connections, file writes, or shell invocations occurring during docker build execution triggered by bentoml containerize.

Detection Strategies

  • Statically scan bento.yaml files in repositories and registries for multi-line values under the docker.base_image key.
  • Diff the rendered Dockerfile against an expected template to detect injected instructions before invoking docker build.
  • Monitor build hosts for child processes spawned by docker build that deviate from expected base image setup activity.

Monitoring Recommendations

  • Log all bentoml containerize invocations along with the source repository and commit hash of the bento bundle.
  • Forward Docker daemon audit events and build logs to a centralized analytics platform for anomaly review.
  • Alert on installations of BentoML versions below 1.4.39 across developer workstations and build infrastructure.

How to Mitigate CVE-2026-44345

Immediate Actions Required

  • Upgrade BentoML to version 1.4.39 or later on every workstation, build agent, and container image that runs bentoml containerize.
  • Audit all bento.yaml files from external or untrusted sources for malformed docker.base_image values before processing.
  • Restrict bentoml containerize execution to isolated build environments without access to production secrets or networks.

Patch Information

The maintainers fixed the vulnerability in BentoML 1.4.39. Refer to the BentoML GHSA-78f9-r8mh-4xm2 advisory for the patch reference and release notes.

Workarounds

  • Validate docker.base_image against a strict regular expression accepting only canonical image references such as ^[a-zA-Z0-9._/:@-]+$ before invoking containerization.
  • Run bentoml containerize inside an ephemeral, network-restricted sandbox so injected directives cannot reach sensitive systems.
  • Generate the Dockerfile, inspect it manually or with an automated linter, and only then execute docker build against the verified output.
bash
# Configuration example: upgrade BentoML and validate base_image values
pip install --upgrade 'bentoml>=1.4.39'

# Pre-flight check before containerization
python -c "import yaml,re,sys; b=yaml.safe_load(open('bento.yaml')); img=b.get('docker',{}).get('base_image',''); sys.exit(0 if re.fullmatch(r'[A-Za-z0-9._/:@-]+', img) else 1)"

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechBentoml

  • SeverityHIGH

  • CVSS Score8.8

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityHigh
  • AvailabilityHigh
  • CWE References
  • CWE-78
  • Technical References
  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-44346: BentoML RCE Vulnerability

  • CVE-2026-35043: BentoML Cloud Deployment RCE Vulnerability

  • CVE-2026-35044: BentoML Template Injection RCE Vulnerability

  • CVE-2026-33744: BentoML RCE Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English