# CVE-2026-44345: BentoML: Dockerfile command injection via docker.base_image

- Severity: High 8.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/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.32%, higher than 26% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-05-11T14:27:06.000Z
- Modified: 2026-06-17T10:50:32.127Z
- Also known as: GHSA-78f9-r8mh-4xm2, PYSEC-2026-189
- 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.39, src/bentoml/_internal/container/frontend/dockerfile/templates/base_v2.j2 interpolates docker.base_image raw with no escaping, newline filtering, or validation. A malicious bento.yaml with a multi-line docker.base_image value smuggles arbitrary Dockerfile directives into the generated Dockerfile, and bentoml containerize then runs docker build which executes the injected RUN directives on the victim host. This vulnerability is fixed in 1.4.39.

(As written by CVE List.)

## Affected

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

## Every score

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

## References

- <https://github.com/bentoml/BentoML/security/advisories/GHSA-78f9-r8mh-4xm2> (exploit, evidence, mitigation, vendor-advisory, web)
- <https://github.com/bentoml/BentoML/security/advisories/GHSA-w2pm-x38x-jp44> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-44345> (advisory)
- <https://github.com/bentoml/BentoML> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/bentoml/PYSEC-2026-189.yaml> (web)

## Sources

- CVE List: [CVE-2026-44345](https://www.cve.org/CVERecord?id=CVE-2026-44345), CVE Terms of Use, modified 2026-05-27
- GitHub Advisory Database: [GHSA-78f9-r8mh-4xm2](https://github.com/advisories/GHSA-78f9-r8mh-4xm2), CC-BY-4.0, modified 2026-06-09
- NVD: [CVE-2026-44345](https://nvd.nist.gov/vuln/detail/CVE-2026-44345), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-189](https://osv.dev/vulnerability/PYSEC-2026-189), CC-BY-4.0, modified 2026-06-03

---

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