{"id":"CVE-2024-28863","published":"2024-03-21T22:10:23Z","modified":"2025-02-13T17:47:34Z","title":"node-tar vulnerable to denial of service while parsing a tar file due to lack of folders count validation","vendor":"isaacs","product":"node-tar","tier":"tail","description":{"text":"node-tar is a Tar for Node.js. node-tar prior to version 6.2.1 has no limit on the number of sub-folders created in the folder creation process. An attacker who generates a large number of sub-folders can consume memory on the system running node-tar and even crash the Node.js client within few seconds of running it using a path with too many sub-folders inside. Version 6.2.1 fixes this issue by preventing extraction in excessively deep sub-folders.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01075,"percentile":0.64447,"provenance":"source"},"cwes":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption"},{"id":"CWE-770","name":"Allocation of Resources Without Limits or Throttling"}],"references":[{"url":"https://github.com/isaacs/node-tar/security/advisories/GHSA-f5x3-32g6-xq36","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/isaacs/node-tar/commit/fe8cd57da5686f8695415414bda49206a545f7f7","tags":["x_refsource_MISC"]},{"url":"https://security.netapp.com/advisory/ntap-20240524-0005/","tags":[]}],"priority":{"score":17.4,"factors":[{"name":"EPSS percentile","points":12.89},{"name":"CVSS severity","points":4.55}]},"vendorSlug":"isaacs","affectedVersions":[{"vendor":"isaacs","product":"node-tar","versions":["< 6.2.1"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2024-03-22T14:55:49.306359Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"node-tar","vulnerableRanges":["<6.2.1"],"patched":["6.2.1"],"from":["GHSA-f5x3-32g6-xq36"],"provenance":"source"},{"ecosystem":"npm","package":"tar","vulnerableRanges":["<6.2.1"],"patched":["6.2.1"],"from":["GHSA-f5x3-32g6-xq36"],"provenance":"source"}],"summary":{"text":"A missing limit on the number of nested sub-folders created during extraction affects isaacs' node-tar, a Tar library for Node.js. An attacker who supplies a tar archive containing a very large number of nested sub-folders can exhaust memory and crash the Node.js process that is extracting it, which requires no privileges but does require a victim to process the crafted file.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:06:47Z"},"euvd":{"id":"EUVD-2024-0909","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-npm-node-tar-cve-2018-20834","parents":[{"from":"CVE-2021-32803","to":"CVE-2024-28863","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["lib/unpack.js"],"commits":["https://github.com/isaacs/node-tar/commit/46fe35083e2676e31c4e0a81639dce6da7aaa356","https://github.com/isaacs/node-tar/commit/fe8cd57da5686f8695415414bda49206a545f7f7"],"basis":"shared function","functions":["Unpack"]}]},{"from":"CVE-2021-37712","to":"CVE-2024-28863","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["lib/unpack.js"],"commits":["https://github.com/isaacs/node-tar/commit/1739408d3122af897caefd09662bce2ea477533b","https://github.com/isaacs/node-tar/commit/2f1bca027286c23e110b8dfc7efc10756fa3db5a","https://github.com/isaacs/node-tar/commit/fe8cd57da5686f8695415414bda49206a545f7f7"],"basis":"shared function","functions":["Unpack"]}]},{"from":"CVE-2021-37713","to":"CVE-2024-28863","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["lib/unpack.js"],"commits":["https://github.com/isaacs/node-tar/commit/52b09e309bcae0c741a7eb79a17ef36e7828b946","https://github.com/isaacs/node-tar/commit/82eac952f7c10765969ed464e549375854b26edc","https://github.com/isaacs/node-tar/commit/fe8cd57da5686f8695415414bda49206a545f7f7"],"basis":"shared function","functions":["Unpack"]}]}]}}