CVE-2024-6829CWE-73

Arbitrary File Overwrite through tarfile-extraction in aimhubio/aim

Critical · published March 20, 2025

CVSS v3.0
9.1
EPSS
1%
Percentile
58.8
In the wild
Unconfirmed
What it is

🚨 A cleverly crafted tar file can let attackers drop files anywhere on your server, using `tarfile.extractall()` to bypass checks like a sneaky delivery person leaving packages at the wrong address! 🔥 Think of it like a delivery service that doesn’t verify the address — if someone sends a parcel marked 'important documents', it might end up in your file cabinet marked 'trash'. This vulnerability in aimhubio/aim allows attackers to exploit that by overwriting critical files on your system. An attacker could exploit this vulnerability to write arbitrary data and potentially overwrite critical files on the server, which could lead to further attacks, like implanting a new SSH key. The results could be absolutely devastating, allowing complete control over the server and access to sensitive data.

Put simply

Think of it like a delivery service that doesn’t verify the address — if someone sends a parcel marked 'important documents', it might end up in your file cabinet marked 'trash'. This vulnerability in aimhubio/aim allows attackers to exploit that by overwriting critical files on your system. This vulnerability in aimhubio/aim version 3.19.3 allows attackers to manipulate the `repo.path` and `run_hash` variables to bypass directory existence checks in the `tarfile.extractall()` function, enabling them to extract maliciously crafted tarfiles to unintended locations.

What to do

An attacker could exploit this vulnerability to write arbitrary data and potentially overwrite critical files on the server, which could lead to further attacks, like implanting a new SSH key. The results could be absolutely devastating, allowing complete control over the server and access to sensitive data. Update aimhubio/aim to version 3.19.4 immediately to close this critical vulnerability. Additionally, review your server's security settings and implement strict validation for file paths to prevent future exploits. You can tackle this! With these steps, you'll have your server protected in no time. 🛡️

The record
Technical detail
CVSS v3.0
9.1 · CRITICAL
Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00884 · 58.8th percentile
Weakness
CWE-73 · External Control of File Name or Path
Published
2025-03-20T10:10Z
EPSS history
Timeline
  • 20 MAR 10:10Z
    Arbitrary File Overwrite through tarfile-extraction in aimhubio/aim
    cvelistv5