# CVE-2024-6829: Arbitrary File Overwrite through tarfile-extraction in aimhubio/aim

- Severity: Critical 9.1 (CVSS:3.0, scored by @huntr_ai) `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.88%, higher than 60% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-03-20T10:10:50.251Z
- Modified: 2026-10-26T21:30:04.178Z
- Also known as: GHSA-75px-35p4-qq6h, PYSEC-2026-259
- Weaknesses: CWE-73
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: @huntr_ai

## Description

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.

(As written by CVE List.)

## Affected

- aimhubio aimhubio/aim: from unspecified up to latest
- aim (PyPI): up to 3.19.3
- aimstack aim: 3.19.3

## Every score

- @huntr_ai: CVSS:3.0 9.1 Critical `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H`
- GitHub: CVSS:3.0 9.1 Critical `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H`
- PyPA Advisory Database: CVSS:3.0 9.1 Critical `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H`

## References

- <https://huntr.com/bounties/7c97065c-1b63-4982-82c1-8038be0ed570> (exploit, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-6829> (advisory)
- <https://github.com/aimhubio/aim> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/aim/PYSEC-2026-259.yaml> (web)
- <https://pypi.org/project/aim> (package, web)
- <https://github.com/advisories/GHSA-75px-35p4-qq6h> (advisory)

## Sources

- CVE List: [CVE-2024-6829](https://www.cve.org/CVERecord?id=CVE-2024-6829), CVE Terms of Use, modified 2025-03-20
- GitHub Advisory Database: [GHSA-75px-35p4-qq6h](https://github.com/advisories/GHSA-75px-35p4-qq6h), CC-BY-4.0, modified 2026-10-26
- NVD: [CVE-2024-6829](https://nvd.nist.gov/vuln/detail/CVE-2024-6829), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-259](https://osv.dev/vulnerability/PYSEC-2026-259), CC-BY-4.0, modified 2026-07-01

---

Page: https://cve.day/CVE-2024-6829 · Whole record: https://cve.day/CVE-2024-6829.json · Rebuilt by cve.day 2026-11-25T22:58:52.371Z
