CVE-2018-20834
nodejs-tar: Arbitrary file overwrites when extracting tarballs containing a hard-link
Severity Score
Exploit Likelihood
Affected Versions
Public Exploits
2Exploited in Wild
-Decision
Descriptions
A vulnerability was found in node-tar before version 4.4.2 (excluding version 2.2.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. A patch has been applied to node-tar v2.2.2).
Se detecto una vulnerabilidad en node-tar en versiones anteriores a la 4.4.2 (excluyendo la versión 2.2.2). Existe un problema de sobrescritura arbitraria de archivos cuando se extrae un tarball que contiene un enlace físico a un archivo que ya existe en el sistema, junto con un archivo plano posterior con el mismo nombre que el enlace físico. Este contenido de archivo simple reemplaza el contenido de archivo existente. Se ha aplicado un parche a node-tar v2.2.2).
A flaw was found in nodejs-tar in versions prior to 4.4.2. An arbitrary file overwrite can occur when extracting tarballs containing a hard-link to a file that already exists in the system. Further, a file that matches the hard-link may overwrite the system's files with the contents of the extracted file. The highest threat from the vulnerability is to data confidentiality and integrity as well as system availability.
CVSS Scores
SSVC
- Decision:-
Timeline
- 2018-03-20 First Exploit
- 2019-04-30 CVE Reserved
- 2019-04-30 CVE Published
- 2024-08-05 CVE Updated
- 2024-09-20 EPSS Updated
- ---------- Exploited in Wild
- ---------- KEV Due Date
CWE
- CWE-59: Improper Link Resolution Before File Access ('Link Following')
CAPEC
References (10)
URL | Tag | Source |
---|---|---|
https://github.com/npm/node-tar/commit/7ecef07da6a9e72cc0c4d0c9c6a8e85b6b52395d | X_refsource_misc | |
https://github.com/npm/node-tar/commits/v2.2.2 | X_refsource_misc | |
https://nvd.nist.gov/vuln/detail/CVE-2018-20834 | X_refsource_misc |
URL | Date | SRC |
---|---|---|
https://github.com/ossf-cve-benchmark/CVE-2018-20834 | 2018-03-20 | |
https://hackerone.com/reports/344595 | 2024-08-05 |
URL | Date | SRC |
---|---|---|
https://github.com/npm/node-tar/commit/b0c58433c22f5e7fe8b1c76373f27e3f81dcd4c8 | 2019-09-04 | |
https://github.com/npm/node-tar/compare/58a8d43...a5f7779 | 2019-09-04 |
URL | Date | SRC |
---|---|---|
https://access.redhat.com/errata/RHSA-2019:1821 | 2019-09-04 | |
https://access.redhat.com/security/cve/CVE-2018-20834 | 2019-07-22 | |
https://bugzilla.redhat.com/show_bug.cgi?id=1702338 | 2019-07-22 |
Affected Vendors, Products, and Versions
Vendor | Product | Version | Other | Status | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Vendor | Product | Version | Other | Status | <-- --> | Vendor | Product | Version | Other | Status |
Node-tar Project Search vendor "Node-tar Project" | Node-tar Search vendor "Node-tar Project" for product "Node-tar" | < 2.2.2 Search vendor "Node-tar Project" for product "Node-tar" and version " < 2.2.2" | - |
Affected
| ||||||
Node-tar Project Search vendor "Node-tar Project" | Node-tar Search vendor "Node-tar Project" for product "Node-tar" | >= 3.0.0 < 4.4.2 Search vendor "Node-tar Project" for product "Node-tar" and version " >= 3.0.0 < 4.4.2" | - |
Affected
|