AnswerDotAI fastcore path traversal in untar_dir archive extraction
Affects fastcore through 2.2.44 on Python versions before 3.14 for applications that extract untrusted archives with untar_dir().
- Exploited
- Proof of concept public, per CISA
- Fix
- Fix or patch referenced
- Who is exposed
- Not reported
Summary
fastcore from AnswerDotAI has a path traversal flaw in its untar_dir() archive extraction helper, which lets an attacker who supplies a crafted tar archive write files outside the intended extraction directory. The attack can be launched remotely without logging in, and it can overwrite application files, configuration, or importable code, which can lead to code execution, data modification, or denial of service.
Written by a model
Original description
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.
Who should check
Teams running AnswerDotAI fastcore through 2.2.44 on Python before 3.14 that call untar_dir() on untrusted tar archives.
“Affecting fastcore <= 2.2.44”
What to do
Apply the patch listed under Evidence.
Check your systems with an agent
Paste this into a coding or ops agent. It checks your systems read-only and reports a table per asset.
Check whether my systems are affected by CVE-2026-65320 (fastcore through 2.2.44 Path Traversal via untar_dir Tar Extraction), using the cve.now data below.
Rules: work read-only. Do not run exploit code, proof-of-concept scripts or scanners that send attack payloads, and do not change any configuration, package, image or deployment. Report findings only.
What cve.now has for CVE-2026-65320 (entry last updated 2026-11-24):
Affected:
- PyPI package fastcore: through 2.2.44
Fixed versions: none listed yet.
Conditions (all must be true for the bug to be hit):
- Python versions before 3.14 (source: https://www.vulncheck.com/advisories/fastcore-through-2.2.44-path-traversal-via-untar-dir-tar-extraction)
- fastcore releases through 2.2.44 (source: https://github.com/AnswerDotAI/fastcore/pull/973)
- Applications that extract untrusted archives with untar_dir() (source: https://www.vulncheck.com/advisories/fastcore-through-2.2.44-path-traversal-via-untar-dir-tar-extraction)
Setup: unknown whether the bug needs a non-default feature or setting. Check the advisory.
Attacker needs: network access, no login, no user action.
CISA KEV: CVE-2026-65320 is not listed as of cve.now's last read.
This KEV status is for CVE-2026-65320 only. If you also check another CVE, look up its own KEV status; never assume it from this one.
How to check:
- Packages (PyPI): find every lockfile in each project and run the stack.check operation of the cve.now MCP server (execute) on each one. Compare the resolved versions, not the ranges a manifest declares, with the affected versions above. Include transitive dependencies.
Verify against the linked advisories before concluding, and cite the date you read each one:
- 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-untar-dir-tar-extraction
Do not conclude an asset is unaffected unless you checked it and the evidence covers both its version and the conditions above. If you could not check something, mark it unknown and say what is missing.
Report a table with one row per asset and these columns: Asset | Version or build | Status (affected, fixed, not applicable, unknown) | Compensating controls | Exposure (internet-facing, internal, none) | Evidence | Next action.
Entry: https://cve.now/CVE-2026-65320
For follow-up questions, use the cve.now MCP server at https://mcp.cve.now/mcp (no authentication), for example execute with name cve.get and arguments {"id": "CVE-2026-65320"}.Affected versions
cve.now Index
- Exploitation15/40CISA rates a proof of concept as public
- Exposure17/25No login or user action needed, reachable over the network without a login · Unknown: Advisories don't say whether default setups are affected
- Reach10/20Affects PyPI packages
- Severity10/10CVSS 9.2, total technical impact per CISA
- No patch0/5No signal
What would change the score
- Would score about 82 if added to CISA KEV
- Would score about 77 if CISA's SSVC rates exploitation active
- Would score about 57 if advisories confirm default setups are exposed
Timeline
- CVE published
- First seen by cve.now
- Posted on X by cve.now
- CISA SSVC assessment
Exploitation: poc · Automatable: no · Technical impact: total
- Record last updated
Evidence 6
| Kind | Source |
|---|---|
| CVE record 2Establishes: The identifier and description. | |
| Record | CVE List · CVE-2026-65320 |
| Record | NVD · CVE-2026-65320 |
| Public exploit code 1Establishes: Public exploit code exists (Exploit-DB, Metasploit, Nuclei and GitHub). | |
| Exploit | GitHub · rahulreddykarne/CVE-2026-65320-fastcore · Repository |
| Other links 3 | |
| Patch | GitHub · AnswerDotAI/fastcore · Pull request #973 |
| Report | GitHub · AnswerDotAI/fastcore · Issue #974 |
| Link | vulncheck.com · advisories/fastcore-through-2.2.44-path-traversal-via-untar-dir-tar-extraction |
Questions about CVE-2026-65320
Is CVE-2026-65320 being exploited?
It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. CISA's SSVC assessment notes a proof of concept exists. No public exploit code is tracked.
Source: cve.now feed data
What does this mean?
untar_dir() can write files outside the directory it extracts into. Attackers can overwrite application files, configuration, or importable code, which can lead to code execution, data modification, or denial of service.
Source: vulncheck.com, github.com
Which versions are affected by CVE-2026-65320?
fastcore (PyPI): through 2.2.44.
Source: cve.now feed data
Am I affected, and how do I check?
All fastcore releases through 2.2.44 are listed, but the issue applies when running on Python versions before 3.14 and when an application extracts untrusted archives with untar_dir(). To check, look at the installed fastcore version and the Python version, and search the code for calls to untar_dir().
Source: vulncheck.com, github.com
How do I fix CVE-2026-65320?
The checked facts do not name a fixed fastcore version or vendor patch, so no upgrade target can be confirmed from them. Until a fix is confirmed, avoid passing untrusted archives to untar_dir().
Source: vulncheck.com, github.com
Related
- CVE-2026-135793Panabit Smart Application Gateway CGI Backend ajax_sac_ap upload_modkey path traversal
- CVE-2026-134898A path traversal vulnerability was found in the File Explorer of ADM
- CVE-2026-134895A path traversal vulnerability was found in the File Explorer of ADM
- CVE-2026-100985NVIDIA AIStore contains a vulnerability in object-copy destination validation where an unauthenticated attacker could use a crafted…
- CVE-2026-136430PyTorch Foundation PyTorch AOTIModelPackageLoader Directory Traversal Remote Code Execution Vulnerability
- CVE-2026-129394Joomla! Core - [20261157] - Core - Path traversal in com_scheduler task log file name in Joomla 4.1.0-5.4.10, 6.0.0-6.2.0
No corrections so far. Something wrong on this page? Report an error.