Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. bentoml
  4. ›
  5. CVE-2026-27905

CVE-2026-27905: BentoML Vulnerable to Arbitrary File Write via Symlink Path Traversal in Tar Extraction

March 3, 2026 (updated March 4, 2026)

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.

References

  • github.com/advisories/GHSA-m6w7-qv66-g3mf
  • github.com/bentoml/BentoML
  • github.com/bentoml/BentoML/commit/4e0eb007765ac04c7924220d643f264715cc9670
  • github.com/bentoml/BentoML/security/advisories/GHSA-m6w7-qv66-g3mf
  • nvd.nist.gov/vuln/detail/CVE-2026-27905

Code Behaviors & Features

Detect and mitigate CVE-2026-27905 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.4.36

Fixed versions

  • 1.4.36

Solution

Upgrade to version 1.4.36 or above.

Impact 8.4 HIGH

CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
  • CWE-59: Improper Link Resolution Before File Access ('Link Following')

Source file

pypi/bentoml/CVE-2026-27905.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 24 Mar 2026 12:17:10 +0000.