CVE-2018-20834
Arbitrary File Overwrite in tar
Description
Versions of tar prior to 4.4.2 for 4.x and 2.2.2 for 2.x are vulnerable to Arbitrary File Overwrite. Extracting tarballs containing a hardlink to a file that already exists in the system, and a file that matches the hardlink will overwrite the system's file with the contents of the extracted file.
Recommendation
For tar 4.x, upgrade to version 4.4.2 or later. For tar 2.x, upgrade to version 2.2.2 or later.
Affected Maven artifacts (3)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.mvnpm » tarvia npm tar | < 2.2.2>= 3.0.0, < 4.4.2 | 2.2.2, 4.4.2 |
| org.webjars » tarvia npm tar | < 2.2.2>= 3.0.0, < 4.4.2 | 2.2.2, 4.4.2 |
| org.webjars.npm » tarvia npm tar | < 2.2.2>= 3.0.0, < 4.4.2 | 2.2.2, 4.4.2 |
Blast radius
84% of the dependent artifacts (16) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 5 |
| 2 hops | 2 |
| 3 hops | 4 |
| 4 hops | 4 |
| 5 hops | 8 |
| 6 hops | 2 |
Most used dependents
- org.webjars.npm » openlayers4 usages
- org.webjars » bin-build4 usages
- org.webjars » bin-wrapper4 usages
- org.webjars.npm » closure-util2 usages
- org.webjars » download2 usages
- org.webjars » imagemin-gifsicle1 usages
- org.webjars » imagemin-jpegtran1 usages
- org.webjars » imagemin-optipng1 usages
- org.webjars » imagemin-pngquant1 usages
- org.webjars.npm » get-down1 usages
- org.webjars » decompress1 usages
- org.webjars » gifsicle1 usages
- org.webjars » jpegtran-bin1 usages
- org.webjars » optipng-bin1 usages
- org.webjars » pngquant-bin1 usages
Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
Other ecosystems
Also affects npm (1 package) . See all on OSV
References
| Advisory | NVD CVE-2018-20834 | nvd.nist.gov |
| Package | isaacs/node-tar | github.com |
| Web | npm/node-tar commit 7ecef07 | github.com |
| Web | npm/node-tar commit b0c5843 | github.com |
| Web | reports/344595 | hackerone.com |
| Web | errata/RHSA-2019:1821 | access.redhat.com |
| Web | npm/node-tar/commits/v2.2.2 | github.com |
| Web | npm/node-tar/compare/58a8d43...a5f7779 | github.com |
