CVE-2026-65320
fastcore through 2.2.44 contains a path traversal vulnerability in the fastcore.xtras.untar_dir() archive extraction helper that allows attackers who supply a …
Impact
fastcore through 2.2.44 contains a path traversal vulnerability in the fastcore.xtras.untar_dir() archive extraction helper that allows attackers who supply a crafted tar archive to write files outside the intended extraction directory. The internal _unpack() function passes the archive to shutil.unpack_archive() without a tar extraction filter, member path validation, or a containment check, so archive members with absolute paths or ../ traversal sequences are written to arbitrary locations writable by the application process when running on Python versions before 3.14. Applications that extract untrusted archives with untar_dir() can have application files, configuration, or importable code overwritten, which can lead to code execution, data modification, or denial of service.
An attacker can exploit this over the network, without logging in, without any action by a user. Specific conditions have to be met, which makes an attack harder. If it succeeds: high risk of data being read, high risk of data or systems being changed, high risk of outages.
Affected products (AnswerDotAI)
| Product | Affected versions |
|---|---|
| Fastcore | through 2.2.44 Version 0 ≤2.2.44 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://github.com/rahulreddykarne/CVE-2026-65320-fastcore
- https://github.com/AnswerDotAI/fastcore/pull/973
- https://github.com/AnswerDotAI/fastcore/issues/974
- https://www.vulncheck.com/advisories/fastcore-through-2.2.44-path-traversal-via-untar-dir-tar-extraction
- https://github.com/advisories/GHSA-f27m-m9m6-cf77
- https://nvd.nist.gov/vuln/detail/CVE-2026-65320