CVE-2026-112264
BentoML through 1.4.39 Dockerfile Instruction Injection via docker.env Keys
- State
- Published
- Severity
- 8.5 High
- Published
- Oct 19, 2026
- Updated
- Oct 19, 2026
- Reserved
- Oct 19, 2026
Description
BentoML through 1.4.39 contains a Dockerfile instruction injection vulnerability that allows attackers to add arbitrary build instructions by embedding newlines in docker.env mapping keys rendered by the legacy base.j2 template. Attackers can supply a crafted bentofile.yaml or imported bento archive so that bentoml containerize executes injected RUN instructions during docker build, accessing build secrets and poisoning images.
Scores
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 4.0 | 8.5 High | CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N | VulnCheck |
| 3.1 | 7.8 High | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H | VulnCheck |
Weaknesses
- CWE-78 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
Affected Products
| Product | Versions |
|---|---|
BentoMLbentoml |
|
References
- https://github.com/geo-chen/oss/blob/main/BentoML.mdthird-party-advisory
- https://github.com/bentoml/BentoML/blob/v1.4.39/src/bentoml/_internal/container/frontend/dockerfile/templates/base.j2technical-description
- https://github.com/bentoml/BentoML/blob/v1.4.39/src/bentoml/_internal/bento/build_config.pytechnical-description
- https://github.com/bentoml/BentoML/blob/v1.4.39/src/bentoml/_internal/container/generate.pytechnical-description
- https://github.com/bentoml/BentoML/blob/v1.4.39/src/bentoml/_internal/container/__init__.pytechnical-description
- VulnCheck Advisory: BentoML through 1.4.39 Dockerfile Instruction Injection via docker.env Keysthird-party-advisory
Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.