Track vulnerabilities like this one.
Sign up free to get alerted when software you use is affected.
9.2
CVE-2026-65320: fastcore lets crafted tar write files anywhere
CVE-2026-65320 · published 11 days ago
Summary
The fastcore library (up to version 2.2.44) can extract a tar file without checking the paths inside it. If an attacker provides a specially crafted archive, the extraction can place files outside the intended folder, potentially overwriting configuration or code. Stop using fastcore's untar_dir with files from unknown sources, apply any available update, or add your own checks to confirm archive paths are safe before extracting.
What to do
The CVE record does not list a fixed version. Check the vendor's site or the advisory links below - a fix may already be released.
Affected software
| Vendor | Product | Affected versions |
|---|---|---|
| answerdotai | fastcore | <= 2.2.44 |
Original advisory text
fastcore through 2.2.44 Path Traversal via untar_dir Tar Extraction
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.
References
- 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-...
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/65xxx/CVE-2026-65320... Vendor Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2026-65320 Vendor Advisory
- https://github.com/AnswerDotAI/fastcore Product
Internet-facing
14 days
Internal
At next upgrade
- Not known to be exploited
- Needs hands-on effort to exploit
- Gives an attacker full control
Severity
9.2
Critical
Type
CWE-22Path Traversal
Timeline
Published24 Nov 2026
Updated4 Dec 2026
First seen24 Nov 2026
Track software like this
Free during beta