{
  "id": "CVE-2026-35044",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-35044",
  "published_at": "2026-04-06T17:13:43.133Z",
  "title": "BentoML has a Server-Side Template Injection via unsandboxed Jinja2 Environment in Dockerfile generation",
  "vendor": "bentoml",
  "product": "BentoML",
  "cvss": {
    "score": 9.6,
    "source": "nvd",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Prior to 1.4.38, the Dockerfile generation function generate_containerfile() in src/bentoml/_internal/container/generate.py uses an unsandboxed jinja2.Environment with the jinja2.ext.do extension to render user-provided dockerfile_template files. When a victim imports a malicious bento archive and runs bentoml containerize, attacker-controlled Jinja2 template code executes arbitrary Python directly on the host machine, bypassing all container isolation. This vulnerability is fixed in 1.4.38.",
  "cwe": "CWE-1336",
  "cpes": [
    "cpe:2.3:a:bentoml:bentoml:*:*:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 8.8,
    "nvd": 9.6
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "bentoml",
        "product": "BentoML",
        "ranges": [
          "\u003c 1.4.38"
        ],
        "fixed_in": [
          "1.4.38"
        ]
      }
    ],
    "upgrade": [
      "Upgrade BentoML to 1.4.38 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/bentoml/BentoML/security/advisories/GHSA-v959-cwq9-7hr6"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
