CVE-2024-6851
JSON

7.5high

Arbitrary File Deletion in aimhubio/aim

Severity
7.5high CVSS:3.0 by @huntr_ai
Exploit likelihood
1.07% (higher than 65% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
@huntr_ai
Also known as
GHSA-mrvr-7493-pfq3PYSEC-2026-1090

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.

Affected

Product or packageVersionsReported by
aimhubio aimhubio/aimfrom unspecified up to latestCVE List
aim (PyPI)up to 3.22.0GitHub Advisory Database, PyPA Advisory Database
aimstack aim3.22.0NVD

All scores

@huntr_ai7.5high CVSS:3.0CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
GitHub7.5high CVSS:3.0CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
PyPA Advisory Database7.5high CVSS:3.0CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Classification

CWE-22

SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial.

What each source says

CVE List

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.

NVD (es)

En la versión 3.22.0 de aimhubio/aim, la función LocalFileManager._cleanup del servidor de seguimiento de AIM acepta un patrón glob especificado por el usuario para eliminar archivos. Esta función no verifica que los archivos coincidentes se encuentren en el directorio administrado por LocalFileManager, lo que permite que un patrón glob manipulado con fines maliciosos provoque la eliminación arbitraria de archivos.

References

Sources

SourceRecordLicence
CVE ListCVE-2024-6851 changed 2025-03-20CVE Terms of Use
GitHub Advisory DatabaseGHSA-mrvr-7493-pfq3 changed 2026-07-07CC-BY-4.0
NVDCVE-2024-6851 changed 2026-06-17Public domain
PyPA Advisory DatabasePYSEC-2026-1090 changed 2026-07-07CC-BY-4.0