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

CVE-2024-6829Arbitrary File Overwrite through tarfile-extraction in aimhubio/aim

Critical 9.1

In plain English

A critical-severity security flaw in aimhubio/aim from aimhubio. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.9% (higher than 59% of all known vulnerabilities).

Severity (CVSS 3.0)9.1Critical
Exploit odds (30 days)0.9%top 40.6% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
PyPIaimno fix listedGHSA-75px-35p4-qq6h
PyPIaimno fix listedPYSEC-2026-259

Affected products (as reported)

VendorProductVersions
aimhubio aimhubio/aim unspecified – through latest

Weakness: CWE-73 · Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H

References