Nanotar
CVE-2025-69874
CRITICAL
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK
2 techniques across 2 tactics: Discovery, Collection The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Impact | CVSS 9.8, EPSS 0.23%. Supply chain risk — applications using nanotar for TAR extraction are vulnerable. |
| Exploit ScenarioDerived | Attacker provides TAR archive with path traversal entries, writing files (web shells, cron jobs) outside intended directory. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Mar 12, 2026
Path traversal in nanotar npm package through 0.2.0. The parseTar() and parseTarGzip() functions allow attackers to write files outside the extraction directory.
Earlier versions of this analysis (1)
Zip slip in nanotar TAR parsing library.
RemediationAI
Update nanotar beyond 0.2.0.
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in npm
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
CWE-22 path traversal in TAR extraction. Malicious TAR archives can write files to arbitrary locations.
Know when Nanotar gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Primary rating from NVD · only source for this CVE.
CVSS VectorNVD
DescriptionCVE.org
nanotar through 0.2.0 has a path traversal vulnerability in parseTar() and parseTarGzip() that allows remote attackers to write arbitrary files outside the intended extraction directory via a crafted tar archive containing path traversal sequence.
Executive ViewAI
nanotar library versions through 0.2.0 contain a critical path traversal vulnerability that could allow attackers to write malicious files anywhere on affected systems by uploading specially crafted tar archives. Any organization using this library to process untrusted tar files faces immediate risk of system compromise, data corruption, and potential lateral movement.
Until patch availability: (1) Implement strict input validation—reject tar archives from untrusted sources; (2) Use WAF/IPS rules to block suspicious tar patterns containing '../' sequences; (3) Run tar extraction in isolated sandboxed environments with restricted filesystem permissions; (4) Disable nanotar functionality if not business-critical; (5) Apply principle of least privilege—run extraction processes with minimal required permissions; (6) Monitor file system for unauthorized file creation outside intended directories; (7) Consider alternative libraries with security track record if migration is feasible.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
GHSA-92fh-27vv-894w
NVD
CVE.org
EPSS
Exploit-DB