1. Home
  2. Vulnerabilities
  3. CVE-2026-35044

CVE-2026-35044

BentoML is a Python library for building online serving systems optimized for AI apps and model inference…

Published 6 Apr 2026 · modified 23 Oct 2026 · Sources: NVD, CNA (vendor or assigner), EPSS (FIRST)

Medium 56/100

Summary

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.

Affected products and versions

Bentoml (1 line(s))
Bentoml
ProductVersionsFixed inSource
Bentoml before 1.4.38 (excluded) — NVD

Fix

Not provided by the vendor.

Workaround

No workaround provided.

Check whether you are affected

Exploit reported by sources

These links are tagged “exploit” by the NVD or CVE.org. We have neither verified nor copied them; open with care.

Timeline

  1. — CVE published (cve)

References

Data provenance

Status
NVD
Publication date
NVD
Description
NVD
CVSS score
NVD
Weakness (CWE)
CNA (vendor or assigner)
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H (CVSS 3.1, NVD)
Weakness
CWE-1336 · Autre (CWE-1336)

How this data is obtained and calculated