# CVE-2026-35043: BentoML: command injection in cloud deployment setup script (deployment.py)

- Severity: High 7.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.33%, higher than 27% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-04-03T22:03:22.000Z
- Modified: 2026-10-23T23:10:00.157Z
- Also known as: GHSA-fgv4-6jr3-jgfw, PYSEC-2026-158
- Weaknesses: CWE-78
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- bentoml BentoML: < 1.4.38; before 1.4.38
- bentoml (PyPI): before 1.4.38

## Every score

- GitHub_M: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`

## References

- <https://github.com/bentoml/BentoML/security/advisories/GHSA-fgv4-6jr3-jgfw> (exploit, evidence, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-33744> (advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-35043> (advisory)
- <https://github.com/bentoml/BentoML> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/bentoml/PYSEC-2026-158.yaml> (web)

## Sources

- CVE List: [CVE-2026-35043](https://www.cve.org/CVERecord?id=CVE-2026-35043), CVE Terms of Use, modified 2026-04-07
- GitHub Advisory Database: [GHSA-fgv4-6jr3-jgfw](https://github.com/advisories/GHSA-fgv4-6jr3-jgfw), CC-BY-4.0, modified 2026-06-08
- NVD: [CVE-2026-35043](https://nvd.nist.gov/vuln/detail/CVE-2026-35043), Public domain, modified 2026-10-23
- PyPA Advisory Database: [PYSEC-2026-158](https://osv.dev/vulnerability/PYSEC-2026-158), CC-BY-4.0, modified 2026-05-20

---

Page: https://cve.day/CVE-2026-35043 · Whole record: https://cve.day/CVE-2026-35043.json · Rebuilt by cve.day 2026-11-25T22:59:18.044Z
