BentoML Vulnerable to Arbitrary File Write via Symlink Path Traversal in Tar Extraction
CVE-2026-27905 · GHSA-m6w7-qv66-g3mf · published 2026-03-03 · updated 2026-03-04
- Severity
- High
- CVSS score
- 8.6
- Chance of exploitation (EPSS)
- 0.29%
- Fixed in
- 1.4.36
- Exploitation Public proof of concept
- Automatable No
- Technical impact Total
- CISA SSVC
The safeextracttarfile() 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.
Upgrade bentoml to 1.4.36 or later.
Validate symlink targets: Or use Python 3.12+ tar.extractall(filter='data').
| Package | Registry | Affected | Fixed in |
|---|---|---|---|
| bentoml | PyPI | < 1.4.36 | 1.4.36 |
- CriticalMCP Path Traversal Allows Full-Filesystem Read and JWT Secret Exfiltration Leading to Account Takeoverlangflow, langflow-base
- Critical@zereight/mcp-gitlab: Unauthenticated arbitrary file read via `upload_markdown` enables PAT exfiltration and full account takeover@zereight/mcp-gitlab
- CriticalFlowise RCE via SQL Database Chain Nodeflowise, flowise-components
- CriticalLangroid: SQLChatAgent dangerous-function blocklist can be bypassed with quoted or schema-qualified pg_read_file callslangroid
- Criticalfast-mcp-telegram: Bearer token path traversal bypasses reserved Telegram session protectionfast-mcp-telegram
- CriticalMCP Toolbox HTTP tool path parameters allow traversal to unintended endpointsgithub.com/googleapis/mcp-toolbox
- CriticalBentoML SSRF Vulnerability in File Upload Processingbentoml
- CriticalBentoML's runner server Vulnerable to Remote Code Execution (RCE) via Insecure Deserializationbentoml
- CriticalBentoML Allows Remote Code Execution (RCE) via Insecure Deserializationbentoml
- CriticalBentoML deserialization vulnerabilitybentoml
- CriticalInsecure deserialization in BentoMLbentoml
- HighBentoML Dockerfile command injection via docker.base_image (sister of pending GHSA-w2pm-x38x-jp44 / CVE-2026-33744 / CVE-2026-35043)bentoml
The impact, patch and workaround text comes from the advisory, shortened (GitHub Advisory Database, CC BY 4.0). Proof-of-concept and reproduction sections and code are left out; the original advisory has them.