PYSEC-2026-259
Vulnerability from pysec - Published: 2026-06-29 11:50 - Updated: 2026-07-01 20:22A 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.
| Name | purl | aim | pkg:pypi/aim |
|---|
{
"affected": [
{
"package": {
"ecosystem": "PyPI",
"name": "aim",
"purl": "pkg:pypi/aim"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"last_affected": "3.19.3"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"2.0.19",
"2.0.20",
"2.0.21",
"2.0.22",
"2.0.23",
"2.0.24",
"2.0.25",
"2.0.26",
"2.0.27",
"2.1.0",
"2.1.1",
"2.1.2",
"2.1.3",
"2.1.4",
"2.1.5",
"2.1.6",
"2.2.0",
"2.2.1",
"2.3.0",
"2.4.0",
"2.5.0",
"2.6.0",
"2.7.0",
"2.7.1",
"2.7.2",
"2.7.3",
"2.7.4",
"3.0.0",
"3.0.1",
"3.0.2",
"3.0.3",
"3.0.4",
"3.0.5",
"3.0.6",
"3.0.7",
"3.1.0",
"3.1.1",
"3.10.0",
"3.10.0.dev9",
"3.10.1",
"3.10.2",
"3.10.3",
"3.11.0",
"3.11.0.dev4",
"3.11.1",
"3.11.1.dev1",
"3.11.2",
"3.12.0",
"3.12.0.dev2",
"3.12.1",
"3.12.2",
"3.13.0",
"3.13.1",
"3.13.2",
"3.13.3",
"3.13.4",
"3.14.0",
"3.14.1",
"3.14.2",
"3.14.3",
"3.14.4",
"3.15.0",
"3.15.1",
"3.15.2",
"3.16.0",
"3.16.1",
"3.16.2",
"3.17.0",
"3.17.1",
"3.17.2",
"3.17.3",
"3.17.4",
"3.17.5",
"3.17.5rc1",
"3.17.5rc2",
"3.17.5rc3",
"3.17.5rc4",
"3.18.0",
"3.18.0.dev2",
"3.18.0.dev3",
"3.18.0.dev4",
"3.18.0.dev5",
"3.18.1",
"3.19.0",
"3.19.1",
"3.19.2",
"3.19.3",
"3.2.0",
"3.2.1",
"3.2.2",
"3.3.0",
"3.3.1",
"3.3.2",
"3.3.3",
"3.3.4",
"3.3.5",
"3.4.0",
"3.4.1",
"3.5.0",
"3.5.1",
"3.5.2",
"3.5.3",
"3.5.4",
"3.6.0",
"3.6.1",
"3.6.2",
"3.6.3",
"3.7.0",
"3.7.1",
"3.7.2",
"3.7.3",
"3.7.4",
"3.7.5",
"3.8.0",
"3.8.1",
"3.9.0a1",
"3.9.0a14",
"3.9.2",
"3.9.3",
"3.9.4"
]
}
],
"aliases": [
"CVE-2024-6829",
"GHSA-75px-35p4-qq6h"
],
"details": "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.",
"id": "PYSEC-2026-259",
"modified": "2026-07-01T20:22:47.682466Z",
"published": "2026-06-29T11:50:35.626775Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2024-6829"
},
{
"type": "PACKAGE",
"url": "https://github.com/aimhubio/aim"
},
{
"type": "WEB",
"url": "https://huntr.com/bounties/7c97065c-1b63-4982-82c1-8038be0ed570"
},
{
"type": "PACKAGE",
"url": "https://pypi.org/project/aim"
},
{
"type": "ADVISORY",
"url": "https://github.com/advisories/GHSA-75px-35p4-qq6h"
}
],
"severity": [
{
"score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H",
"type": "CVSS_V3"
}
],
"summary": "Aim External Control of File Name or Path vulnerability"
}
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
Related by attack behaviour
Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.