fastcore through 2.2.44 Path Traversal via untar_dir Tar Extraction
- State
- Published
- Severity
- 9.2 Critical
- Published
- Nov 24, 2026
- Updated
- Nov 24, 2026
- Reserved
- Jul 21, 2026
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.
| Product | Versions |
|---|---|
| fastcore AnswerDotAI | 2.2.44 and earlier Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 9.2 Critical | VulnCheck | |
| 3.1 | 8.1 High | VulnCheck |
Weaknesses
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
References
- Researcher DisclosureTechnical DetailsExploit
- Patch ProposalIssue TrackerPatch
- Github IssueIssue Tracker
- VulnCheck Advisory: fastcore through 2.2.44 Path Traversal via untar_dir Tar ExtractionThird-Party Advisory
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.