CVE-2024-6829
Arbitrary File Overwrite through tarfile-extraction in aimhubio/aim
- State
- Published
- Severity
- 9.1 Critical
- Published
- Mar 20, 2025
- Updated
- Mar 20, 2025
- Reserved
- Jul 16, 2024
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.
Scores
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 3.0 | 9.1 Critical | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H | @huntr_ai |
Weaknesses
- CWE-73 External Control of File Name or Path
Affected Products
| Product | Versions |
|---|---|
aimhubio/aimaimhubio |
|
References
Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.