CVE-2018-20835
Description
A vulnerability was found in tar-fs before 1.16.2. An Arbitrary File Overwrite issue exists when extracting a tarball containing a hardlink to a file that already exists on the system, in conjunction with a later plain file with the same name as the hardlink. This plain file content replaces the existing file content.
Severity
HIGH
CVSS v3
7.5
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N · source nvd
Exploit chance (EPSS)
2.359%
chance of exploitation in the next 30 days
higher than 84% of scored CVEs · 2026-11-17
CISA KEV
Not listed
Public exploit code
Yes
Exploit references (NVD and CNA): 1
Metasploit modules: 0
Nuclei templates: 0
Weakness
- CWE-20: Improper Input Validation
Timeline
- 2019-04-30Published by the CNA18:02 UTC
- 2019-05-01GitHub advisory published (GHSA-x2mc-8fgj-3wmr)1 day after publication
Exploit and advisory records
GitHub advisory GHSA-x2mc-8fgj-3wmr, affected packages:
| Package | Vulnerable versions | Fixed in |
|---|---|---|
| npm tar-fs | before 1.16.2 | 1.16.2 |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| tar-fs_project tar-fs | before 1.16.2fixed in 1.16.2 | 1.16.2 |
References
- https://github.com/mafintosh/tar-fs/commit/06672828e6fa29ac8551b1b6f36c852a9a3c58a2
- https://github.com/mafintosh/tar-fs/compare/d590fc7...a35ce2f
- https://hackerone.com/reports/344595
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2018-20835'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2018-20835'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2018-20835'curl 'https://api.contrastcyber.com/cve_products/CVE-2018-20835'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).