Bug 1999731 (CVE-2021-37701)
| Summary: | CVE-2021-37701 nodejs-tar: Insufficient symlink protection due to directory cache poisoning using symbolic links allowing arbitrary file creation and overwrite | ||
|---|---|---|---|
| Product: | [Other] Security Response | Reporter: | Guilherme de Almeida Suckevicz <gsuckevi> |
| Component: | vulnerability | Assignee: | Red Hat Product Security <security-response-team> |
| Status: | CLOSED ERRATA | QA Contact: | |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | unspecified | CC: | aileenc, akostadi, amackenz, amasferr, amuller, anjoseph, anpicker, aos-bugs, aruklets, bdettelb, bmontgom, caswilli, chazlett, dfreiber, dmayorov, doconnor, drieden, drow, eparis, erooth, etamir, extras-orphan, ggaughan, gghezzo, gmalinko, gparvin, gtanzill, hhorak, hvyas, janstey, jburrell, jbuscemi, jlledo, jmitchel, jochrist, jorton, jprabhak, jramanat, jwendell, jwon, kaycoth, kshier, mkudlej, mulliken, mwringe, nbecker, nodejs-maint, nodejs-sig, nstielau, ocs-bugs, orabin, pahickey, pantinor, pbohmill, pdelbell, ploffay, rcernich, rfreiman, rhaigner, rhel-process-autobot, spasquie, sponnaga, stcannon, tchollingsworth, teagle, thrcka, tjochec, tsedmik, twalsh, vkumar, watson-tool-maintainers, wtam, zsvetlik |
| Target Milestone: | --- | Keywords: | Security |
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | nodejs-tar 4.4.16, nodejs-tar 5.0.8, nodejs-tar 6.1.7 | Doc Type: | If docs needed, set a value |
| Doc Text: |
A flaw was found in the npm package "tar" (aka node-tar). Extracting tar files that contain both a directory and a symlink with the same name, where the symlink and directory names in the archive entry used backslashes as a path separator, made it possible to bypass node-tar symlink checks on directories. This flaw allows an untrusted tar file to extract and overwrite files into an arbitrary location. A similar confusion can arise on case-insensitive filesystems. The highest threat from this vulnerability is to integrity and system availability.
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2022-02-01 22:31:33 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | 1999737, 1999738, 2000150, 2000151, 2000152, 2000153, 2000154, 2000539, 2002305, 2003774, 2008473, 2008474, 2008475, 2008476, 2008477, 2008478, 2029528, 2029529, 2031767, 2086773, 2086774, 2086775, 2086776, 2087161 | ||
| Bug Blocks: | 1999747 | ||
|
Description
Guilherme de Almeida Suckevicz
2021-08-31 16:35:31 UTC
Created nodejs-tar tracking bugs for this issue: Affects: epel-7 [bug 1999738] Affects: fedora-all [bug 1999737] Upstream commit: https://github.com/npm/node-tar/commit/53602669f58ddbeb3294d7196b3320aaaed22728 [main, v6] https://github.com/npm/node-tar/commit/ab3e9036dc4504413fb6f154ea6943af5c187e26 [v5] https://github.com/npm/node-tar/commit/3f2e2da3866c4e5f26ca0c0d6721cb371c5a3933 [v4] It's also worth noting the following commit, where "the path normalization of \ to / is made more comprehensive": https://github.com/npm/node-tar/commit/c2a0948fb7b70862f92828e7b37b622566ed367e [main, v6] https://github.com/npm/node-tar/commit/e120d38cef8792f9dec4ee30c7d79699c419f9ef [v5] https://github.com/npm/node-tar/commit/ce5148e12d1f9fed671e84673a4c7bd6ef743cfb [v4] This issue has been addressed in the following products: Red Hat OpenShift Data Foundation 4.9.0 on RHEL-8 Via RHSA-2021:5086 https://access.redhat.com/errata/RHSA-2021:5086 This issue has been addressed in the following products: Red Hat Software Collections for Red Hat Enterprise Linux 7 Via RHSA-2022:0041 https://access.redhat.com/errata/RHSA-2022:0041 This issue has been addressed in the following products: Red Hat Enterprise Linux 8.4 Extended Update Support Via RHSA-2022:0246 https://access.redhat.com/errata/RHSA-2022:0246 This issue has been addressed in the following products: Red Hat Enterprise Linux 8 Via RHSA-2022:0350 https://access.redhat.com/errata/RHSA-2022:0350 This bug is now closed. Further updates for individual products will be reflected on the CVE page(s): https://access.redhat.com/security/cve/cve-2021-37701 This issue has been addressed in the following products: Red Hat Software Collections for Red Hat Enterprise Linux 7 Via RHSA-2022:4914 https://access.redhat.com/errata/RHSA-2022:4914 |