CVE-2024-6829: Aim External Control of File Name or Path vulnerability

CVE-2024-6829 · Severity: critical · CVSS 9.1 · Published 2025-03-20

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.

Technologies: aim (PyPI). Vendors: PyPI.

Quick answers

Is CVE-2024-6829 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2024-6829 being exploited in the wild.
How severe is CVE-2024-6829?
Critical severity, with a CVSS score of 9.1, published 20 March 2025.
Which products and versions are affected?
aim (PyPI) <= 3.19.3, ECOSYSTEM:introduced=0,last_affected=3.19.3.
Is there a fix for CVE-2024-6829?
No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.
Am I affected by CVE-2024-6829?
Check whether you run aim (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

Affected products

  • aim (PyPI) <= 3.19.3, ECOSYSTEM:introduced=0,last_affected=3.19.3

Identifiers

  • CVE-2024-6829
  • GHSA-75px-35p4-qq6h
  • PYSEC-2026-259

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.