CVE Explorer
CVE-2026-35044
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
Known exploited
Not asserted
Disputed
No
Stale source
No
Conflicts
0
Affected products and versions
1 source assertion{"product":"BentoML","vendor":"bentoml","versions":[{"status":"affected","version":"< 1.4.38"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:f0f9c5e718ff076162802aa964cd4460d0213552e031f2df27cc6e17223c62f6 · sha256:349ecdeb2edd1d5d… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":8.8,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","version":"3.1"},"metric_type":"cvssV3_1"}
- cve_program_cvelist_v5cvssurn:baitaphish:normalized-source-record:v2:f0f9c5e718ff076162802aa964cd4460d0213552e031f2df27cc6e17223c62f6 · sha256:349ecdeb2edd1d5d… · /containers/cna/metrics/0/cvssV3_1
CWE assertions
1 source assertion{"cweId":"CWE-1336","description":"CWE-1336: Improper Neutralization of Special Elements Used in a Template Engine","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:f0f9c5e718ff076162802aa964cd4460d0213552e031f2df27cc6e17223c62f6 · sha256:349ecdeb2edd1d5d… · /containers/cna/problemTypes/0/descriptions/0
Source references
1 source assertion{"name":"https://github.com/bentoml/BentoML/security/advisories/GHSA-v959-cwq9-7hr6","tags":["x_refsource_CONFIRM"],"url":"https://github.com/bentoml/BentoML/security/advisories/GHSA-v959-cwq9-7hr6"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:f0f9c5e718ff076162802aa964cd4460d0213552e031f2df27cc6e17223c62f6 · sha256:349ecdeb2edd1d5d… · /containers/cna/references/0
Attribution and limitations
- CVE Program CVEList V5: Reproduce the MITRE copyright designation and CVE license in copies. Source →
Provider severity values are preserved separately. Baitaphish does not convert them into a risk rating, infer affected products, or treat EPSS as observed exploitation.