First published: Tue Aug 03 2021(Updated: )
Node.js tar module could allow a local attacker to traverse directories on the system, caused by insufficient absolute path sanitization. An attacker could use a specially-crafted tar file containing "dot dot" sequences (/../) to create or overwrite arbitrary files on the system.
Credit: security-advisories@github.com
Affected Software | Affected Version | How to fix |
---|---|---|
redhat/rh-nodejs14-nodejs | <0:14.17.5-1.el7 | 0:14.17.5-1.el7 |
redhat/rh-nodejs12-nodejs | <0:12.22.5-1.el7 | 0:12.22.5-1.el7 |
redhat/rh-nodejs12-nodejs-nodemon | <0:2.0.3-5.el7 | 0:2.0.3-5.el7 |
Tar Project Tar | <3.2.2 | |
Tar Project Tar | >=4.0.0<4.4.14 | |
Tar Project Tar | >=5.0.0<5.0.6 | |
Tar Project Tar | >=6.0.0<6.1.1 | |
Oracle GraalVM | =20.3.3 | |
Oracle GraalVM | =21.2.0 | |
Siemens Sinec Infrastructure Network Services | <1.0.1.1 | |
redhat/nodejs-tar | <3.2.2 | 3.2.2 |
redhat/nodejs-tar | <4.4.14 | 4.4.14 |
redhat/nodejs-tar | <5.0.6 | 5.0.6 |
redhat/nodejs-tar | <6.1.1 | 6.1.1 |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
(Appears in the following advisories)
CVE-2021-32804 is a vulnerability in the npm package "tar" that allows a local attacker to traverse directories on the system.
The severity of CVE-2021-32804 is high, with a CVSS score of 8.1 (out of 10).
CVE-2021-32804 affects Node.js through the vulnerable version of the "tar" npm package.
To fix CVE-2021-32804, you should update the "tar" npm package to version 6.1.1, 5.0.6, 4.4.14, or 3.3.2, depending on your Node.js version.
You can find more information about CVE-2021-32804 at the following references: [Red Hat Advisory](https://access.redhat.com/security/cve/CVE-2021-32803), [npm Advisory](https://www.npmjs.com/advisories/1770), [GitHub Commit](https://github.com/npm/node-tar/commit/1f036ca23f64a547bdd6c79c1a44bc62e8115da4).