7.5high

CVE-2018-20835

Improper Input Validation in tar-fs

Also known as GHSA-x2mc-8fgj-3wmr

Published 7 y ago · modified 4 mo ago · JSON

CVSS
7.5
v3.0 · NVD
CISA KEV
No
not known exploited
EPSS
2.4%
percentile 84%
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.

Exploit prediction (EPSS)

2.36% probability of exploitation in the next 30 days, higher than 84% of all scored CVEs.

CVSS scores

Assigned byVersionScoreVector
NVD3.07.5CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
NVD2.06.4AV:N/AC:L/Au:N/C:N/I:P/A:P
GitHub3.07.5CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

Affected packages

EcosystemPackageAffectedFixed in
npmtar-fs
<1.16.2
1.16.2

Classification

Weakness
  • CWE-20 Improper Input Validation

References

  • hackerone.com /reports/344595 · x_refsource_MISC, x_transferred
  • github.com /mafintosh/tar-fs/commit/06672828e6fa29ac8551b1b6f36c852a9a3c58a2 · x_refsource_MISC, x_transferred
  • github.com /mafintosh/tar-fs/compare/d590fc7...a35ce2f · x_refsource_MISC, x_transferred
  • nvd.nist.gov /vuln/detail/CVE-2018-20835 · advisory

Sources

vulnwire keeps one entry per vulnerability: the CVE id wins, then GHSA; records that alias each other are merged. Machine-readable: JSON.