Arbitrary File Creation/Overwrite due to insufficient absolute path sanitization
Exploitation and risk
Source statusCISA KEV lists vulnerabilities known to be exploited. FIRST EPSS estimates the likelihood of exploitation in the next 30 days. An unavailable score does not mean zero risk.
Which CVEs have scores here?
This view includes predictions for CVE identifiers explicitly listed in public NuGet advisories. Microsoft release pages have their own prediction coverage. Check source status for the scope and latest checks.
No exploitation or prediction data is available here for these CVEs. This does not mean they are safe or unlikely to be exploited.
cve-program · CVE-2021-32804
PublishedThe 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.
- Source published
- 3 Aug 2021 19:10:12 UTC
- Source modified
- 3 Aug 2024 23:33:56 UTC
- Saved here
- 23 Oct 2026 15:48:27 UTC
- Source terms
- CVE Program Terms of Use
Original source record · Cite this exact observation · Complete original publisher JSON
Source: cve-program · CVE Program Terms of Use. The publisher's wording is preserved. ChangeIntel groups the information and labels changes. The JSON record includes additional source fields.
CVSS 3.1 · 8.2 CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N
euvd · EUVD-2021-1548
PublishedThe 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.
Additional publisher context
EUVD source date text has no stated timezone and is retained without inventing a UTC instant. Related bulletin membership is not an alias, common cause or applicability claim. A missing vector with a zero score is treated as unrated. Complete vendor/product and underlying source evidence remains in the original JSON.
Original publisher date fields
datePublished: Aug 3, 2021, 7:10:12 PM
dateUpdated: Aug 3, 2024, 11:33:56 PM
29 related source bulletins · separate from aliases
msrc_CVE-2021-32804: Arbitrary File Creation/Overwrite due to insufficient absolute path sanitization
CVE-2021-32804
RHSA-2021:3623: Red Hat Security Advisory: nodejs:12 security and bug fix update
CVE-2021-3672 · CVE-2021-22930 · CVE-2021-22931 · CVE-2021-22939 · CVE-2021-22940 · CVE-2021-23343 · CVE-2021-32803 · CVE-2021-32804
SUSE-SU-2022:0657-1: Security update for nodejs12
CVE-2021-23343 · CVE-2021-32803 · CVE-2021-32804 · CVE-2021-3807 · CVE-2021-3918
SUSE-SU-2022:0569-1: Security update for nodejs14
CVE-2021-23343 · CVE-2021-32803 · CVE-2021-32804 · CVE-2021-3807 · CVE-2021-3918
RHSA-2021:3638: Red Hat Security Advisory: nodejs:12 security and bug fix update
CVE-2021-3672 · CVE-2021-22918 · CVE-2021-22930 · CVE-2021-22931 · CVE-2021-22939 · CVE-2021-22940 · CVE-2021-23343 · CVE-2021-23362 · CVE-2021-27290 · CVE-2021-32803 · CVE-2021-32804
WID-SEC-W-2023-0857: IBM QRadar SIEM: Mehrere Schwachstellen
CVE-2020-15168 · CVE-2020-24025 · CVE-2020-28469 · CVE-2020-28498 · CVE-2020-28500 · CVE-2020-7793 · CVE-2021-23337 · CVE-2021-27292 · CVE-2021-29060 · CVE-2021-32803 · CVE-2021-32804 · CVE-2021-33502 · CVE-2021-33623 · CVE-2021-37701 · CVE-2021-37712 · CVE-2021-37713 · CVE-2021-3807
RHSA-2021:3281: Red Hat Security Advisory: rh-nodejs12-nodejs and rh-nodejs12-nodejs-nodemon security update
CVE-2020-7788 · CVE-2020-28469 · CVE-2021-3672 · CVE-2021-22930 · CVE-2021-22931 · CVE-2021-22939 · CVE-2021-22940 · CVE-2021-23343 · CVE-2021-32803 · CVE-2021-32804
SUSE-SU-2022:0715-1: Security update for nodejs14
CVE-2021-23343 · CVE-2021-32803 · CVE-2021-32804 · CVE-2021-3807 · CVE-2021-3918
WID-SEC-W-2022-1603: IBM Tivoli Netcool/OMNIbus: Mehrere Schwachstellen
CVE-2017-16028 · CVE-2018-3719 · CVE-2018-3745 · CVE-2018-6341 · CVE-2019-10746 · CVE-2019-10747 · CVE-2020-15168 · CVE-2020-7733 · CVE-2020-7774 · CVE-2020-7788 · CVE-2020-7793 · CVE-2021-23362 · CVE-2021-23440 · CVE-2021-25949 · CVE-2021-27292 · CVE-2021-32803 · CVE-2021-32804 · CVE-2021-37701 · CVE-2021-37712 · CVE-2021-37713 · CVE-2021-42740 · CVE-2022-0235 · CVE-2022-25758 · CVE-2022-25858
WID-SEC-W-2024-1591: Juniper JUNOS: Mehrere Schwachstellen
CVE-2006-20001 · CVE-2007-5846 · CVE-2008-6123 · CVE-2011-1473 · CVE-2011-5094 · CVE-2012-6151 · CVE-2014-10064 · CVE-2014-2285 · CVE-2014-2310 · CVE-2014-3565 · CVE-2014-7191 · CVE-2014-8882 · CVE-2015-5621 · CVE-2015-8100 · CVE-2015-9262 · CVE-2016-1000232 · CVE-2016-10540 · CVE-2016-4658 · CVE-2017-1000048 · CVE-2017-15010 · CVE-2018-18065 · CVE-2018-20834 · CVE-2018-3737 · CVE-2018-7408 · CVE-2019-10081 · CVE-2019-10082 · CVE-2019-10092 · CVE-2019-10097 · CVE-2019-10098 · CVE-2019-11719 · CVE-2019-11727 · CVE-2019-11756 · CVE-2019-16775 · CVE-2019-16776 · CVE-2019-16777 · CVE-2019-17006 · CVE-2019-17023 · CVE-2019-17567 · CVE-2019-20149 · CVE-2019-20892 · CVE-2019-9517 · CVE-2020-11668 · CVE-2020-11984 · CVE-2020-11993 · CVE-2020-12362 · CVE-2020-12400 · CVE-2020-12401 · CVE-2020-12402 · CVE-2020-12403 · CVE-2020-13938 · CVE-2020-13950 · CVE-2020-14145 · CVE-2020-15861 · CVE-2020-15862 · CVE-2020-1927 · CVE-2020-1934 · CVE-2020-28469 · CVE-2020-28502 · CVE-2020-35452 · CVE-2020-36049 · CVE-2020-6829 · CVE-2020-7660 · CVE-2020-7754 · CVE-2020-7774 · CVE-2020-8648 · CVE-2020-9490 · CVE-2021-22543 · CVE-2021-2342 · CVE-2021-23440 · CVE-2021-2356 · CVE-2021-2372 · CVE-2021-2385 · CVE-2021-2389 · CVE-2021-2390 · CVE-2021-25745 · CVE-2021-25746 · CVE-2021-25748 · CVE-2021-26690 · CVE-2021-26691 · CVE-2021-27290 · CVE-2021-29469 · CVE-2021-30641 · CVE-2021-31535 · CVE-2021-31618 · CVE-2021-3177 · CVE-2021-32803 · CVE-2021-32804 · CVE-2021-33033 · CVE-2021-33034 · CVE-2021-33193 · CVE-2021-3347 · CVE-2021-33909 · CVE-2021-34798 · CVE-2021-35604 · CVE-2021-35624 · CVE-2021-36160 · CVE-2021-37701 · CVE-2021-37712 · CVE-2021-37713 · CVE-2021-3803 · CVE-2021-39275 · CVE-2021-40438 · CVE-2021-41524 · CVE-2021-41773 · CVE-2021-42013 · CVE-2021-43527 · CVE-2021-44224 · CVE-2021-44225 · CVE-2021-44790 · CVE-2021-44906 · CVE-2022-21245 · CVE-2022-21270 · CVE-2022-21303 · CVE-2022-21304 · CVE-2022-21344 · CVE-2022-21367 · CVE-2022-21417 · CVE-2022-21427 · CVE-2022-21444 · CVE-2022-21451 · CVE-2022-21454 · CVE-2022-21460 · CVE-2022-21589 · CVE-2022-21592 · CVE-2022-21595 · CVE-2022-21608 · CVE-2022-21617 · CVE-2022-22719 · CVE-2022-22720 · CVE-2022-22721 · CVE-2022-22822 · CVE-2022-22823 · CVE-2022-22824 · CVE-2022-23471 · CVE-2022-23524 · CVE-2022-23525 · CVE-2022-23526 · CVE-2022-23852 · CVE-2022-23943 · CVE-2022-25147 · CVE-2022-25235 · CVE-2022-25236 · CVE-2022-2526 · CVE-2022-25315 · CVE-2022-26377 · CVE-2022-28330 · CVE-2022-28614 · CVE-2022-28615 · CVE-2022-29167 · CVE-2022-29404 · CVE-2022-30522 · CVE-2022-30556 · CVE-2022-31813 · CVE-2022-3517 · CVE-2022-3564 · CVE-2022-36760 · CVE-2022-37434 · CVE-2022-37436 · CVE-2022-40674 · CVE-2022-41741 · CVE-2022-41742 · CVE-2022-4203 · CVE-2022-4304 · CVE-2022-4450 · CVE-2022-46663 · CVE-2022-4886 · CVE-2023-0215 · CVE-2023-0216 · CVE-2023-0217 · CVE-2023-0286 · CVE-2023-0401 · CVE-2023-0464 · CVE-2023-0465 · CVE-2023-0466 · CVE-2023-0767 · CVE-2023-1255 · CVE-2023-2002 · CVE-2023-20593 · CVE-2023-21830 · CVE-2023-21840 · CVE-2023-21843 · CVE-2023-21912 · CVE-2023-21963 · CVE-2023-21980 · CVE-2023-22025 · CVE-2023-22067 · CVE-2023-22081 · CVE-2023-22652 · CVE-2023-24329 · CVE-2023-25153 · CVE-2023-25173 · CVE-2023-25690 · CVE-2023-2700 · CVE-2023-27522 · CVE-2023-2828 · CVE-2023-28840 · CVE-2023-28841 · CVE-2023-28842 · CVE-2023-2975 · CVE-2023-30079 · CVE-2023-30630 · CVE-2023-3090 · CVE-2023-32067 · CVE-2023-32360 · CVE-2023-32435 · CVE-2023-32439 · CVE-2023-32732 · CVE-2023-3341 · CVE-2023-3390 · CVE-2023-33953 · CVE-2023-34058 · CVE-2023-34059 · CVE-2023-3446 · CVE-2023-34969 · CVE-2023-35001 · CVE-2023-35788 · CVE-2023-3611 · CVE-2023-37450 · CVE-2023-3776 · CVE-2023-3817 · CVE-2023-4004 · CVE-2023-4206 · CVE-2023-4207 · CVE-2023-4208 · CVE-2023-42753 · CVE-2023-4785 · CVE-2023-4807 · CVE-2023-4863 · CVE-2023-5043 · CVE-2023-5129 · CVE-2023-5363 · CVE-2024-20918 · CVE-2024-20919 · CVE-2024-20921 · CVE-2024-20926 · CVE-2024-20932 · CVE-2024-20945 · CVE-2024-20952 · CVE-2024-39511 · CVE-2024-39512 · CVE-2024-39513 · CVE-2024-39514 · CVE-2024-39517 · CVE-2024-39518 · CVE-2024-39519 · CVE-2024-39520 · CVE-2024-39521 · CVE-2024-39522 · CVE-2024-39523 · CVE-2024-39524 · CVE-2024-39528 · CVE-2024-39529 · CVE-2024-39530 · CVE-2024-39531 · CVE-2024-39532 · CVE-2024-39533 · CVE-2024-39535 · CVE-2024-39536 · CVE-2024-39537 · CVE-2024-39538 · CVE-2024-39539 · CVE-2024-39540 · CVE-2024-39541 · CVE-2024-39542 · CVE-2024-39543 · CVE-2024-39545 · CVE-2024-39546 · CVE-2024-39548 · CVE-2024-39549 · CVE-2024-39550 · CVE-2024-39551 · CVE-2024-39553 · CVE-2024-39554 · CVE-2024-39555 · CVE-2024-39556 · CVE-2024-39557 · CVE-2024-39558 · CVE-2024-39559 · CVE-2024-39560 · CVE-2024-39561 · CVE-2024-39565
SSA-389290: SSA-389290: Third-Party Component Vulnerabilities in SINEC INS
CVE-2019-19242 · CVE-2019-19244 · CVE-2019-19317 · CVE-2019-19603 · CVE-2019-19645 · CVE-2019-19646 · CVE-2019-19880 · CVE-2019-19923 · CVE-2019-19924 · CVE-2019-19925 · CVE-2019-19926 · CVE-2020-1971 · CVE-2020-7774 · CVE-2020-8169 · CVE-2020-8177 · CVE-2020-8231 · CVE-2020-8265 · CVE-2020-8284 · CVE-2020-8285 · CVE-2020-8286 · CVE-2020-8287 · CVE-2020-8625 · CVE-2020-9327 · CVE-2020-11655 · CVE-2020-11656 · CVE-2020-13630 · CVE-2020-13631 · CVE-2020-13632 · CVE-2020-13871 · CVE-2020-15358 · CVE-2020-27304 · CVE-2021-3449 · CVE-2021-3450 · CVE-2021-3672 · CVE-2021-3711 · CVE-2021-3712 · CVE-2021-22876 · CVE-2021-22883 · CVE-2021-22884 · CVE-2021-22890 · CVE-2021-22897 · CVE-2021-22898 · CVE-2021-22901 · CVE-2021-22918 · CVE-2021-22921 · CVE-2021-22922 · CVE-2021-22923 · CVE-2021-22924 · CVE-2021-22925 · CVE-2021-22926 · CVE-2021-22930 · CVE-2021-22931 · CVE-2021-22939 · CVE-2021-22940 · CVE-2021-22945 · CVE-2021-22946 · CVE-2021-22947 · CVE-2021-23362 · CVE-2021-23840 · CVE-2021-25214 · CVE-2021-25215 · CVE-2021-25216 · CVE-2021-25219 · CVE-2021-27290 · CVE-2021-32803 · CVE-2021-32804 · CVE-2021-37701 · CVE-2021-37712 · CVE-2021-37713 · CVE-2021-39134 · CVE-2021-39135
SUSE-SU-2022:0704-1: Security update for nodejs8
CVE-2021-23343 · CVE-2021-32803 · CVE-2021-32804 · CVE-2021-3807 · CVE-2021-3918
RHSA-2021:3666: Red Hat Security Advisory: nodejs:14 security and bug fix update
CVE-2021-3672 · CVE-2021-22930 · CVE-2021-22931 · CVE-2021-22939 · CVE-2021-22940 · CVE-2021-23343 · CVE-2021-32803 · CVE-2021-32804
RHSA-2021:3280: Red Hat Security Advisory: rh-nodejs14-nodejs and rh-nodejs14-nodejs-nodemon security update
CVE-2020-7788 · CVE-2020-28469 · CVE-2021-3672 · CVE-2021-22930 · CVE-2021-22931 · CVE-2021-22939 · CVE-2021-22940 · CVE-2021-23343 · CVE-2021-32803 · CVE-2021-32804
openSUSE-SU-2022:0704-1: Security update for nodejs8
CVE-2021-23343 · CVE-2021-32803 · CVE-2021-32804 · CVE-2021-3807 · CVE-2021-3918
SUSE-SU-2022:1717-1: Security update for nodejs10
CVE-2021-23343 · CVE-2021-32803 · CVE-2021-32804 · CVE-2021-3807 · CVE-2021-3918 · CVE-2021-44906 · CVE-2021-44907 · CVE-2022-0235 · CVE-2022-21824
RHSA-2021:4618: Red Hat Security Advisory: Red Hat Advanced Cluster Management 2.4 images and security updates
CVE-2021-3711 · CVE-2021-3712 · CVE-2021-3749 · CVE-2021-23017 · CVE-2021-32626 · CVE-2021-32627 · CVE-2021-32628 · CVE-2021-32672 · CVE-2021-32675 · CVE-2021-32687 · CVE-2021-32690 · CVE-2021-32803 · CVE-2021-32804 · CVE-2021-33623 · CVE-2021-41099
WID-SEC-W-2023-0809: IBM QRadar SIEM: Mehrere Schwachstellen
CVE-2023-22809 · CVE-2022-4883 · CVE-2022-46364 · CVE-2022-46363 · CVE-2022-45143 · CVE-2022-42890 · CVE-2022-4254 · CVE-2022-42252 · CVE-2022-41966 · CVE-2022-41946 · CVE-2022-41704 · CVE-2022-40156 · CVE-2022-40155 · CVE-2022-40154 · CVE-2022-40153 · CVE-2022-40152 · CVE-2022-40150 · CVE-2022-40149 · CVE-2022-37603 · CVE-2022-37601 · CVE-2022-37599 · CVE-2022-37598 · CVE-2022-3676 · CVE-2022-36364 · CVE-2022-36033 · CVE-2022-34917 · CVE-2022-31197 · CVE-2022-31129 · CVE-2022-2964 · CVE-2022-28733 · CVE-2022-2795 · CVE-2022-25927 · CVE-2022-25901 · CVE-2022-25758 · CVE-2022-25647 · CVE-2022-24999 · CVE-2022-24839 · CVE-2022-24823 · CVE-2022-24785 · CVE-2022-23437 · CVE-2022-22971 · CVE-2022-22970 · CVE-2022-21724 · CVE-2022-21628 · CVE-2022-21626 · CVE-2022-21624 · CVE-2022-21619 · CVE-2021-43797 · CVE-2021-42740 · CVE-2021-42581 · CVE-2021-39227 · CVE-2021-3918 · CVE-2021-3807 · CVE-2021-37713 · CVE-2021-37712 · CVE-2021-37701 · CVE-2021-3765 · CVE-2021-37137 · CVE-2021-37136 · CVE-2021-32804 · CVE-2021-32803 · CVE-2021-29060 · CVE-2021-26401 · CVE-2021-25220 · CVE-2021-23450 · CVE-2021-23382 · CVE-2021-23368 · CVE-2021-23364 · CVE-2021-23362 · CVE-2021-23343 · CVE-2021-21409 · CVE-2021-21295 · CVE-2021-21290 · CVE-2020-7764 · CVE-2020-5259 · CVE-2020-24025 · CVE-2020-15366 · CVE-2020-13936 · CVE-2019-6286 · CVE-2019-6284 · CVE-2019-6283 · CVE-2019-10785 · CVE-2018-8036 · CVE-2018-20821 · CVE-2018-20190 · CVE-2018-19839 · CVE-2018-19838 · CVE-2018-19827 · CVE-2018-19797 · CVE-2018-15494 · CVE-2018-11698 · CVE-2018-11694
SUSE-SU-2022:0570-1: Security update for nodejs10
CVE-2021-23343 · CVE-2021-32803 · CVE-2021-32804 · CVE-2021-3807 · CVE-2021-3918 · CVE-2022-21824
RHSA-2026:100741: Red Hat Security Advisory: Red Hat OpenShift Data Foundation 5.0.0 security, enhancement & bug fix update
CVE-2017-16137 · CVE-2020-7598 · CVE-2020-7608 · CVE-2020-7610 · CVE-2020-7788 · CVE-2020-8203 · CVE-2020-8237 · CVE-2020-15168 · CVE-2020-15366 · CVE-2020-28500 · CVE-2021-3807 · CVE-2021-23337 · CVE-2021-23343 · CVE-2021-32640 · CVE-2021-32804 · CVE-2021-37701 · CVE-2021-37712 · CVE-2021-37713 · CVE-2021-43138 · CVE-2021-44906 · CVE-2022-0235 · CVE-2022-3517 · CVE-2022-23539 · CVE-2022-23540 · CVE-2022-23541 · CVE-2022-24785 · CVE-2022-24999 · CVE-2022-25883 · CVE-2022-31129 · CVE-2023-0842 · CVE-2023-45133 · CVE-2024-21538 · CVE-2024-28863 · CVE-2024-29041 · CVE-2024-37890 · CVE-2024-43796 · CVE-2024-43799 · CVE-2024-43800 · CVE-2024-45296 · CVE-2024-45590 · CVE-2024-47764 · CVE-2024-52798 · CVE-2025-5889 · CVE-2025-7339 · CVE-2025-7783 · CVE-2025-8766 · CVE-2025-13465 · CVE-2025-64718 · CVE-2025-65945 · CVE-2025-69873 · CVE-2026-2391 · CVE-2026-2950 · CVE-2026-4800 · CVE-2026-4867 · CVE-2026-12143 · CVE-2026-12590 · CVE-2026-13149 · CVE-2026-23745 · CVE-2026-23950 · CVE-2026-24842 · CVE-2026-26960 · CVE-2026-26996 · CVE-2026-27903 · CVE-2026-27904 · CVE-2026-29786 · CVE-2026-31802 · CVE-2026-33532 · CVE-2026-33750 · CVE-2026-48779 · CVE-2026-53550 · CVE-2026-53655 · CVE-2026-56851 · CVE-2026-59869 · CVE-2026-59871 · CVE-2026-59873 · CVE-2026-59874 · CVE-2026-59875 · CVE-2026-61801 · CVE-2026-69152 · CVE-2026-73566 · CVE-2026-82417 · CVE-2026-84304 · CVE-2026-84375 · CVE-2026-87776 · CVE-2026-90711 · CVE-2026-102276 · CVE-2026-102277 · CVE-2026-102278
ICSA-22-069-09: Siemens SINEC INS
CVE-2019-19242 · CVE-2019-19244 · CVE-2019-19317 · CVE-2019-19603 · CVE-2019-19645 · CVE-2019-19646 · CVE-2019-19880 · CVE-2019-19923 · CVE-2019-19924 · CVE-2019-19925 · CVE-2019-19926 · CVE-2020-1971 · CVE-2020-7774 · CVE-2020-8169 · CVE-2020-8177 · CVE-2020-8231 · CVE-2020-8265 · CVE-2020-8284 · CVE-2020-8285 · CVE-2020-8286 · CVE-2020-8287 · CVE-2020-8625 · CVE-2020-9327 · CVE-2020-11655 · CVE-2020-11656 · CVE-2020-13630 · CVE-2020-13631 · CVE-2020-13632 · CVE-2020-13871 · CVE-2020-15358 · CVE-2020-27304 · CVE-2021-3449 · CVE-2021-3450 · CVE-2021-3672 · CVE-2021-3711 · CVE-2021-3712 · CVE-2021-22876 · CVE-2021-22883 · CVE-2021-22884 · CVE-2021-22890 · CVE-2021-22897 · CVE-2021-22898 · CVE-2021-22901 · CVE-2021-22918 · CVE-2021-22921 · CVE-2021-22922 · CVE-2021-22923 · CVE-2021-22924 · CVE-2021-22925 · CVE-2021-22926 · CVE-2021-22930 · CVE-2021-22931 · CVE-2021-22939 · CVE-2021-22940 · CVE-2021-22945 · CVE-2021-22946 · CVE-2021-22947 · CVE-2021-23362 · CVE-2021-23840 · CVE-2021-25214 · CVE-2021-25215 · CVE-2021-25216 · CVE-2021-25219 · CVE-2021-27290 · CVE-2021-32803 · CVE-2021-32804 · CVE-2021-37701 · CVE-2021-37712 · CVE-2021-37713 · CVE-2021-39134 · CVE-2021-39135
SUSE-SU-2022:0531-1: Security update for nodejs12
CVE-2021-23343 · CVE-2021-32803 · CVE-2021-32804 · CVE-2021-3807 · CVE-2021-3918
RHSA-2021:5086: Red Hat Security Advisory: Red Hat OpenShift Data Foundation 4.9.0 enhancement, security, and bug fix update
CVE-2020-8565 · CVE-2021-32803 · CVE-2021-32804 · CVE-2021-33195 · CVE-2021-33197 · CVE-2021-33198 · CVE-2021-34558 · CVE-2021-37701 · CVE-2021-37712
WID-SEC-W-2022-0092: Node.js: Mehrere Schwachstellen ermöglichen Manipulation von Dateien
CVE-2021-32803 · CVE-2021-32804 · CVE-2021-37701 · CVE-2021-37712 · CVE-2021-37713 · CVE-2021-39134 · CVE-2021-39135
WID-SEC-W-2023-0856: IBM QRadar SIEM: Mehrere Schwachstellen
CVE-2020-11655 · CVE-2020-11656 · CVE-2020-13434 · CVE-2020-13435 · CVE-2020-13630 · CVE-2020-13631 · CVE-2020-13632 · CVE-2020-15168 · CVE-2020-15358 · CVE-2020-28469 · CVE-2020-7788 · CVE-2020-9327 · CVE-2021-22918 · CVE-2021-22930 · CVE-2021-22931 · CVE-2021-22939 · CVE-2021-22940 · CVE-2021-23343 · CVE-2021-23362 · CVE-2021-27290 · CVE-2021-32803 · CVE-2021-32804 · CVE-2021-33502 · CVE-2021-3672 · CVE-2021-37701 · CVE-2021-37712 · CVE-2021-37713 · CVE-2021-3807 · CVE-2021-3918
openSUSE-SU-2022:0657-1: Security update for nodejs12
CVE-2021-23343 · CVE-2021-32803 · CVE-2021-32804 · CVE-2021-3807 · CVE-2021-3918
openSUSE-SU-2022:0715-1: Security update for nodejs14
CVE-2021-23343 · CVE-2021-32803 · CVE-2021-32804 · CVE-2021-3807 · CVE-2021-3918
RHSA-2021:3639: Red Hat Security Advisory: nodejs:12 security and bug fix update
CVE-2021-3672 · CVE-2021-22918 · CVE-2021-22930 · CVE-2021-22931 · CVE-2021-22939 · CVE-2021-22940 · CVE-2021-23343 · CVE-2021-23362 · CVE-2021-27290 · CVE-2021-32803 · CVE-2021-32804
SUSE-SU-2022:0563-1: Security update for nodejs8
CVE-2021-23343 · CVE-2021-32803 · CVE-2021-32804 · CVE-2021-3807 · CVE-2021-3918
- Source published
- Aug 3, 2021, 7:10:12 PM (timezone not stated)
- Source modified
- Aug 3, 2024, 11:33:56 PM (timezone not stated)
- Saved here
- 24 Nov 2026 09:27:03 UTC
- Source terms
- ENISA EUVD · source terms and attribution apply
Original source record · Cite this exact observation · Complete original publisher JSON
Source: euvd · ENISA EUVD · source terms and attribution apply. The publisher's wording is preserved. ChangeIntel groups the information and labels changes. The JSON record includes additional source fields.
EUVD CVSS 3.1 · 8.2 CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N
nvd · CVE-2021-32804
PublishedThe 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.
Additional publisher context
NVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON.
Source analysis status: Modified
Weakness classifications: CWE-22
Original publisher date fields
published: 2021-08-03T19:15:08.410
lastModified: 2026-06-17T03:53:39.760
4 source CPE criteria · context only
- cpe:2.3:a:tar_project:tar:*:*:*:*:*:node.js:*:*
- cpe:2.3:a:oracle:graalvm:20.3.3:*:*:*:enterprise:*:*:*
- cpe:2.3:a:oracle:graalvm:21.2.0:*:*:*:enterprise:*:*:*
- cpe:2.3:a:siemens:sinec_infrastructure_network_services:*:*:*:*:*:*:*:*
The original JSON retains the logical configuration operators, exclusions and version bounds.
- Source published
- 3 Aug 2021 19:15:08 UTC
- Source modified
- 17 Jun 2026 03:53:39 UTC
- Saved here
- 24 Oct 2026 18:17:28 UTC
- Source terms
- NIST NVD usage terms; underlying source attribution retained
Original source record · Cite this exact observation · Complete original publisher JSON
Source: nvd · NIST NVD usage terms; underlying source attribution retained. The publisher's wording is preserved. ChangeIntel groups the information and labels changes. The JSON record includes additional source fields.
CVSS 3.1 · [email protected] · Secondary · 8.2 CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N
CVSS 3.1 · [email protected] · Primary · 8.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H
CVSS 2.0 · [email protected] · Primary · 5.8 AV:N/AC:M/Au:N/C:N/I:P/A:P
osv · GHSA-3jfq-g458-7qm9
Published### Impact Arbitrary File Creation, Arbitrary File Overwrite, Arbitrary Code Execution `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. ### Patches 3.2.2 || 4.4.14 || 5.0.6 || 6.1.1 NOTE: an adjacent issue [CVE-2021-32803](https://github.com/npm/node-tar/security/advisories/GHSA-r628-mhmh-qjhw) affects this release level. Please ensure you update to the latest patch levels that address CVE-2021-32803 as well if this adjacent issue affects your `node-tar` use case. ### Workarounds 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. ```js const path = require('path') const tar = require('tar') tar.x({ file: 'archive.tgz', // either add this function... onentry: (entry) => { if (path.isAbsolute(entry.path)) { entry.path = sanitizeAbsolutePathSomehow(entry.path) entry.absolute = path.resolve(entry.path) } }, // or this one filter: (file, entry) => { if (path.isAbsolute(entry.path)) { return false } else { return true } } }) ``` Users are encouraged to upgrade to the latest patch versions, rather than attempt to sanitize tar input themselves.
- Source published
- 3 Aug 2021 19:06:36 UTC
- Source modified
- 8 Jul 2026 06:28:51 UTC
- Saved here
- 24 Oct 2026 13:17:17 UTC
- Source terms
- GitHub Advisory Database · CC-BY-4.0
Original source record · Cite this exact observation · Complete original publisher JSON
Source: osv · GitHub Advisory Database · CC-BY-4.0. The publisher's wording is preserved. ChangeIntel groups the information and labels changes. The JSON record includes additional source fields.
CVSS_V3 · CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N
Publisher rating · HIGH