RCE in Bentoml
CVE-2026-35043
- CVSS v3
- 7.8 High
- Public exploits
- None known
- EPSS
- 0.003 · 25.7th percentile
- Published
- 2026-04-06
What to do
- Fixed in
1.4.38- Affected
- 1 affected product
BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Prior to 1.4.38, the cloud deployment path in src/bentoml/_internal/cloud/deployment.py was not included in the fix for CVE-2026-33744. Line 1648 interpolates system_packages directly into a shell command using an f-string without any quoting. The generated script is uploaded to BentoCloud as setup.sh and executed on the cloud build infrastructure during deployment, making this a remote code execution on the CI/CD tier. This vulnerability is fixed in 1.4.38.
Vulnerability class: Command Injection (OS Command Injection)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.8 (High). Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H.
- Attack Vector
- Local
AV:L - Attack Complexity
- Low
AC:L - Privileges Required
- None
PR:N - User Interaction
- Required
UI:R - Scope
- Unchanged
S:U - Confidentiality
- High
C:H - Integrity
- High
I:H - Availability
- High
A:H
EPSS exploit prediction
EPSS 0.003, 25.7th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
- Bentoml — versions < 1.4.38
Weakness classification (CWE)
References
- https://github.com/bentoml/BentoML/security/advisories/GHSA-fgv4-6jr3-jgfw (Exploit, Vendor Advisory)