HIGH 7.5

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)

ArtifactAffected versionsFixed 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

2affected artifacts
6affected versions
19dependent artifacts (est.)
25dependent versions

84% of the dependent artifacts (16) still pull an affected version in their latest release.

DepthDependent versions
Direct
5
2 hops
2
3 hops
4
4 hops
4
5 hops
8
6 hops
2

Most used dependents

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

Advisorynvd.nist.gov
Packagegithub.com
Webgithub.com
Webgithub.com
Webhackerone.com
Webaccess.redhat.com
Webgithub.com
Webgithub.com