HighVulnerability
GHSA-v959-cwq9-7hr6: BentoML: SSTI via Unsandboxed Jinja2 in Dockerfile Generation
- Identifiers
- CVE-2026-35044GHSA-v959-cwq9-7hr6
- Published
- Record updated
- Affected
- bentoml <= 1.4.37
- Fixed in
- 1.4.38
- released April 2, 2026, 1 day before disclosure
- Known exploitation
- Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
- EPSS
- 0.4%
Summary
BentoML's generate_containerfile() in src/bentoml/_internal/container/generate.py renders user-supplied dockerfile_template files with an unsandboxed jinja2.Environment that loads the jinja2.ext.do and jinja2.ext.debug extensions. A malicious bento archive containing a crafted template runs arbitrary Python on the host when a victim imports it and runs bentoml containerize, before any Docker container is created, bypassing container isolation.
Mitigation
The source does not state a fix yet. Check the original advisory for updates.
Affected packages in the Exposure Registry
Matched by package name and ecosystem. Each entry shows whether the package delegates to a language model and how many tracked packages depend on it.
- bentomlPyPINo LLM dependency detected · 1 tracked dependent
Related items
- MediumCVE-2026-128136: NLTK pickle loading lets crafted models read or truncate local filesSimilar attack · NVD/CVE Database
- HighCVE-2026-76818: Axon rtkx bootstrap runs unverified downloaded binarySimilar attack · NVD/CVE Database
- MediumMicrosoft’s Agent Framework PyPI package compromised to steal credentialsSimilar attack · BleepingComputer
- InfoOX Security Launches OX Radar and Response Center to Show Companies Which Cyber Threats Actually Affect ThemSimilar attack · CSO Online
- MediumCVE-2026-132122: agentic-radar untrusted .env loading leaks OpenAI API key via scan commandSimilar attack · NVD/CVE Database