CVE-2024-6829

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.
References
Link Resource
https://huntr.com/bounties/7c97065c-1b63-4982-82c1-8038be0ed570 Exploit Third Party Advisory
Configurations

Configuration 1 (hide)

cpe:2.3:a:aimstack:aim:3.19.3:*:*:*:*:python:*:*

History

23 Jul 2025, 20:57

Type Values Removed Values Added
First Time Aimstack aim
Aimstack
CPE cpe:2.3:a:aimstack:aim:3.19.3:*:*:*:*:python:*:*
References () https://huntr.com/bounties/7c97065c-1b63-4982-82c1-8038be0ed570 - () https://huntr.com/bounties/7c97065c-1b63-4982-82c1-8038be0ed570 - Exploit, Third Party Advisory
Summary
  • (es) Una vulnerabilidad en aimhubio/aim versión 3.19.3 permite a un atacante explotar la función `tarfile.extractall()` para extraer el contenido de un archivo tar manipulado con fines maliciosos a ubicaciones arbitrarias en el servidor host. El atacante puede controlar `repo.path` y `run_hash` para eludir las comprobaciones de existencia de directorios y extraer archivos a ubicaciones no deseadas, lo que podría sobrescribir archivos críticos. Esto puede provocar la escritura de datos arbitrarios en ubicaciones arbitrarias en el servidor de seguimiento remoto, lo que podría utilizarse para futuros ataques, como escribir una nueva clave SSH en el servidor objetivo.

20 Mar 2025, 10:15

Type Values Removed Values Added
New CVE

Information

Published : 2025-03-20 10:15

Updated : 2025-07-23 20:57


NVD link : CVE-2024-6829

Mitre link : CVE-2024-6829

CVE.ORG link : CVE-2024-6829


JSON object : View

Products Affected

aimstack

  • aim
CWE
CWE-73

External Control of File Name or Path