Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-35044— BentoML has a Server-Side Template Injection via unsandboxed Jinja2 Environment in Dockerfile generation

Quick assessment

Affected
bentoml BentoML
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

BentoML是BentoML开源的一个开源模型服务库。用于使用 Python 构建高性能和可扩展的人工智能应用程序。 BentoML 1.4.38之前版本存在安全漏洞,该漏洞源于Dockerfile生成函数使用未沙箱化的Jinja2环境渲染用户提供的模板,可能导致执行任意Python代码。

CVSS 8.8 · High EPSS 0.48% · P39
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-35044

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
BentoML has a Server-Side Template Injection via unsandboxed Jinja2 Environment in Dockerfile generation
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Source: CVE Program / CVE List V5
Vulnerability Type
CWE-1336
Source: CVE Program / CVE List V5
Vulnerability Title
BentoML 安全漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
BentoML是BentoML开源的一个开源模型服务库。用于使用 Python 构建高性能和可扩展的人工智能应用程序。 BentoML 1.4.38之前版本存在安全漏洞,该漏洞源于Dockerfile生成函数使用未沙箱化的Jinja2环境渲染用户提供的模板,可能导致执行任意Python代码。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
bentoml BentoML < 1.4.38 -

II. Public POCs for CVE-2026-35044

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-35044

请登录查看更多情报信息。

Vendor Advisories for CVE-2026-35044 (1)

IV. Related Vulnerabilities

V. Comments for CVE-2026-35044

No comments yet


Leave a comment