CVE-2021-37713 Arbitrary File Creation/Overwrite on Windows via insufficient relative path sanitization
- Published
- Updated
- Exploit status
- No public exploit known
- Technology
- UbuntuDebianRed Hat
Description
The npm package "tar" (aka node-tar) before versions 4.4.18, 5.0.10, and 6.1.9 has an arbitrary file creation/overwrite and arbitrary code execution vulnerability. node-tar aims to guarantee that any file whose location would be outside of the extraction target directory is not extracted. This is, in part, accomplished by sanitizing absolute paths of entries within the archive, skipping archive entries that contain .. path portions, and resolving the sanitized paths against the extraction target directory. This logic was insufficient on Windows systems when extracting tar files that contained a path that was not an absolute path, but specified a drive letter different from the extraction target, such as C:some\path. If the drive letter does not match the extraction target, for example D:\extraction\dir, then the result of path.resolve(extractionDirectory, entryPath) would resolve against the current working directory on the C: drive, rather than the extraction target directory. Additionally, a .. portion of the path could occur immediately after the drive letter, such as C:../foo, and was not properly sanitized by the logic that checked for .. within the normalized and split portions of the path. This only affects users of node-tar on Windows systems. These issues were addressed in releases 4.4.18, 5.0.10 and 6.1.9. The v3 branch of node-tar has been deprecated and did not receive patches for these issues. If you are still using a v3 release we recommend you update to a more recent version of node-tar. There is no reasonable way to work around this issue without performing the same path normalization procedures that node-tar now does. Users are encouraged to upgrade to the latest patched versions of node-tar, rather than attempt to sanitize paths themselves.
Upgrade path
53 packages: 17 fixed, 34 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| 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 |
| redhat/odf5/odf-cli-rhel9:1795074438(Red Hat openshift_data_foundation 5.0 el9) | All versions | No fix listed | No fix yet |
| redhat/odf5/odf-cloudnative-pg-rhel9-operator:1795074371(Red Hat openshift_data_foundation 5.0 el9) | All versions | No fix listed | No fix yet |
| redhat/odf5/odf-console-rhel9:1795074803(Red Hat openshift_data_foundation 5.0 el9) | All versions | No fix listed | No fix yet |
| redhat/odf5/odf-cosi-sidecar-rhel9:1795074454(Red Hat openshift_data_foundation 5.0 el9) | All versions | No fix listed | No fix yet |
| redhat/odf5/odf-csi-addons-rhel9-operator:1795074485(Red Hat openshift_data_foundation 5.0 el9) | All versions | No fix listed | No fix yet |
| redhat/odf5/odf-csi-addons-sidecar-rhel9:1795074572(Red Hat openshift_data_foundation 5.0 el9) | All versions | No fix listed | No fix yet |
| redhat/odf5/odf-drbd-rhel9:1795074668(Red Hat openshift_data_foundation 5.0 el9) | All versions | No fix listed | No fix yet |
| redhat/odf5/odf-external-snapshot-metadata-sidecar-rhel9:1795074674(Red Hat openshift_data_foundation 5.0 el9) | All versions | No fix listed | No fix yet |
| redhat/odf5/odf-external-snapshotter-rhel9-operator:1795074723(Red Hat openshift_data_foundation 5.0 el9) | All versions | No fix listed | No fix yet |
| redhat/odf5/odf-external-snapshotter-sidecar-rhel9:1795074744(Red Hat openshift_data_foundation 5.0 el9) | All versions | No fix listed | No fix yet |
| redhat/odf5/odf-multicluster-console-rhel9:1795075063(Red Hat openshift_data_foundation 5.0 el9) | All versions | No fix listed | No fix yet |
| redhat/odf5/odf-multicluster-rhel9-operator:1795074810(Red Hat openshift_data_foundation 5.0 el9) | All versions | No fix listed | No fix yet |
| redhat/odf5/odf-must-gather-rhel9:1795074944(Red Hat openshift_data_foundation 5.0 el9) | All versions | No fix listed | No fix yet |
| redhat/odf5/odf-rhel9-operator:1795074987(Red Hat openshift_data_foundation 5.0 el9) | All versions | No fix listed | No fix yet |
| redhat/odf5/odr-rhel9-operator:1795074981(Red Hat openshift_data_foundation 5.0 el9) | All versions | No fix listed | No fix yet |
| redhat/odf5/odr-volsync-plugin-mover-rhel9:1795075376(Red Hat openshift_data_foundation 5.0 el9) | All versions | No fix listed | No fix yet |
| redhat/odf5/odr-volsync-plugin-rhel9-operator:1795075367(Red Hat openshift_data_foundation 5.0 el9) | All versions | No fix listed | No fix yet |
| redhat/odf5/rook-ceph-rhel9-operator:1795075598(Red Hat openshift_data_foundation 5.0 el9) | All versions | No fix listed | No fix yet |
| ubuntu/node-tar(Ubuntu 20.04) | = 4.4.10+ds1-2; = 4.4.10+ds1-2ubuntu1; All versions | No fix listed | No fix yet |
| ubuntu/node-tar(Ubuntu 22.04) | = 6.1.7+~cs11.3.10-1; = 6.1.11+ds1+~cs6.0.6-1; = 6.1.11+~cs11.3.10-1; All versions | No fix listed | No fix yet |
… and 23 more packages.
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| npm tar(npm) | < 4.4.18 | 4.4.18 |
| npm tar(npm) | >= 5.0.0, < 5.0.10 | 5.0.10 |
| npm tar(npm) | >= 6.0.0, < 6.1.9 | 6.1.9 |
| npmjs tar | < 4.4.18 | 4.4.18 |
| npmjs tar | >= 5.0.0, < 5.0.10 | 5.0.10 |
| npmjs tar | >= 6.0.0, < 6.1.9 | 6.1.9 |
| 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/nodejs(Alpine:v3.11) | < 12.22.6-r0 | 12.22.6-r0 |
| alpine/nodejs(Alpine:v3.12) | < 12.22.6-r0 | 12.22.6-r0 |
| alpine/nodejs(Alpine:v3.13) | < 14.17.6-r0 | 14.17.6-r0 |
| alpine/nodejs(Alpine:v3.14) | < 14.17.6-r0 | 14.17.6-r0 |
| alpine/nodejs(Alpine:v3.15) | < 14.17.6-r0 | 14.17.6-r0 |
| alpine/nodejs(Alpine:v3.16) | < 14.17.6-r0 | 14.17.6-r0 |
| alpine/nodejs(Alpine:v3.17) | < 14.17.6-r0 | 14.17.6-r0 |
| alpine/nodejs(Alpine:v3.18) | < 14.17.6-r0 | 14.17.6-r0 |
| alpine/nodejs(Alpine:v3.19) | < 14.17.6-r0 | 14.17.6-r0 |
| alpine/nodejs(Alpine:v3.20) | < 14.17.6-r0 | 14.17.6-r0 |
| alpine/nodejs(Alpine:v3.21) | < 14.17.6-r0 | 14.17.6-r0 |
| alpine/nodejs(Alpine:v3.22) | < 14.17.6-r0 | 14.17.6-r0 |
| alpine/nodejs(Alpine:v3.23) | < 14.17.6-r0 | 14.17.6-r0 |
| alpine/nodejs(Alpine:v3.24) | < 14.17.6-r0 | 14.17.6-r0 |
| npm node-tar | = < 4.4.18 | No fix listed |
| npm node-tar | = >= 5.0.0, < 5.0.10 | No fix listed |
Show 47 more
| Product | Affected versions | Fixed in |
|---|---|---|
| npm node-tar | = >= 6.0.0, < 6.1.9 | 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:Pro:18.04) | All versions | No fix listed |
| ubuntu/node-tar(Ubuntu:Pro:18.04) | = 2.2.1-1 | No fix listed |
| ubuntu/node-tar(Ubuntu:20.04) | All versions | No fix listed |
| ubuntu/node-tar(Ubuntu:20.04) | = 4.4.10+ds1-2 | No fix listed |
| ubuntu/node-tar(Ubuntu:20.04) | = 4.4.10+ds1-2ubuntu1 | No fix listed |
| ubuntu/node-tar(Ubuntu:22.04) | All versions | 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) | All versions | 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 |
| 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 |
References
- github.com issue-tracking patch third-party-advisory vendor-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 patch
- github.com patch
- github.com patch
- github.com
- security.alpinelinux.org vendor-advisory
- Debian Security Tracker CVE-2021-37713 vendor-advisory
- github.com product
- ubuntu.com issue-tracking
- www.cve.org issue-tracking
- Red Hat CVE page vendor-advisory
- Red Hat Bugzilla 2033394 issue-tracking
- RHSA-2026:100741 patch vendor-advisory