Skip to content
MediumVulnerability

GHSA-mcfx-4vc6-qgxv: BentoML has Information Disclosure in `bentoml build` via symlink traversal in the build context

Published
Record updated
View JSON
Affected
  • bentoml <= 1.4.38
Fixed in
1.4.39
  • released May 7, 2026, on the day of disclosure
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.3%

Summary

BentoML's `bentoml build` packaging workflow follows symlinks inside the build context and copies the referenced file contents into the generated Bento artifact. The `os.walk` loop in the packaging code calls `shutil.copy` without checking that the resolved path stays inside `ctx_path`. An attacker who gets a developer or CI system to build an attacker-controlled repository can exfiltrate local files such as cloud credentials or SSH keys, and the leak can spread through export, push, or containerization. The issue was verified against BentoML 1.4.38.

Mitigation

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