CVE-2021-32804 Arbitrary File Creation/Overwrite due to insufficient absolute path sanitization
- Published
- Updated
- Exploit status
- No public exploit known
- Technology
- UbuntuDebianRed Hat
Description
The npm package "tar" (aka node-tar) before versions 6.1.1, 5.0.6, 4.4.14, and 3.3.2 has a arbitrary File Creation/Overwrite vulnerability due to insufficient absolute path sanitization. node-tar aims to prevent extraction of absolute file paths by turning absolute paths into relative paths when the preservePaths flag is not set to true. This is achieved by stripping the absolute path root from any absolute file paths contained in a tar file. For example /home/user/.bashrc would turn into home/user/.bashrc. This logic was insufficient when file paths contained repeated path roots such as ////home/user/.bashrc. node-tar would only strip a single path root from such paths. When given an absolute file path with repeating path roots, the resulting path (e.g. ///home/user/.bashrc) would still resolve to an absolute path, thus allowing arbitrary file creation and overwrite. This issue was addressed in releases 3.2.2, 4.4.14, 5.0.6 and 6.1.1. Users may work around this vulnerability without upgrading by creating a custom onentry method which sanitizes the entry.path or a filter method which removes entries with absolute paths. See referenced GitHub Advisory for details. Be aware of CVE-2021-32803 which fixes a similar bug in later versions of tar.
Upgrade path
88 packages: 18 fixed, 68 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| redhat/nodejs:12-8010020210817113128.c27ad7f8(Red Hat rhel_eus 8.1) | All versions | No fix listed | No fix yet |
| redhat/nodejs:12-8020020210817125332.4cda2c84(Red Hat rhel_eus 8.2) | All versions | No fix listed | No fix yet |
| redhat/nodejs:12-8040020210817133458.522a0ee4(Red Hat enterprise_linux 8) | All versions | No fix listed | No fix yet |
| redhat/nodejs:14-8040020210817165654.522a0ee4(Red Hat enterprise_linux 8) | All versions | No fix listed | No fix yet |
| redhat/ocs4/mcg-core-rhel8(Red Hat openshift_container_storage 4) | All versions | No fix listed | No fix yet |
| redhat/odf/odf-multicluster-rhel8-operator:4.9-30.007b3d8.release_4.9(Red Hat openshift_data_foundation 4.9 el8) | All versions | No fix listed | No fix yet |
| redhat/odf4/cephcsi-rhel8:4.9-164.57484e3.release_4.9(Red Hat openshift_data_foundation 4.9 el8) | All versions | No fix listed | No fix yet |
| redhat/odf4/ocs-must-gather-rhel8:4.9-257.4181add.release_4.9(Red Hat openshift_data_foundation 4.9 el8) | All versions | No fix listed | No fix yet |
| redhat/odf4/ocs-operator-bundle:4.9.0-5(Red Hat openshift_data_foundation 4.9 el8) | All versions | No fix listed | No fix yet |
| redhat/odf4/ocs-rhel8-operator:4.9-257.4181add.release_4.9(Red Hat openshift_data_foundation 4.9 el8) | All versions | No fix listed | No fix yet |
| redhat/odf4/odf-console-rhel8:4.9-39.0f2fa23.release_4.9(Red Hat openshift_data_foundation 4.9 el8) | All versions | No fix listed | No fix yet |
| redhat/odf4/odf-multicluster-operator-bundle:4.9.0-5(Red Hat openshift_data_foundation 4.9 el8) | All versions | No fix listed | No fix yet |
| redhat/odf4/odf-multicluster-rhel8-operator:4.9-30.007b3d8.release_4.9(Red Hat openshift_data_foundation 4.9 el8) | All versions | No fix listed | No fix yet |
| redhat/odf4/odf-operator-bundle:4.9.0-5(Red Hat openshift_data_foundation 4.9 el8) | All versions | No fix listed | No fix yet |
| redhat/odf4/odf-rhel8-operator:4.9-59.c8bbc1f.release_4.9(Red Hat openshift_data_foundation 4.9 el8) | All versions | No fix listed | No fix yet |
| redhat/odf4/odr-cluster-operator-bundle:4.9.0-5(Red Hat openshift_data_foundation 4.9 el8) | All versions | No fix listed | No fix yet |
| redhat/odf4/odr-hub-operator-bundle:4.9.0-5(Red Hat openshift_data_foundation 4.9 el8) | All versions | No fix listed | No fix yet |
| redhat/odf4/odr-rhel8-operator:4.9-27.3d037cc.release_4.9(Red Hat openshift_data_foundation 4.9 el8) | All versions | No fix listed | No fix yet |
| redhat/odf4/rook-ceph-rhel8-operator:4.9-219.c3f67c6.release_4.9(Red Hat openshift_data_foundation 4.9 el8) | All versions | No fix listed | No fix yet |
| redhat/odf4/volume-replication-rhel8-operator:4.9-28.82f68db.release_4.9(Red Hat openshift_data_foundation 4.9 el8) | All versions | No fix listed | No fix yet |
| redhat/odf5/cephcsi-rhel9-operator:1795073546(Red Hat openshift_data_foundation 5.0 el9) | All versions | No fix listed | No fix yet |
| redhat/odf5/cephcsi-rhel9:1795073870(Red Hat openshift_data_foundation 5.0 el9) | All versions | No fix listed | No fix yet |
| redhat/odf5/devicefinder-rhel9:1795073967(Red Hat openshift_data_foundation 5.0 el9) | All versions | No fix listed | No fix yet |
| redhat/odf5/mcg-core-rhel9:1795074158(Red Hat openshift_data_foundation 5.0 el9) | All versions | No fix listed | No fix yet |
| redhat/odf5/mcg-rhel9-operator:1795074167(Red Hat openshift_data_foundation 5.0 el9) | All versions | No fix listed | No fix yet |
| redhat/odf5/ocs-client-console-rhel9:1795074655(Red Hat openshift_data_foundation 5.0 el9) | All versions | No fix listed | No fix yet |
| redhat/odf5/ocs-client-rhel9-operator:1795074170(Red Hat openshift_data_foundation 5.0 el9) | All versions | No fix listed | No fix yet |
| redhat/odf5/ocs-metrics-exporter-rhel9:1795074383(Red Hat openshift_data_foundation 5.0 el9) | All versions | No fix listed | No fix yet |
| redhat/odf5/ocs-rhel9-operator:1795074368(Red Hat openshift_data_foundation 5.0 el9) | All versions | No fix listed | No fix yet |
| redhat/odf5/odf-blackbox-exporter-rhel9:1795074330(Red Hat openshift_data_foundation 5.0 el9) | All versions | No fix listed | No fix yet |
… and 58 more packages.
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| npm tar(npm) | < 3.2.2 | 3.2.2 |
| npm tar(npm) | >= 4.0.0, < 4.4.14 | 4.4.14 |
| npm tar(npm) | >= 5.0.0, < 5.0.6 | 5.0.6 |
| npm tar(npm) | >= 6.0.0, < 6.1.1 | 6.1.1 |
| debian/node-tar(Debian:12) | < 6.1.7+~cs11.3.10-1 | 6.1.7+~cs11.3.10-1 |
| debian/node-tar(Debian:13) | < 6.1.7+~cs11.3.10-1 | 6.1.7+~cs11.3.10-1 |
| debian/node-tar(Debian:14) | < 6.1.7+~cs11.3.10-1 | 6.1.7+~cs11.3.10-1 |
| ubuntu/node-tar(Ubuntu:22.04) | All versions | No fix listed |
| tar project tar | < 3.2.2 | 3.2.2 |
| tar project tar | >= 4.0.0, < 4.4.14 | 4.4.14 |
| tar project tar | >= 5.0.0, < 5.0.6 | 5.0.6 |
| tar project tar | >= 6.0.0, < 6.1.1 | 6.1.1 |
| oracle graalvm | = 20.3.3 | No fix listed |
| oracle graalvm | = 21.2.0 | No fix listed |
| Siemens sinec infrastructure network services | < 1.0.1.1 | 1.0.1.1 |
| alpine/tar(Alpine:v3.16) | >= 4.0.0, < 0 | No fix listed |
| alpine/tar(Alpine:v3.17) | >= 4.0.0, < 0 | No fix listed |
| alpine/tar(Alpine:v3.18) | >= 4.0.0, < 0 | No fix listed |
| alpine/tar(Alpine:v3.19) | >= 4.0.0, < 0 | No fix listed |
| alpine/tar(Alpine:v3.20) | >= 4.0.0, < 0 | No fix listed |
| alpine/tar(Alpine:v3.21) | >= 4.0.0, < 0 | No fix listed |
| alpine/tar(Alpine:v3.22) | >= 4.0.0, < 0 | No fix listed |
| alpine/tar(Alpine:v3.23) | >= 4.0.0, < 0 | No fix listed |
| alpine/tar(Alpine:v3.24) | >= 4.0.0, < 0 | No fix listed |
| ubuntu/node-tar(Ubuntu:24.04) | All versions | No fix listed |
Show 93 more
| Product | Affected versions | Fixed in |
|---|---|---|
| ubuntu/node-tar(Ubuntu:26.04) | All versions | No fix listed |
| npm node-tar | = < 3.2.2 | No fix listed |
| npm node-tar | = >= 4.0.0, < 4.4.14 | No fix listed |
| npm node-tar | = >= 5.0.0, < 5.0.6 | No fix listed |
| npm node-tar | = >= 6.0.0, < 6.1.1 | No fix listed |
| ubuntu/node-tar(Ubuntu:26.10) | All versions | No fix listed |
| ubuntu/node-tar(Ubuntu:Pro:14.04) | All versions | No fix listed |
| ubuntu/node-tar(Ubuntu:Pro:14.04) | = 0.1.18-1 | No fix listed |
| ubuntu/node-tar(Ubuntu:Pro:14.04) | = 0.1.18-1ubuntu0.1~esm1 | No fix listed |
| ubuntu/node-tar(Ubuntu:Pro:16.04) | All versions | No fix listed |
| ubuntu/node-tar(Ubuntu:Pro:16.04) | = 1.0.3-2 | No fix listed |
| ubuntu/node-tar(Ubuntu:Pro:16.04) | = 1.0.3-2ubuntu0.1~esm1 | No fix listed |
| ubuntu/node-tar(Ubuntu:18.04) | All versions | No fix listed |
| ubuntu/node-tar(Ubuntu:18.04) | = 2.2.1-1 | No fix listed |
| ubuntu/node-tar(Ubuntu:Pro:20.04) | All versions | No fix listed |
| ubuntu/node-tar(Ubuntu:Pro:20.04) | = 4.4.10+ds1-2 | No fix listed |
| ubuntu/node-tar(Ubuntu:Pro:20.04) | = 4.4.10+ds1-2ubuntu1 | No fix listed |
| ubuntu/node-tar(Ubuntu:Pro:20.04) | = 4.4.10+ds1-2ubuntu1+esm1 | No fix listed |
| ubuntu/node-tar(Ubuntu:22.04) | = 6.1.7+~cs11.3.10-1 | No fix listed |
| ubuntu/node-tar(Ubuntu:22.04) | = 6.1.11+~cs11.3.10-1 | No fix listed |
| ubuntu/node-tar(Ubuntu:22.04) | = 6.1.11+ds1+~cs6.0.6-1 | No fix listed |
| ubuntu/node-tar(Ubuntu:24.04) | = 6.1.13+~cs7.0.5-1 | No fix listed |
| ubuntu/node-tar(Ubuntu:24.04) | = 6.1.13+~cs7.0.5-3 | No fix listed |
| ubuntu/node-tar(Ubuntu:25.10) | All versions | No fix listed |
| ubuntu/node-tar(Ubuntu:25.10) | = 6.2.1+~cs7.0.8-1 | No fix listed |
| ubuntu/node-tar(Ubuntu:26.10) | = 6.2.1+ds1+~cs6.1.13-10 | No fix listed |
| ubuntu/node-tar(Ubuntu:26.10) | = 7.5.22+~4.0.1-1 | No fix listed |
| ubuntu/node-tar(Ubuntu:26.04) | = 6.2.1+~cs7.0.8-1 | No fix listed |
| ubuntu/node-tar(Ubuntu:26.04) | = 6.2.1+ds1+~cs6.1.13-6 | No fix listed |
| ubuntu/node-tar(Ubuntu:26.04) | = 6.2.1+ds1+~cs6.1.13-7 | No fix listed |
| ubuntu/node-tar(Ubuntu:26.04) | = 6.2.1+ds1+~cs6.1.13-10 | No fix listed |
| redhat/nodejs:12-8040020210817133458.522a0ee4(Red Hat:enterprise_linux:8) | All versions | No fix listed |
| redhat/nodejs:14-8040020210817165654.522a0ee4(Red Hat:enterprise_linux:8) | All versions | No fix listed |
| redhat/nodejs:12-8010020210817113128.c27ad7f8(Red Hat:rhel_eus:8.1) | All versions | No fix listed |
| redhat/nodejs:12-8020020210817125332.4cda2c84(Red Hat:rhel_eus:8.2) | All versions | No fix listed |
| redhat/odf4/cephcsi-rhel8:4.9-164.57484e3.release_4.9(Red Hat:openshift_data_foundation:4.9::el8) | All versions | No fix listed |
| redhat/odf4/ocs-must-gather-rhel8:4.9-257.4181add.release_4.9(Red Hat:openshift_data_foundation:4.9::el8) | All versions | No fix listed |
| redhat/odf4/ocs-operator-bundle:4.9.0-5(Red Hat:openshift_data_foundation:4.9::el8) | All versions | No fix listed |
| redhat/odf4/ocs-rhel8-operator:4.9-257.4181add.release_4.9(Red Hat:openshift_data_foundation:4.9::el8) | All versions | No fix listed |
| redhat/odf4/odf-console-rhel8:4.9-39.0f2fa23.release_4.9(Red Hat:openshift_data_foundation:4.9::el8) | All versions | No fix listed |
| redhat/odf4/odf-multicluster-operator-bundle:4.9.0-5(Red Hat:openshift_data_foundation:4.9::el8) | All versions | No fix listed |
| redhat/odf4/odf-multicluster-rhel8-operator:4.9-30.007b3d8.release_4.9(Red Hat:openshift_data_foundation:4.9::el8) | All versions | No fix listed |
| redhat/odf4/odf-operator-bundle:4.9.0-5(Red Hat:openshift_data_foundation:4.9::el8) | All versions | No fix listed |
| redhat/odf4/odf-rhel8-operator:4.9-59.c8bbc1f.release_4.9(Red Hat:openshift_data_foundation:4.9::el8) | All versions | No fix listed |
| redhat/odf4/odr-cluster-operator-bundle:4.9.0-5(Red Hat:openshift_data_foundation:4.9::el8) | All versions | No fix listed |
| redhat/odf4/odr-hub-operator-bundle:4.9.0-5(Red Hat:openshift_data_foundation:4.9::el8) | All versions | No fix listed |
| redhat/odf4/odr-rhel8-operator:4.9-27.3d037cc.release_4.9(Red Hat:openshift_data_foundation:4.9::el8) | All versions | No fix listed |
| redhat/odf4/rook-ceph-rhel8-operator:4.9-219.c3f67c6.release_4.9(Red Hat:openshift_data_foundation:4.9::el8) | All versions | No fix listed |
| redhat/odf4/volume-replication-rhel8-operator:4.9-28.82f68db.release_4.9(Red Hat:openshift_data_foundation:4.9::el8) | All versions | No fix listed |
| redhat/odf/odf-multicluster-rhel8-operator:4.9-30.007b3d8.release_4.9(Red Hat:openshift_data_foundation:4.9::el8) | All versions | No fix listed |
| redhat/rh-nodejs14-nodejs(Red Hat:rhel_software_collections:3::el7) | < 14.17.5-1.el7 | 14.17.5-1.el7 |
| redhat/rh-nodejs12-nodejs(Red Hat:rhel_software_collections:3::el7) | < 12.22.5-1.el7 | 12.22.5-1.el7 |
| redhat/rh-nodejs12-nodejs-nodemon(Red Hat:rhel_software_collections:3::el7) | < 2.0.3-5.el7 | 2.0.3-5.el7 |
| redhat/odf5/cephcsi-rhel9:1795073870(Red Hat:openshift_data_foundation:5.0::el9) | All versions | No fix listed |
| redhat/odf5/cephcsi-rhel9-operator:1795073546(Red Hat:openshift_data_foundation:5.0::el9) | All versions | No fix listed |
| redhat/odf5/devicefinder-rhel9:1795073967(Red Hat:openshift_data_foundation:5.0::el9) | All versions | No fix listed |
| redhat/odf5/mcg-core-rhel9:1795074158(Red Hat:openshift_data_foundation:5.0::el9) | All versions | No fix listed |
| redhat/odf5/mcg-rhel9-operator:1795074167(Red Hat:openshift_data_foundation:5.0::el9) | All versions | No fix listed |
| redhat/odf5/ocs-client-console-rhel9:1795074655(Red Hat:openshift_data_foundation:5.0::el9) | All versions | No fix listed |
| redhat/odf5/ocs-client-rhel9-operator:1795074170(Red Hat:openshift_data_foundation:5.0::el9) | All versions | No fix listed |
| redhat/odf5/ocs-metrics-exporter-rhel9:1795074383(Red Hat:openshift_data_foundation:5.0::el9) | All versions | No fix listed |
| redhat/odf5/ocs-rhel9-operator:1795074368(Red Hat:openshift_data_foundation:5.0::el9) | All versions | No fix listed |
| redhat/odf5/odf-blackbox-exporter-rhel9:1795074330(Red Hat:openshift_data_foundation:5.0::el9) | All versions | No fix listed |
| redhat/odf5/odf-cli-rhel9:1795074438(Red Hat:openshift_data_foundation:5.0::el9) | All versions | No fix listed |
| redhat/odf5/odf-cloudnative-pg-rhel9-operator:1795074371(Red Hat:openshift_data_foundation:5.0::el9) | All versions | No fix listed |
| redhat/odf5/odf-console-rhel9:1795074803(Red Hat:openshift_data_foundation:5.0::el9) | All versions | No fix listed |
| redhat/odf5/odf-cosi-sidecar-rhel9:1795074454(Red Hat:openshift_data_foundation:5.0::el9) | All versions | No fix listed |
| redhat/odf5/odf-csi-addons-rhel9-operator:1795074485(Red Hat:openshift_data_foundation:5.0::el9) | All versions | No fix listed |
| redhat/odf5/odf-csi-addons-sidecar-rhel9:1795074572(Red Hat:openshift_data_foundation:5.0::el9) | All versions | No fix listed |
| redhat/odf5/odf-drbd-rhel9:1795074668(Red Hat:openshift_data_foundation:5.0::el9) | All versions | No fix listed |
| redhat/odf5/odf-external-snapshot-metadata-sidecar-rhel9:1795074674(Red Hat:openshift_data_foundation:5.0::el9) | All versions | No fix listed |
| redhat/odf5/odf-external-snapshotter-rhel9-operator:1795074723(Red Hat:openshift_data_foundation:5.0::el9) | All versions | No fix listed |
| redhat/odf5/odf-external-snapshotter-sidecar-rhel9:1795074744(Red Hat:openshift_data_foundation:5.0::el9) | All versions | No fix listed |
| redhat/odf5/odf-multicluster-console-rhel9:1795075063(Red Hat:openshift_data_foundation:5.0::el9) | All versions | No fix listed |
| redhat/odf5/odf-multicluster-rhel9-operator:1795074810(Red Hat:openshift_data_foundation:5.0::el9) | All versions | No fix listed |
| redhat/odf5/odf-must-gather-rhel9:1795074944(Red Hat:openshift_data_foundation:5.0::el9) | All versions | No fix listed |
| redhat/odf5/odf-rhel9-operator:1795074987(Red Hat:openshift_data_foundation:5.0::el9) | All versions | No fix listed |
| redhat/odf5/odr-rhel9-operator:1795074981(Red Hat:openshift_data_foundation:5.0::el9) | All versions | No fix listed |
| redhat/odf5/odr-volsync-plugin-mover-rhel9:1795075376(Red Hat:openshift_data_foundation:5.0::el9) | All versions | No fix listed |
| redhat/odf5/odr-volsync-plugin-rhel9-operator:1795075367(Red Hat:openshift_data_foundation:5.0::el9) | All versions | No fix listed |
| redhat/odf5/rook-ceph-rhel9-operator:1795075598(Red Hat:openshift_data_foundation:5.0::el9) | All versions | No fix listed |
| redhat/servicemesh-grafana(Red Hat:service_mesh:2.0) | All versions | No fix listed |
| redhat/servicemesh-prometheus(Red Hat:service_mesh:2.0) | All versions | No fix listed |
| redhat/rhacm2/console-header-rhel8(Red Hat:acm:2) | All versions | No fix listed |
| redhat/rhacm2/console-rhel8(Red Hat:acm:2) | All versions | No fix listed |
| redhat/rhacm2/console-ui-rhel8(Red Hat:acm:2) | All versions | No fix listed |
| redhat/rhacm2/grc-ui-rhel8(Red Hat:acm:2) | All versions | No fix listed |
| redhat/rhacm2/kui-web-terminal-rhel8(Red Hat:acm:2) | All versions | No fix listed |
| redhat/rhacm2/mcm-topology-rhel8(Red Hat:acm:2) | All versions | No fix listed |
| redhat/rhacm2/search-ui-rhel8(Red Hat:acm:2) | All versions | No fix listed |
| redhat/openshift4/ose-grafana(Red Hat:openshift:4) | All versions | No fix listed |
| redhat/ocs4/mcg-core-rhel8(Red Hat:openshift_container_storage:4) | All versions | No fix listed |
| redhat/openshift-gitops-1/argocd-rhel8(Red Hat:openshift_gitops:1) | All versions | No fix listed |
References
- github.com issue-tracking mitigation third-party-advisory vendor-advisory
- github.com issue-tracking patch third-party-advisory
- www.npmjs.com issue-tracking mitigation third-party-advisory
- www.npmjs.com issue-tracking product third-party-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- www.oracle.com patch third-party-advisory
- cert-portal.siemens.com patch third-party-advisory
- github.com
- Debian Security Tracker CVE-2021-32804 vendor-advisory
- Ubuntu CVE tracker issue-tracking vendor-advisory
- www.cve.org issue-tracking
- security.alpinelinux.org vendor-advisory
- bugs.debian.org issue-tracking
- github.com product
- Red Hat CVE page vendor-advisory
- RHSA-2021:3623 patch vendor-advisory
- RHSA-2021:3666 patch vendor-advisory
- RHSA-2021:3639 patch vendor-advisory
- RHSA-2021:3638 patch vendor-advisory
- RHSA-2021:5086 patch vendor-advisory
- RHSA-2021:3280 patch vendor-advisory
- RHSA-2021:3281 patch vendor-advisory
- Red Hat Bugzilla 1990409 issue-tracking
- RHSA-2026:100741 patch vendor-advisory