CVE-2024-6851 Arbitrary File Deletion in aimhubio/aim
Attackers can delete arbitrary files on the server by exploiting a lack of path validation in the file cleanup function.
- 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-6851?
CVE-2024-6851 is a high-severity 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
In version 3.22.0 of aimhubio/aim, the LocalFileManager._cleanup function in the aim tracking server accepts a user-specified glob-pattern for deleting files. The function does not verify that the matched files are within the directory managed by LocalFileManager, allowing a maliciously crafted glob-pattern to lead to arbitrary file deletion.
Weakness: CWE-22
Which versions are affected by CVE-2024-6851?
3 open source packages ship an affected version, including aim. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
aim PyPI | All versions to 3.22.0 | None |
aim PyPI | All versions to 3.22.0 | None |
aim PyPI | All versions to 3.22.0 | None |
Products include Aimstack Aim.
How do I fix CVE-2024-6851?
No fix has been published for CVE-2024-6851 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-6851 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-6851 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-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
Sources
Also known as GHSA-mrvr-7493-pfq3, PYSEC-2026-1090.