---
id: CVE-2024-6829
aliases:
  - GHSA-75px-35p4-qq6h
  - PYSEC-2026-259
title: Aim External Control of File Name or Path vulnerability
summary: Aim External Control of File Name or Path vulnerability
severity: critical
cvss: 9.1
cvssVector: 'CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H'
vendor: aim
product: aim
ecosystem: pip
affected:
  - aim <= 3.19.3
published: '2025-03-20'
updated: '2026-10-26'
sourceUpdated: '2026-10-26T21:30:04.178018902Z'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/GHSA-75px-35p4-qq6h'
references:
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2024-6829'
  - url: 'https://github.com/aimhubio/aim'
  - url: >-
      https://github.com/pypa/advisory-database/tree/main/vulns/aim/PYSEC-2026-259.yaml
  - url: 'https://huntr.com/bounties/7c97065c-1b63-4982-82c1-8038be0ed570'
  - url: 'https://pypi.org/project/aim'
  - url: 'https://github.com/advisories/GHSA-75px-35p4-qq6h'
tags:
  - osv
  - pip
  - ghsa
epss: 0.00884
epssPercentile: 0.59035
cwe:
  - CWE-73
ingestedAt: '2026-10-27T16:11:58.770Z'
---

## Overview

A vulnerability in aimhubio/aim version 3.19.3 allows an attacker to exploit the `tarfile.extractall()` function to extract the contents of a maliciously crafted tarfile to arbitrary locations on the host server. The attacker can control `repo.path` and `run_hash` to bypass directory existence checks and extract files to unintended locations, potentially overwriting critical files. This can lead to arbitrary data being written to arbitrary locations on the remote tracking server, which could be used for further attacks such as writing a new SSH key to the target server.

## Affected packages

- `aim <= 3.19.3`

## Remediation

Refer to the advisory for the patched release.
