Live threats

All CVEs / Bentoml

CVE-2026-35044Bentoml

Critical 9.6 No auth needed

Priority
73
CVSS 3.1
9.6
EPSS
—
Auth required
No
Published
Apr 6, 2026
Updated
Oct 23, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-1336
SSVC (CISA)
Exploitation: proof of concept · Automatable: no · Technical impact: total
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H

What happens

BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Prior to 1.4.38, the Dockerfile generation function generate_containerfile() in src/bentoml/_internal/container/generate.py uses an unsandboxed jinja2.Environment with the jinja2.ext.do extension to render user-provided dockerfile_template files. When a victim imports a malicious bento archive and runs bentoml containerize, attacker-controlled Jinja2 template code executes arbitrary Python directly on the host machine, bypassing all container isolation. This vulnerability is fixed in 1.4.38.

Original NVD text.

What to do

  1. Apply the vendor's security update for Bentoml.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI bentoml < 1.4.38 1.4.38 pip install "bentoml>=1.4.38"
PyPI bentoml < 1.4.38 1.4.38 pip install "bentoml>=1.4.38"

Per OSV / GitHub Advisories (GHSA-v959-cwq9-7hr6, PYSEC-2026-159). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
bentomlbentoml< 1.4.38

Official sources

References

Links published by the sources. Open them with care.