CVE-2024-6396 Arbitrary File Overwrite and Data Exfiltration in aimhubio/aim
Remote attackers can overwrite arbitrary files and exfiltrate data via path traversal in the backup function, potentially leading to code execution.
- 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-6396?
CVE-2024-6396 is a critical path traversal vulnerability in aimhubio/aim, published on 12 Jul 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
A vulnerability in the `_backup_run` function in aimhubio/aim version 3.19.3 allows remote attackers to overwrite any file on the host server and exfiltrate arbitrary data. The vulnerability arises due to improper handling of the `run_hash` and `repo.path` parameters, which can be manipulated to create and write to arbitrary file paths. This can lead to denial of service by overwriting critical system files, loss of private data, and potential remote code execution.
Weakness: CWE-29
Which versions are affected by CVE-2024-6396?
It affects 1 product.
Products include Aimstack Aim.
How do I fix CVE-2024-6396?
No fix has been published for CVE-2024-6396 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-6396 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-6396 exists.
Public exploit code: 1 Nuclei template.
Other vulnerabilities in aimhubio/aim
- CVE-2024-2195 Remote Code Execution in aimhubio/aim
- CVE-2024-6829 Arbitrary File Overwrite through tarfile-extraction 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-w9pm-mp9p-gpgc.