Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. bentoml
  4. ›
  5. CVE-2026-35043

CVE-2026-35043: BentoML: Command Injection in cloud deployment setup script

April 3, 2026 (updated June 8, 2026)

Commit ce53491 (March 24) fixed command injection via system_packages in Dockerfile templates and images.py by adding shlex.quote. However, the cloud deployment path in src/bentoml/_internal/cloud/deployment.py was not included in the fix. 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.

References

  • github.com/advisories/GHSA-fgv4-6jr3-jgfw
  • github.com/bentoml/BentoML/security/advisories/GHSA-fgv4-6jr3-jgfw
  • github.com/pypa/advisory-database/tree/main/vulns/bentoml/PYSEC-2026-158.yaml
  • nvd.nist.gov/vuln/detail/CVE-2026-33744
  • nvd.nist.gov/vuln/detail/CVE-2026-35043

Code Behaviors & Features

Detect and mitigate CVE-2026-35043 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 1.4.38

Fixed versions

  • 1.4.38

Solution

Upgrade to version 1.4.38 or above.

Impact 7.8 HIGH

CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Source file

pypi/bentoml/CVE-2026-35043.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:26 +0000.