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

Critical 9.1 Published Updated

Attackers can overwrite arbitrary files on the server via malicious tarfiles, potentially leading to remote code execution or privilege escalation.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2024-6829?

CVE-2024-6829 is a critical path traversal vulnerability in aimhubio/aim, published on 20 Mar 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

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.

Weakness: CWE-73

Which versions are affected by CVE-2024-6829?

3 open source packages ship an affected version, including aim. It affects 1 product.

PackageAffectedFixed in
aim PyPIAll versions to 3.19.3None
aim PyPIAll versions to 3.19.3None
aim PyPIAll versions to 3.19.3None

Products include Aimstack Aim.

How do I fix CVE-2024-6829?

No fix has been published for CVE-2024-6829 yet. Limit exposure of the affected software until one is available.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2024-6829 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-6829 exists.

Sources

Also known as GHSA-75px-35p4-qq6h, PYSEC-2026-259.

Is CVE-2024-6829 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free