Skip to content
OpenAdvisories
Critical · 9.1 CVE-2024-6829 EUVD-2025-6974GHSA-75px-35p4-qq6hPYSEC-2026-259

Arbitrary File Overwrite through tarfile-extraction in aimhubio/aim

Published Mar 20, 2025 · Updated Mar 20, 2025 · Assigned by @huntr_ai

Description

A vulnerability in aimhubio/aim version 3.19.3 allows an attacker to exploit the `tarfile.extractall()` function to extract the contents of a maliciously crafted tarfile to arbitrary locations on the host server. The attacker can control `repo.path` and `run_hash` to bypass directory existence checks and extract files to unintended locations, potentially overwriting critical files. This can lead to arbitrary data being written to arbitrary locations on the remote tracking server, which could be used for further attacks such as writing a new SSH key to the target server.

Affected products

VendorProductAffectedFixed
aimhubio aimhubio/aim unspecified – ≤ latest —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI aim <= 3.19.3 — GHSA-75px-35p4-qq6h

References