Skip to main content

ClearML CVE-2025-8917

MEDIUM
Path Traversal (CWE-22)
2025-10-05 security@huntr.dev
5.8
CVSS 3.0 · Vendor: huntr
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft tar archive with malicious symlink
  2. Delivery
    Upload as ClearML artifact/model
  3. Exploit
    Victim downloads and extracts package
  4. Execution
    safe_extract follows link outside dir
  5. Impact
    Overwrite critical file enabling code execution

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK

2 techniques across 2 tactics: Discovery, Collection

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires an attacker to supply a tar archive (such as a ClearML artifact, model, or dataset package) containing a symbolic or hard link whose target escapes the extraction directory, and requires a victim user or pipeline to extract that archive through the vulnerable safe_extract function in clearml/storage/util.py. Per the CVSS vector this is a LOCAL operation (AV:L) requiring elevated privileges (PR:H) and mandatory user interaction (UI:R) to trigger extraction. Limiting factors: the attacker must first get the crafted archive into a location the victim will extract, the victim must actively perform the extraction, and successful RCE further depends on being able to overwrite a security-critical file - only v2.0.1 and earlier unpatched builds lacking the link-target check are affected.

Impact

This is a genuine but lower-tier vulnerability whose signals point to limited real-world risk despite the 'RCE' tag. The provided CVSS:3.0 vector (AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:N, 5.8 medium) describes a local, privileged, user-interaction-dependent file-write flaw in ClearML's safe_extract tar-extraction routine - not a remotely triggerable unauthenticated bug. No EPSS probability, CISA KEV listing, or confirmed public exploit was supplied, so there is no evidence of active or automatable exploitation; the only exploitation signal is the huntr bounty report plus a confirmed upstream patch commit. The 'RCE' outcome is explicitly conditional in the description ('potentially resulting in remote code execution if critical files are overwritten'), so it is a chained best-case, not a demonstrated primitive. Note a tension worth verifying: the Tags assert 'RCE' and the input CVSS sets A:N even though arbitrary file writes that overwrite critical files would normally imply availability impact - treat the RCE claim as plausible-but-unproven. Overall this is a 'real but not urgent' issue: patch in routine cycles rather than emergency response, prioritizing instances where untrusted users can supply artifacts/models that other users or pipelines extract.

Exploit ScenarioDerived

An attacker with a ClearML account crafts a malicious tar artifact (e.g., a model or dataset package) containing a symbolic or hard link whose target points outside the extraction directory. When a victim user or automated pipeline downloads and extracts that artifact via the vulnerable safe_extract function in v2.0.1, the link is followed and a file is written outside the intended directory, potentially overwriting a critical file to achieve code execution. No standalone public exploit is confirmed in the input, though a huntr bounty report exists for the issue.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Oct 09, 2026

Path traversal in ClearML v2.0.1 (allegroai/clearml) allows a crafted tar archive containing a symbolic or hard link to write files outside the intended extraction directory, which can overwrite security-critical files and lead to remote code execution. The flaw is in the safe_extract function in clearml/storage/util.py, which checked each archive member's own path but never validated the target of symlink or hardlink members. Per the assessed vector this is a local operation requiring an authenticated user and mandatory extraction (UI:R), and although the advisory carries an 'RCE' tag there is no public exploit code identified at time of analysis and the CVE is not in CISA KEV, so real-world risk is limited to cases where an attacker can plant a malicious artifact, model, or dataset package that a victim then extracts.

RemediationAI

Apply the upstream fix by upgrading ClearML to a release that contains commit 64fb2bcbdbb87a74af90dd723d5ef4a99fceeb73 (the commit adds link-target validation to safe_extract); this is an upstream fix available (PR/commit) and a released patched version number is not independently confirmed in the provided data, so verify the fix is present in the wheel/tag you deploy rather than assuming a specific version. If immediate upgrade is not possible, compensate specifically: refuse to extract tar archives from untrusted or third-party sources through ClearML storage utilities, and where you must handle them, pre-scan the archive and reject any member where member.issym() or member.islnk() is true or where the resolved linkname escapes the destination - trade-off is that legitimate archives using symlinks (e.g. framework snapshots) will be blocked. Alternatively, run extraction inside a container or sandbox whose writable filesystem is confined to the intended extraction directory with everything else mounted read-only, which neutralizes arbitrary-write impact but adds operational overhead and can break pipelines that expect to write outside the temp directory. Finally, restrict who can publish artifacts, models and datasets into ClearML and treat the extraction step as a trust boundary, since exploitation requires a victim (authenticated user, per the assessed PR:L vector) to actively extract the attacker-supplied archive and depends on overwriting a security-critical file for full code execution.

Affected Packages

pypi clearml fix: 2.0.2

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in pypi

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The vulnerable component is ClearML's Python archive-extraction helper safe_extract in clearml/storage/util.py, which wraps Python's tarfile module. The function is a classic instance of CWE-22 (Improper Limitation of a Pathname to a Restricted Directory / Path Traversal): it joined each tar member's name to the destination and verified the result with is_within_directory, but it treated symlink (member.issym()) and hardlink (member.islnk()) members as ordinary files. Because it never resolved member.linkname against the base directory, an archive could contain a link whose target pointed outside the extraction root; a subsequent member could then be written through that link, escaping the sandbox and overwriting arbitrary files on the host. The upstream fix (commit 64fb2bcbdbb87a74af90dd723d5ef4a99fceeb73) normalizes the extraction base with os.path.abspath, resolves both the member path and the link target against that base, rejects any link whose target escapes the directory, and passes path=base_dir to tar.extractall. ClearML is an ML/AI experiment-tracking and orchestration platform where artifacts, models and datasets are routinely exchanged as archives, which is exactly the delivery channel this bug exploits; the affected surface is Python tooling that extracts generated tar archives (v2.0.1 and earlier unpatched builds). No CPE strings were supplied in the intelligence feed, so affected platforms should be identified by package/version rather than CPE.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (huntr) PRIMARY 5.8 MEDIUM
AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:N
vuln.today AI 7.3 HIGH

Local tar extraction (AV:L) triggered by a victim (UI:R); any authenticated user can upload a malicious artifact (PR:L); arbitrary file write enabling RCE justifies full C/I/A impact.

3.1 AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
4.0 AV:L/AC:L/AT:N/PR:L/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (huntr).

CVSS VectorVendor: huntr

Attack Vector
Local
Attack Complexity
Low
Privileges Required
High
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
None

DescriptionCVE.org

A vulnerability in allegroai/clearml version v2.0.1 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.

Threat Intelligence Overview

EPSS Score
0.3%
Top 79% exploitable
Prevalence
Medium
popular open-source MLOps platform, moderate but not universal enterprise adoption
Data Quality
3 sources
Confidence: Low

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

29
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +29
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy