Vulnerabilities in pkg:pypi/clearml

PACKAGE
Advisory Identifier: GHSA-579p-qf78-fqm2
Advisory Summary

CVE-2025-8917 is a MODERATE (CVSS 5.8) path traversal vulnerability (CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')) affecting Clearml libraries in the PyPI ecosystem. The issue involves clearml is vulnerable to path traversal through its `safe_extract` function. Remediation is available by upgrading affected packages to version 2.0.2.

4 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:pypi/clearml

4 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:pypi/clearml. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-579p-qf78-fqm2 CVE-2025-8917 MODERATE clearml is vulnerable to Path Traversal through its `safe_extract` function
GHSA-cpcw-9h9m-wqw9 CVE-2024-24590 HIGH Allegro AI ClearML vulnerable to deserialization of untrusted data
GHSA-m95h-p4gg-wfw3 CVE-2024-24591 HIGH Allegro AI ClearML path traversal vulnerability
GHSA-gvqv-h7hh-6fcc CVE-2024-24595 MODERATE Allegro AI ClearML Stores Credentials in Plaintext in MongoDB Instance

CVE-2025-8917 at a Glance

CVE Identifier CVE-2025-8917
GHSA Identifier GHSA-579p-qf78-fqm2
Severity MODERATE
CVSS v3.1 Base Score 5.8
CWE Classification CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Affected Product Clearml
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 5.8

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:N).

Attack Vector Local (AV:L)
Attack Complexity Low (AC:L)
Privileges Required High (PR:H)
User Interaction Required (UI:R)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability None (A:N)

How to Fix CVE-2025-8917

To remediate this vulnerability, upgrade all affected Clearml dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

clearml fixed: 2.0.2
pip install clearml>=2.0.2
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

pip show clearml

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2025-8917, inspect your installed packages using pip:

pip show clearml

Analyze the terminal output to locate any version of Clearml in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.0.2), your application is affected.

Note: The pip show clearml command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal'), where the product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory. In Clearml, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

A vulnerability in clearml versions before 2.0.2 allows for path traversal due to improper handling of symbolic and hard links in the `safe_extract` function. This flaw can lead to arbitrary file writes outside the intended directory, potentially resulting in remote code execution if critical files are overwritten.

CVE-2025-8917 Affected Clearml Versions

1 component(s)
Fixed Versions:
2.0.2
Product / Package Ecosystem Affected Versions Fixed Version
clearml
PyPI
< 2.0.2
2.0.2

References

Frequently Asked Questions

What is CVE-2025-8917?
CVE-2025-8917 is a security vulnerability in Clearml involving clearml is vulnerable to Path Traversal through its `safe_extract` function under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal').
Which Clearml versions are affected?
Affected versions include releases prior to 2.0.2 across affected packages: clearml.
What version fixes CVE-2025-8917?
Upgrading to 2.0.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is clearml affected?
Yes, clearml is affected in releases prior to 2.0.2. Upgrade your dependency to 2.0.2 or later.
What is the CVSS score of CVE-2025-8917?
CVE-2025-8917 has a CVSS v3.1 base score of 5.8 (MODERATE) with vector string CVSS:3.0/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:N.
What CWE is associated with CVE-2025-8917?
CVE-2025-8917 is classified under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') (The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.).
How can I check PyPI dependencies for CVE-2025-8917?
Run the dependency tree command: 'pip show clearml'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-579p-qf78-fqm2",
  "modified" : "2025-10-07T13:09:42Z",
  "published" : "2025-10-05T12:30:24Z",
  "aliases" : [ "CVE-2025-8917" ],
  "summary" : "clearml is vulnerable to Path Traversal through its `safe_extract` function",
  "details" : "A vulnerability in clearml versions before 2.0.2 allows for path traversal due to improper handling of symbolic and hard links in the `safe_extract` function. This flaw can lead to arbitrary file writes outside the intended directory, potentially resulting in remote code execution if critical files are overwritten.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.0/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "clearml"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.0.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-8917"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/clearml/clearml/commit/64fb2bcbdbb87a74af90dd723d5ef4a99fceeb73"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/clearml/clearml"
  }, {
    "type" : "WEB",
    "url" : "https://huntr.com/bounties/588fcdd1-fea4-4cc2-a9f8-851701dcb576"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-22" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-10-07T13:09:42Z",
    "nvd_published_at" : "2025-10-05T11:16:03Z"
  }
}