Paper/Archive/CVE-2026-65320

CVE-2026-65320

AnswerDotAI fastcore — fastcore through 2.2.44 Path Traversal via untar_dir Tar Extraction

Description · from the CVE record

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.

Affected

ProductAffectedFixed inSource
fastcore≤ 2.2.44–CNA

Scores by source

VulnCheck (CNA)9.2CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
VulnCheck (CNA)8.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
CISA ADPSSVCExploitation: poc · Automatable: no · Technical impact: total

References

exploitgithub.com/rahulreddykarne/CVE-2026-65320-fastcorepatchgithub.com/AnswerDotAI/fastcore/pull/973refgithub.com/AnswerDotAI/fastcore/issues/974writeupvulncheck.com/advisories/fastcore-through-2.2.44-path-traversal-via-untar-dir-tar-extraction