Summary
fastcore, by AnswerDotAI, through version 2.2.44 contains a path traversal vulnerability (CVE-2026-65320) in the untar_dir() extraction helper. A crafted tar archive can write files outside the intended extraction directory.
What happened
The fastcore.xtras.untar_dir() function relies on an internal _unpack() function that passes the archive to shutil.unpack_archive() without a tar extraction filter, member path validation, or a containment check. As a result, 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. The weakness is classified as CWE-22.
Why it matters
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. The score is CVSS 4.0: 9.2 (critical severity), per CNA:VulnCheck, with vector CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N. CISA's KEV catalog does not list active exploitation, and the source provides no evidence that this is a zero-day.
Affected products and versions
fastcore (AnswerDotAI), versions <= 2.2.44 (last affected version: 2.2.44). The issue is described for runs on Python versions before 3.14.
| Product | Versions | Fixed in |
|---|---|---|
| AnswerDotAI fastcore | <= 2.2.44 | — |
Action recommended by the source
The source does not state a fixed version. Its references include a pull request (https://github.com/AnswerDotAI/fastcore/pull/973) tagged as a patch and an issue (https://github.com/AnswerDotAI/fastcore/issues/974) in the project repository, as well as a VulnCheck advisory. Readers are advised to consult these references for the status of the fix.
Sources and references
- https://github.com/rahulreddykarne/CVE-2026-65320-fastcore — CVE Program
- https://github.com/AnswerDotAI/fastcore/pull/973 — CVE Program
- https://github.com/AnswerDotAI/fastcore/issues/974 — CVE Program
- https://www.vulncheck.com/advisories/fastcore-through-2.2.44-path-traversal-via-untar-dir-tar-extraction — CVE Program
Weaknesses (CWE): CWE-22
Relevant change history
Advisory correction
The preliminary version was replaced by the full write-up.
Published
Preliminary advisory published.