{"id":"CVE-2024-6851","summary":"Arbitrary File Deletion in aimhubio/aim","details":"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.","aliases":["GHSA-mrvr-7493-pfq3","PYSEC-2026-1090"],"modified":"2026-08-12T03:51:46.092452073Z","published":"2025-03-20T10:09:55.149Z","database_specific":{"cna_assigner":"@huntr_ai","cwe_ids":["CWE-22"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/6xxx/CVE-2024-6851.json"},"references":[{"type":"WEB","url":"https://huntr.com/bounties/839703fb-23b7-4dc4-ae81-44cd4740d3f3"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/6xxx/CVE-2024-6851.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-6851"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/aimhubio/aim","events":[{"introduced":"88ac143708fad8737094b74e9e5b25689d18f1a6"},{"last_affected":"88ac143708fad8737094b74e9e5b25689d18f1a6"}],"database_specific":{"extracted_events":[{"introduced":"3.22.0"},{"last_affected":"3.22.0"}],"source":"CPE_STRING","cpe":"cpe:2.3:a:aimstack:aim:3.22.0:*:*:*:*:python:*:*"}}],"versions":["3.22.0","v3.22.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-6851.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"}]}