8.2
CWE
22
Advisory Published
CVE Published
Updated

CVE-2021-32804: Arbitrary File Creation/Overwrite due to insufficient absolute path sanitization

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 SoftwareAffected VersionHow 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

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is CVE-2021-32804?

    CVE-2021-32804 is a vulnerability in the npm package "tar" that allows a local attacker to traverse directories on the system.

  • What is the severity of CVE-2021-32804?

    The severity of CVE-2021-32804 is high, with a CVSS score of 8.1 (out of 10).

  • How does CVE-2021-32804 affect Node.js?

    CVE-2021-32804 affects Node.js through the vulnerable version of the "tar" npm package.

  • How can I fix CVE-2021-32804?

    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.

  • Where can I find more information about CVE-2021-32804?

    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).

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2024 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203