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

- Severity: High 7.5 (CVSS:3.0, scored by @huntr_ai) `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.07%, higher than 65% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-03-20T10:09:55.149Z
- Modified: 2026-07-07T17:57:25.840Z
- Also known as: GHSA-mrvr-7493-pfq3, PYSEC-2026-1090
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: @huntr_ai

## 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.

(As written by CVE List.)

## Affected

- aimhubio aimhubio/aim: from unspecified up to latest
- aim (PyPI): up to 3.22.0
- aimstack aim: 3.22.0

## Every score

- @huntr_ai: CVSS:3.0 7.5 High `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.0 7.5 High `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- PyPA Advisory Database: CVSS:3.0 7.5 High `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://huntr.com/bounties/839703fb-23b7-4dc4-ae81-44cd4740d3f3> (exploit, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-6851> (advisory)
- <https://github.com/aimhubio/aim> (package)
- <https://github.com/aimhubio/aim/blob/88ac143708fad8737094b74e9e5b25689d18f1a6/aim/sdk/reporter/file_manager.py#L44> (web)
- <https://pypi.org/project/aim> (package)
- <https://github.com/advisories/GHSA-mrvr-7493-pfq3> (advisory)

## Sources

- CVE List: [CVE-2024-6851](https://www.cve.org/CVERecord?id=CVE-2024-6851), CVE Terms of Use, modified 2025-03-20
- GitHub Advisory Database: [GHSA-mrvr-7493-pfq3](https://github.com/advisories/GHSA-mrvr-7493-pfq3), CC-BY-4.0, modified 2026-07-07
- NVD: [CVE-2024-6851](https://nvd.nist.gov/vuln/detail/CVE-2024-6851), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-1090](https://osv.dev/vulnerability/PYSEC-2026-1090), CC-BY-4.0, modified 2026-07-07

---

Page: https://cve.day/CVE-2024-6851 · Whole record: https://cve.day/CVE-2024-6851.json · Rebuilt by cve.day 2026-11-25T22:58:52.375Z
