Affected versions
Ubuntu18.04:LTS/node-tar
- Affected versions
- * || =2.2.1-1
- Fixed version
- Not reported
Ubuntu22.04:LTS/node-tar
- Affected versions
- Unknown
- Fixed version
- Not reported
Ubuntu24.04:LTS/node-tar
- Affected versions
- Unknown
- Fixed version
- Not reported
Ubuntu26.04:LTS/node-tar
- Affected versions
- Unknown
- Fixed version
- Not reported
Ubuntu26.10/node-tar
- Affected versions
- Unknown
- Fixed version
- Not reported
UbuntuPro:14.04:LTS/node-tar
- Affected versions
- Unknown
- Fixed version
- Not reported
UbuntuPro:16.04:LTS/node-tar
- Affected versions
- Unknown
- Fixed version
- Not reported
UbuntuPro:20.04:LTS/node-tar
- Affected versions
- * || =4.4.10+ds1-2 || =4.4.10+ds1-2ubuntu1 || =4.4.10+ds1-2ubuntu1+esm1
- Fixed version
- Not reported
Description
node-tar is a tar archive manipulation library for Node.js. Prior to 7.5.21, node-tar's filesFilter in src/list.ts uses the recursive mapHas helper to walk an archive entry path upward with path.dirname() and no segment cap when tar.t(...) or tar.x(...) receives a non-empty member-selection list. A crafted GNU L or PAX x long-path header with thousands of slash-separated segments reaches this.filter(entry.path, entry) in Parser[CONSUMEHEADER] in src/parse.ts before Unpack[CHECKPATH] applies maxDepth, causing an uncatchable RangeError stack overflow that terminates asynchronous and streaming Node.js consumers. This issue is fixed in version 7.5.21.

