Skip to content
DayZeroHub
Critical CVSS 9.2CVE-2026-65320

fastcore through 2.2.44: path traversal in tar extraction via untar_dir()

AnswerDotAI fastcore

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.

ProductVersionsFixed 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.

Information taken from the source or the vendor. Verify it at the original link before acting.

Sources and references

Weaknesses (CWE): CWE-22

Relevant change history

  1. Advisory correction

    The preliminary version was replaced by the full write-up.

  2. Published

    Preliminary advisory published.

Summary written with AI assistance from the source data. See the sources and references for complete information. View sources