High, CVSS 8.7PyPIAmendedPublished
Label Studio has a Path Traversal Vulnerability via image Field
CVE-2025-25295 · GHSA-rgv9-w7jp-m23g
- Affected
- PyPI label-studio-sdk < 1.0.10
- Fixed in
- 1.0.10· Vendor fix available
- Issue
- A path traversal vulnerability in Label Studio SDK versions prior to 1.0.10 allows unauthorized file access outside the intended directory structure. Label Studio versions before 1.16.0 specified SDK versions prior to 1.0.10 as dependencies, and the issue was confirmed in Label Studio version 1.13.2.dev0; therefore, Label Studio users should upgrade to 1.16.0 or newer to mitigate it. The flaw exists in the VOC, COCO and YOLO export functionalites. These functions invoke a download function on the label-studio-sdk python package, which fails to validate file paths when processing image references during task exports: By creating tasks with path traversal sequences in the image field, an attacker can force the application to read files from arbitrary server filesystem locations when exporting projects in any of the mentioned formats. Note that there are two different possible code paths leading to this result, one for the isuploadedfile and another one for the islocalfile.…
Recommended action: Upgrade to 1.0.10 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.