BentoML has an Arbitrary File Write via Symlink Path Traversal in Tar Extraction
Key facts
- Attack vector
- Local
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- —
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub.
Summary
BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Prior to 1.4.36, the safe_extract_tarfile() function validates that each tar member's path is within the destination directory, but for symlink members it only validates the symlink's own path, not the symlink's target. An attacker can create a malicious bento/model tar file containing a symlink pointing outside the extraction directory, followed by a regular file that writes through the symlink, achieving arbitrary file write on the host filesystem. This vulnerability is fixed in 1.4.36.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| bentoml | BentoML | before 1.4.36 | 1.4.36 | Patch available | CNA |
| — | bentoml (PyPI) | before 1.4.36 | 1.4.36 | Patch available | GHSA-m6w7-qv66-g3mf |
- BentoML Vendorbentoml Affected before 1.4.36 Fixed in 1.4.36 Patch available CNA
- bentoml (PyPI) Vendor— Affected before 1.4.36 Fixed in 1.4.36 Patch available GHSA-m6w7-qv66-g3mf
Remediation
- Fix · CNA BentoML (bentoml) Fixed in 1.4.36
- Fix · GHSA-m6w7-qv66-g3mf bentoml (PyPI) Fixed in 1.4.36 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2026-27905
- 2026-10-03 Alias added: GHSA-m6w7-qv66-g3mf
References
More Bentoml vulnerabilities
- TI-2025-34190 BentoML is Vulnerable to an SSRF Attack Through File Upload Processing CVSS 3.1CRITICAL 9.9
- TI-2025-23454 Insecure Deserialization leads to RCE in BentoML's runner server CVSS 3.1CRITICAL 9.8
- TI-2025-20352 BentoML Allows Remote Code Execution (RCE) via Insecure Deserialization CVSS 3.1CRITICAL 9.8
- TI-2026-27247 BentoML has a Server-Side Template Injection via unsandboxed Jinja2 Environment in Dockerfile generation CVSS 3.1CRITICAL 9.6
- TI-2026-32312 BentoML: Dockerfile command injection via envs[*].name in bentofile.yaml CVSS 3.1HIGH 8.8
- TI-2026-32311 BentoML: Dockerfile command injection via docker.base_image CVSS 3.1HIGH 8.8
Sources
- CVE-2026-27905 · CVE Program
- CVE-2026-27905 · NVD
- FIRST EPSS
- GHSA-m6w7-qv66-g3mf · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences