CVE-2025-25295 Label Studio has a Path Traversal Vulnerability via image Field

High 8.7 Published Updated

Authenticated attackers can read arbitrary server files via path traversal in image fields during project exports, exposing sensitive data.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2025-25295?

CVE-2025-25295 is a high-severity path traversal vulnerability in HumanSignal label-studio, published on 14 Feb 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Label Studio is an open source data labeling tool. A path traversal vulnerability in Label Studio SDK versions prior to 1.0.10 allows unauthorized file access outside the intended directory structure. The flaw exists in the VOC, COCO and YOLO export functionalities. 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. This is authentication-required vulnerability allowing arbitrary file reads from the server filesystem. It may lead to potential exposure of sensitive information like configuration files, credentials, and confidential data. 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.

Weakness: CWE-26, CWE-22

Which versions are affected by CVE-2025-25295?

3 open source packages ship an affected version, including label-studio-sdk.

PackageAffectedFixed in
label-studio-sdk PyPIAll versions1.0.10
label-studio-sdk PyPIAll versions1.0.10
label-studio-sdk PyPIAll versions1.0.10

How do I fix CVE-2025-25295?

Upgrade label-studio-sdk to 1.0.10 or later.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2025-25295 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-25295 exists.

Sources

Also known as GHSA-rgv9-w7jp-m23g, PYSEC-2026-1506.

Is CVE-2025-25295 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free