CVE-2024-6829 Arbitrary File Overwrite through tarfile-extraction in aimhubio/aim
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.
| Package | Affected | Fixed in |
|---|---|---|
aim PyPI | All versions to 3.19.3 | None |
aim PyPI | All versions to 3.19.3 | None |
aim PyPI | All versions to 3.19.3 | None |
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.
Other vulnerabilities in aimhubio/aim
- CVE-2024-6396 Arbitrary File Overwrite and Data Exfiltration in aimhubio/aim
- CVE-2024-2195 Remote Code Execution in aimhubio/aim
- CVE-2024-8769 Arbitrary File Deletion via Relative Path Traversal in aimhubio/aim
- CVE-2025-51464 Aim vulnerable to Cross-site Scripting
- CVE-2024-2196 CSRF Vulnerability in aimhubio/aim
Sources
Also known as GHSA-75px-35p4-qq6h, PYSEC-2026-259.