{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "0"
                  },
                  {
                    "last_affected": "1.4.39"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "last_affected": "e570eb2b1dd5ea49c09c261232a6b131a023d1b2"
            }
          ],
          "repo": "https://github.com/bentoml/bentoml",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
      "CWE-78"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/112xxx/CVE-2026-112264.json"
  },
  "details": "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.",
  "id": "CVE-2026-112264",
  "modified": "2026-10-21T02:30:59.709909556Z",
  "published": "2026-10-19T13:55:14.430Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/112xxx/CVE-2026-112264.json"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/bentoml/BentoML"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/bentoml/BentoML/blob/v1.4.39/src/bentoml/_internal/bento/build_config.py"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/bentoml/BentoML/blob/v1.4.39/src/bentoml/_internal/container/__init__.py"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/bentoml/BentoML/blob/v1.4.39/src/bentoml/_internal/container/frontend/dockerfile/templates/base.j2"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/bentoml/BentoML/blob/v1.4.39/src/bentoml/_internal/container/generate.py"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/geo-chen/oss/blob/main/BentoML.md"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-112264"
    },
    {
      "type": "WEB",
      "url": "https://pypi.org"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.vulncheck.com/advisories/bentoml-through-1.4.39-dockerfile-instruction-injection-via-docker-env-keys"
    }
  ],
  "schema_version": "1.9.0",
  "severity": [
    {
      "score": "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",
      "type": "CVSS_V4"
    }
  ],
  "summary": "BentoML through 1.4.39 Dockerfile Instruction Injection via docker.env Keys"
}