Improper Neutralization of Special Elements Used in a Template Engine Affecting bentoml package, versions [,1.4.38)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.39% (31st percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PYTHON-BENTOML-15909744
  • published5 Apr 2026
  • disclosed3 Apr 2026
  • creditoffset

Introduced: 3 Apr 2026

CVE-2026-35044  (opens in a new tab)
CWE-1336  (opens in a new tab)

How to fix?

Upgrade bentoml to version 1.4.38 or higher.

Overview

bentoml is a BentoML: Build Production-Grade AI Applications

Affected versions of this package are vulnerable to Improper Neutralization of Special Elements Used in a Template Engine via the generate_containerfile function when rendering user-supplied Jinja2 templates in an unsandboxed environment. An attacker can execute arbitrary code on the host machine by crafting a malicious template and distributing it within a bento archive, which is then imported and containerized by the victim.

CVSS Base Scores

version 4.0
version 3.1