CVE-2019-13173
Arbitrary File Overwrite in fstream
Description
Versions of fstream prior to 1.0.12 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. The fstream.DirWriter() function is vulnerable.
Recommendation
Upgrade to version 1.0.12 or later.
Affected Maven artifacts (3)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.mvnpm » fstreamvia npm fstream | < 1.0.12 | 1.0.12 |
| org.webjars » fstreamvia npm fstream | < 1.0.12 | 1.0.12 |
| org.webjars.npm » fstreamvia npm fstream | < 1.0.12 | 1.0.12 |
Blast radius
100% of the dependent artifacts (13) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 1 |
| 2 hops | 1 |
| 3 hops | 1 |
| 4 hops | 2 |
| 5 hops | 4 |
| 6 hops | 8 |
Most used dependents
- org.webjars » bin-build4 usages
- org.webjars » bin-wrapper4 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 » decompress1 usages
- org.webjars » gifsicle1 usages
- org.webjars » jpegtran-bin1 usages
- org.webjars » optipng-bin1 usages
- org.webjars » pngquant-bin1 usages
- org.webjars » tar1 usages
Computed from the dependency graph of build 20261205.0236 (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-2019-13173 | nvd.nist.gov |
| Web | npm/fstream commit 6a77d2f | github.com |
| Web | 4123-1 | usn.ubuntu.com |
| Web | advisories/886 | npmjs.com |
| Web | opensuse-security-announce/2019-08/msg00010.html | lists.opensuse.org |
| Web | opensuse-security-announce/2019-08/msg00052.html | lists.opensuse.org |
