{"cve":"CVE-2026-35044","nvd":{"published":"2026-04-06T18:16:41.990","modified":"2026-10-23T23:10:00.157","status":"Analyzed","description":"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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","score":9.6},"cwes":["CWE-1336"],"references":["https://github.com/bentoml/BentoML/security/advisories/GHSA-v959-cwq9-7hr6"],"products":["bentoml:bentoml"],"source":"nvd","synced_at":"2026-10-24T16:53:27.712498749+00:00"},"epss":{"cve":"CVE-2026-35044","score":0.00392,"percentile":0.32998,"date":"2026-10-25"},"kev":null,"osv":[{"id":"GHSA-v959-cwq9-7hr6","url":"https://osv.dev/vulnerability/GHSA-v959-cwq9-7hr6","summary":"BentoML: SSTI via Unsandboxed Jinja2 in Dockerfile Generation","modified":"2026-06-08T20:15:13.378215544Z","packages":[{"ecosystem":"PyPI","name":"bentoml","purl":"pkg:pypi/bentoml","ranges":["<1.4.38"],"fixed":["1.4.38"]}]},{"id":"PYSEC-2026-159","url":"https://osv.dev/vulnerability/PYSEC-2026-159","summary":"","modified":"2026-05-20T12:35:10.976510Z","packages":[{"ecosystem":"PyPI","name":"bentoml","purl":"pkg:pypi/bentoml","ranges":["<1.4.38"],"fixed":["1.4.38"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}