CVE-2026-27905: BentoML Vulnerable to Arbitrary File Write via Symlink Path Traversal in Tar Extraction
(updated )
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
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 →