CVE-2026-27905
HIGH 8.6CVSS 4.0BentoML Vulnerable to Arbitrary File Write via Symlink Path Traversal in Tar Extraction
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.
- Published
- 3 Mar 2026
- Last modified
- 7 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-22CWE-59
- Also known as
- GHSA-m6w7-qv66-g3mfPYSEC-2026-2398
- Sources
- NVDJSONOSV GHSA-m6w7-qv66-g3mfJSONOSV PYSEC-2026-2398JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 4.0 | HIGH 8.6 | CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N | |
| OSV | PyPA | CVSS 4.0 | CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | bentoml | bentomlcpe:2.3:a:bentoml:bentoml:*:*:*:*:*:*:*:* |
< 1.4.36 | 1.4.36 |
| OSV | PyPI | bentoml | < 1.4.36 | 1.4.36 |
References
- https://github.com/bentoml/BentoML/commit/4e0eb007765ac04c7924220d643f264715cc9670 · Patch, WEB
- https://github.com/bentoml/BentoML/security/advisories/GHSA-m6w7-qv66-g3mf · Exploit, Mitigation, Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-27905 · ADVISORY
- https://github.com/bentoml/BentoML · PACKAGE
- https://pypi.org/project/bentoml · PACKAGE
- https://github.com/advisories/GHSA-m6w7-qv66-g3mf · ADVISORY
History
- 25 Nov 2026 21:01 UTC · NVD: first stored (published 3 Mar 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 13 Jul 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 3 Mar 2026)