CVE-2024-6851 Arbitrary File Deletion in aimhubio/aim

High 7.5 Published Updated

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.

PackageAffectedFixed in
aim PyPIAll versions to 3.22.0None
aim PyPIAll versions to 3.22.0None
aim PyPIAll versions to 3.22.0None

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.

Sources

Also known as GHSA-mrvr-7493-pfq3, PYSEC-2026-1090.

Is CVE-2024-6851 in your software?

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

Check your SBOMs for free