---
title: "CVE-2026-112264: BentoML - Command Injection"
description: "BentoML <= 1.4.39 contains a command injection caused by newline injection in docker.env mapping keys rendered by legacy base.j2 template, letting attackers inject arbitrary Dockerfile instructions during container build, exploit requires crafted bentofile.yaml or imported bento archive."
url: https://panop.io/threat-heartbeat/CVE-2026-112264/
---

# CVE-2026-112264 BentoML - Command Injection

BentoML <= 1.4.39 contains a command injection caused by newline injection in docker.env mapping keys rendered by legacy base.j2 template, letting attackers inject arbitrary Dockerfile instructions during container build, exploit requires crafted bentofile.yaml or imported bento archive.

CVSS base score 7.8 /10

High

CISA KEV

Not listed

Public exploit

None known

Authentication

Not required

[View the NVD record ↗](https://nvd.nist.gov/vuln/detail/CVE-2026-112264)

## Details

Type

Command Injection

Impact

Remote Code Execution, Information Disclosure, Data Tampering

CVSS vector

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

Published

19 October 2026

Updated

20 October 2026

Weakness

[CWE-78](https://cwe.mitre.org/data/definitions/78.html)

## Vendor fix

Update to a version later than 1.4.39.

Patching closes this CVE. It does not tell you which of your systems run the affected version, or what else is exposed alongside them.

## References

- [https://nvd.nist.gov/vuln/detail/CVE-2026-112264](https://nvd.nist.gov/vuln/detail/CVE-2026-112264)
- [https://github.com/bentoml/BentoML/blob/v1.4.39/src/bentoml/\_internal/bento/build\_config.py](https://github.com/bentoml/BentoML/blob/v1.4.39/src/bentoml/_internal/bento/build_config.py)
- [https://github.com/bentoml/BentoML/blob/v1.4.39/src/bentoml/\_internal/container/\_\_init\_\_.py](https://github.com/bentoml/BentoML/blob/v1.4.39/src/bentoml/_internal/container/__init__.py)
- [https://github.com/bentoml/BentoML/blob/v1.4.39/src/bentoml/\_internal/container/frontend/dockerfile/templates/base.j2](https://github.com/bentoml/BentoML/blob/v1.4.39/src/bentoml/_internal/container/frontend/dockerfile/templates/base.j2)
- [https://github.com/bentoml/BentoML/blob/v1.4.39/src/bentoml/\_internal/container/generate.py](https://github.com/bentoml/BentoML/blob/v1.4.39/src/bentoml/_internal/container/generate.py)
- [https://github.com/geo-chen/oss/blob/main/BentoML.md](https://github.com/geo-chen/oss/blob/main/BentoML.md)
- [https://www.vulncheck.com/advisories/bentoml-through-1.4.39-dockerfile-instruction-injection-via-docker-env-keys](https://www.vulncheck.com/advisories/bentoml-through-1.4.39-dockerfile-instruction-injection-via-docker-env-keys)

[← All CVEs](https://panop.io/threat-heartbeat/)

## What this record can't tell you

- Whether you run the affected software, and where
- Whether an attacker can actually reach and exploit it
- The misconfigurations that never get a CVE number
- What it would cost the business, ranked into what to fix first

Panop answers these inside your environment, for this CVE and every other finding.

[Book a demo](https://panop.io/demo)
