{"id":"CVE-2026-27905","published":"2026-03-03T22:45:40Z","modified":"2026-03-04T21:23:39Z","title":"BentoML has an Arbitrary File Write via Symlink Path Traversal in Tar Extraction","vendor":"bentoml","product":"BentoML","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.6,"severity":"HIGH","version":"4.0","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00247,"percentile":0.09617,"provenance":"source"},"cwes":[{"id":"CWE-59","name":"Improper Link Resolution Before File Access"}],"references":[{"url":"https://github.com/bentoml/BentoML/security/advisories/GHSA-m6w7-qv66-g3mf","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/bentoml/BentoML/commit/4e0eb007765ac04c7924220d643f264715cc9670","tags":["x_refsource_MISC"]}],"priority":{"score":7.9,"factors":[{"name":"EPSS percentile","points":1.92},{"name":"CVSS severity","points":6.02}]},"vendorSlug":"bentoml","affectedVersions":[{"vendor":"bentoml","product":"BentoML","versions":["< 1.4.36"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2026-03-04T21:23:29.847681Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"bentoml","vulnerableRanges":["<1.4.36"],"patched":["1.4.36"],"from":["GHSA-m6w7-qv66-g3mf","PYSEC-2026-2398"],"provenance":"source"}],"summary":{"text":"A path-validation flaw in BentoML's safe_extract_tarfile() function checks only the location of symlink entries and not their targets when extracting tar archives, letting a crafted tar file write files outside the extraction directory. Exploitation requires a local attacker to supply a malicious bento or model tar file that the victim extracts, with no authentication or additional user interaction needed beyond that extraction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:01:01Z"},"euvd":{"id":"EUVD-2026-9343","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-bentoml-cve-2026-24123","parents":[{"from":"CVE-2026-24123","to":"CVE-2026-27905","relation":"successor","confidence":"high","kind":"lineage","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:bentoml","fromFixed":"1.4.34","toFixed":"1.4.36","daysApart":36},{"kind":"same-code","provenance":"machine","files":["src/bentoml/_internal/utils/filesystem.py"],"commits":["https://github.com/bentoml/BentoML/commit/84d08cfeb40c5f2ce71b3d3444bbaa0fb16b5ca4","https://github.com/bentoml/BentoML/commit/4e0eb007765ac04c7924220d643f264715cc9670"],"basis":"rarely changed file"}]}],"packageHistory":[{"cve":"CVE-2025-32375","published":"2025-04-09","fixed":"1.4.8","kev":false},{"cve":"CVE-2025-54381","published":"2025-07-29","fixed":"1.4.19","kev":false},{"cve":"CVE-2026-24123","published":"2026-01-26","fixed":"1.4.34","kev":false},{"cve":"CVE-2026-27905","published":"2026-03-03","fixed":"1.4.36","kev":false},{"cve":"CVE-2026-33744","published":"2026-03-27","fixed":"1.4.37","kev":false,"link":{"from":"CVE-2026-27905","to":"CVE-2026-33744","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:bentoml","fromFixed":"1.4.36","toFixed":"1.4.37","daysApart":24}]}},{"cve":"CVE-2026-35043","published":"2026-04-06","fixed":"1.4.38","kev":false},{"cve":"CVE-2026-35044","published":"2026-04-06","fixed":"1.4.38","kev":false}],"package":"PyPI:bentoml"}}