# CVE-2026-27905: BentoML has an Arbitrary File Write via Symlink Path Traversal in Tar Extraction

- Severity: High 8.6 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.29%, higher than 23% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-03-03T17:46:47.000Z
- Modified: 2026-10-07T08:10:00.200Z
- Also known as: GHSA-m6w7-qv66-g3mf, PYSEC-2026-2398
- Weaknesses: CWE-22, CWE-59
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- bentoml BentoML: < 1.4.36; before 1.4.36
- bentoml (PyPI): before 1.4.36

## Every score

- GitHub_M: CVSS:4.0 8.6 High `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`
- GitHub: CVSS:4.0 High `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: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- PyPA Advisory Database: 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`

## References

- <https://github.com/bentoml/BentoML/security/advisories/GHSA-m6w7-qv66-g3mf> (exploit, mitigation, vendor-advisory, web)
- <https://github.com/bentoml/BentoML/commit/4e0eb007765ac04c7924220d643f264715cc9670> (patch, 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)

## Sources

- CVE List: [CVE-2026-27905](https://www.cve.org/CVERecord?id=CVE-2026-27905), CVE Terms of Use, modified 2026-03-04
- GitHub Advisory Database: [GHSA-m6w7-qv66-g3mf](https://github.com/advisories/GHSA-m6w7-qv66-g3mf), CC-BY-4.0, modified 2026-07-13
- NVD: [CVE-2026-27905](https://nvd.nist.gov/vuln/detail/CVE-2026-27905), Public domain, modified 2026-10-07
- PyPA Advisory Database: [PYSEC-2026-2398](https://osv.dev/vulnerability/PYSEC-2026-2398), CC-BY-4.0, modified 2026-07-13

---

Page: https://cve.day/CVE-2026-27905 · Whole record: https://cve.day/CVE-2026-27905.json · Rebuilt by cve.day 2026-11-25T22:59:15.147Z
