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
VendorProductAffected 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.
Fix within
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
Exploitation
1% chance of attack within 30 days
Type
CWE-22Path Traversal
Timeline
Published24 Nov 2026
Updated4 Dec 2026
First seen24 Nov 2026
Sources
CVE-2026-65320 · MITRE
Track software like this
Free during beta