CVE-2026-35044Bentoml
Critical 9.6 No auth needed
Follow: this CVE · Bentoml · Bentoml We alert you by email or Slack (account required).
- 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.
What to do
- Apply the vendor's security update for Bentoml.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How 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)
| Vendor | Product | Versions |
|---|---|---|
| bentoml | bentoml | < 1.4.38 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Exploit Vendor Advisory