---
id: "CVE-2024-6829"
kind: "vulnerability"
aliases: ["CVE-2024-6829", "GHSA-75px-35p4-qq6h"]
title: "Aim External Control of File Name or Path vulnerability"
severity: "critical"
cvss: 9.1
epss: 0.00884
exploited: false
status: "open"
category: "package"
products: [{"name": "aim", "fixed": [], "affected": "<= 3.19.3", "ecosystem": "pypi"}, {"name": "aimstack aim", "fixed": [], "affected": "= 3.19.3", "ecosystem": "vendor"}]
ecosystems: ["pypi", "vendor"]
tags: ["aim", "cwe-73", "package", "python", "self-hosted"]
not_affected_if: ["local-only-use", "newer-version"]
published_at: "2025-03-20T10:15:33+00:00"
first_seen_at: "2026-10-26T21:21:58+00:00"
updated_at: "2026-10-26T21:55:22+00:00"
sources: [{"source": "ghsa", "url": "https://github.com/advisories/GHSA-75px-35p4-qq6h", "first_seen_at": "2026-10-26T21:21:58+00:00"}, {"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2024-6829", "first_seen_at": "2026-10-26T21:55:22+00:00"}]
---

# Aim External Control of File Name or Path vulnerability

The Aim Python package extracts uploaded tar archives with tarfile.extractall() without checking member paths, so a crafted archive can place files outside the intended directory. An attacker can overwrite critical files on the tracking server, for example by adding an SSH key for code execution.

_Summary, check and fix written by a model from the sources; labelled as such._

## Affected

- pypi:aim affected <= 3.19.3 fixed ?
- vendor:aimstack aim affected = 3.19.3 fixed ?

## How to check

- Run `pip show aim` and compare the version against `3.19.3`
- Check whether the tracking server is reachable from untrusted networks and accepts remote run uploads

## Fix

- Upgrade `aim` to a version newer than `3.19.3`; the fixed version is unknown from the sources
- Restrict network access to the Aim tracking server until upgraded

## Timeline

- 2026-10-26T21:21:58+00:00 ghsa https://github.com/advisories/GHSA-75px-35p4-qq6h
- 2026-10-26T21:55:22+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2024-6829

## From the sources

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.

---

_Free to read at a human pace. An API with keys and an MCP server are in preparation; early access: hello@infrastack.ai_
