CVE-2018-20835
HIGH 7.5CVSS 3.0Improper Input Validation in tar-fs
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.
- Published
- 30 Apr 2019
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-20
- Also known as
- GHSA-x2mc-8fgj-3wmr
- Sources
- NVDJSONOSV GHSA-x2mc-8fgj-3wmrJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.0 | HIGH 7.5 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| OSV | GitHub | CVSS 3.0 | HIGH 7.5 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 6.4 | AV:N/AC:L/Au:N/C:N/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | tar-fs_project | tar-fscpe:2.3:a:tar-fs_project:tar-fs:*:*:*:*:*:*:*:* |
< 1.16.2 | 1.16.2 |
| OSV | npm | tar-fs | < 1.16.2 | 1.16.2 |
References
- https://github.com/mafintosh/tar-fs/commit/06672828e6fa29ac8551b1b6f36c852a9a3c58a2 · Patch, Third Party Advisory, WEB
- https://github.com/mafintosh/tar-fs/compare/d590fc7...a35ce2f · Patch, Third Party Advisory, WEB
- https://hackerone.com/reports/344595 · Exploit, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2018-20835 · ADVISORY
History
- 25 Nov 2026 20:22 UTC · NVD: first stored (published 30 Apr 2019)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 1 May 2019)