Skip to content
HighVulnerability

GHSA-m6w7-qv66-g3mf: BentoML Vulnerable to Arbitrary File Write via Symlink Path Traversal in Tar Extraction

Published
Record updated
View JSON
Affected
  • bentoml < 1.4.36
Fixed in
1.4.36
  • released March 6, 2026, 3 days after disclosure
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.3%

Summary

BentoML's `safe_extract_tarfile()` in `src/bentoml/_internal/utils/filesystem.py` checks only a tar member's own path, not the target of a symlink member. A crafted bento or model tar can therefore place a symlink pointing outside the extraction directory and then write a regular file through it, giving arbitrary file write on the host. The source rates it CVSS 3.1 8.1 (High) and says all versions containing `safe_extract_tarfile()` are affected.

Mitigation

The source does not state a fix yet. Check the original advisory for updates.