CVE-2018-20835 json
Improper Input Validation in tar-fs
published 7y ago modified 4mo ago also GHSA-x2mc-8fgj-3wmr , EUVD-2019-0483
- cvss
- 7.5
- version 3.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 2.4%
- EPSS 2.4% chance of exploitation in 30 days, percentile 83%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- npm tar-fs 1.16.2
- tar-fs_project tar-fs 1.16.2
Is CVE-2018-20835 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerExploit prediction
2.36% chance of exploitation in the next 30 days, higher than 83% of all scored CVEs (FIRST EPSS, 2026-11-09).
Exploits and checks
- hackerone.com https://hackerone.com/reports/344595 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.0 | 7.5 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| NVD | 2.0 | 6.4 | AV:N/AC:L/Au:N/C:N/I:P/A:P |
| GitHub | 3.0 | 7.5 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | tar-fs | <1.16.2 |
1.16.2 |
Classification
- Weakness
-
- CWE-20 Improper Input Validation
References
-
github.com
/mafintosh/tar-fs/commit/06672828e6fa29ac8551b1b6f36c852a9a3c58a2
web, patch, third-party-advisory
-
github.com
/mafintosh/tar-fs/compare/d590fc7...a35ce2f
web, patch, third-party-advisory
-
hackerone.com
/reports/344595
web, exploit, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2018-20835
advisory
Sources
- CVE List CVE-2018-20835
- GitHub Advisory GHSA-x2mc-8fgj-3wmr
- NVD CVE-2018-20835
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.