CVE-2026-35044 json
BentoML has a Server-Side Template Injection via unsandboxed Jinja2 Environment in Dockerfile generation
published 2026-04-03 7 mo ago modified 2026-10-23 16 d ago also EUVD-2026-19386 , GHSA-v959-cwq9-7hr6 , PYSEC-2026-159
- cvss
- 8.8
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.4%
- EPSS 0.4% chance of exploitation in 30 days, percentile 34%
- public exploits
- 0
- none known
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.
Patch / fix
- pypi bentoml 1.4.38
- bentoml bentoml 1.4.38
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- total
- Assessed
- 7 mo ago
Exploit prediction
0.40% chance of exploitation in the next 30 days, higher than 34% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/bentoml/BentoML/security/advisories/GHSA-v959-cwq9-7hr6 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 8.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| GitHub | 3.1 | 8.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVD | 3.1 | 9.6 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H |
| OSV | 3.1 | 9.6 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | bentoml | <1.4.38 |
1.4.38 |
Affected products
- bentoml BentoML
Classification
- Weakness
-
- CWE-1336 Improper Neutralization of Special Elements Used in a Template Engine
References
-
github.com
/bentoml/BentoML/security/advisories/GHSA-v959-cwq9-7hr6
web, exploit, vendor-advisory, evidence
-
nvd.nist.gov
/vuln/detail/CVE-2026-35044
advisory
-
github.com
/bentoml/BentoML
package
-
github.com
/pypa/advisory-database/tree/main/vulns/bentoml/PYSEC-2026-159.yaml
web
Sources
- CVE List CVE-2026-35044
- GitHub Advisory GHSA-v959-cwq9-7hr6
- NVD CVE-2026-35044
- OSV PYSEC-2026-159
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.