Skip to content
Path traversal Disclosed report Intermediate CVE-2025-8917

clearml is vulnerable to Path Traversal through its `safe_extract` function

The safe_extract function in clearml before 2.0.2 mishandles symbolic and hard links, allowing path traversal. An attacker could write arbitrary files outside the intended directory, potentially leading to remote code execution if critical files are overwritten.

clearml/clearml

Originally disclosed on huntr

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.

From the GitHub Advisory Database (GHSA-579p-qf78-fqm2, CC BY 4.0).

The original report as published on the GitHub Advisory Database. Images and videos are our own copies; raw HTML is shown as text. View it on GitHub Advisory Database.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the safe_extract function fails to properly validate symbolic and hard links within archives, allowing them to point outside the extraction directory.

Impact

An attacker could write arbitrary files outside the intended directory, potentially leading to remote code execution if critical files are overwritten.

What the attacker needed

Clearml before 2.0.2; ability to supply a crafted archive

The fix

The vulnerability was fixed in clearml version 2.0.2.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

Path traversal is when a program is tricked into accessing files outside the folder it should be limited to. Here, the function that unpacks archives (safe_extract) does not properly check links inside the archive, so an attacker can make it write files anywhere on the system. This could let them replace important files and run their own code.

What is Path traversal?

Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.

Similar reports

View all

Same bug class and techniques, clearest first.

Path traversal and file inclusion

The lesson behind this report.

Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.