Uncontrolled Recursionorg.mvnpm:tar is a full-featured Tar for Node.js.
Affected versions of this package are vulnerable to Uncontrolled Recursion in the mapHas helper and filesFilter function in src/list.ts, which walk an entry path upward with one path.dirname() call per recursion and no segment cap. An attacker can terminate the Node process with an uncatchable stack-overflow RangeError by supplying a tar archive whose GNU L or PAX x long-path header carries tens of thousands of /-separated segments, when that archive is listed or extracted with a member-selection filter. Exploitation requires the application to call tar.t() or tar.x() with a non-empty member-selection list on an untrusted archive, and on async or streaming consumers the error is uncatchable while synchronous APIs can catch it.
How to fix Uncontrolled Recursion? Upgrade org.mvnpm:tar to version 7.5.21 or higher.
| |
Uncaught Exceptionorg.mvnpm:tar is a full-featured Tar for Node.js.
Affected versions of this package are vulnerable to Uncaught Exception through improper handling of NUL bytes in the src/pax.ts file. An attacker can cause the application to terminate unexpectedly by providing a crafted archive containing NUL bytes in PAX path or linkpath records, which leads to an uncaught exception when these values are passed to filesystem operations.
How to fix Uncaught Exception? Upgrade org.mvnpm:tar to version 7.5.17 or higher.
| |
Allocation of Resources Without Limits or Throttlingorg.mvnpm:tar is a full-featured Tar for Node.js.
Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling due to the lack of enforced upper bounds on total decompressed data, entry counts, or decompression ratio in extraction and parsing paths such as src/extract.ts. An attacker can exhaust disk space and CPU resources by submitting a small crafted gzip archive with a high decompression ratio.
How to fix Allocation of Resources Without Limits or Throttling? Upgrade org.mvnpm:tar to version 7.5.19 or higher.
| |
Incorrect Type Conversion or Castorg.mvnpm:tar is a full-featured Tar for Node.js.
Affected versions of this package are vulnerable to Incorrect Type Conversion or Cast via the src/pax.ts file. An attacker can cause a process crash by providing all-digit PAX path or linkpath values that are coerced to JavaScript numbers, leading to a TypeError during downstream path handling.
How to fix Incorrect Type Conversion or Cast? Upgrade org.mvnpm:tar to version 7.5.19 or higher.
| |
Infinite looporg.mvnpm:tar is a full-featured Tar for Node.js.
Affected versions of this package are vulnerable to Infinite loop via the replace method. An attacker can cause the archive scanner to enter an infinite loop by providing a tar header with a negative base-256 encoded entry size.
How to fix Infinite loop? Upgrade org.mvnpm:tar to version 7.5.19 or higher.
| |
Interpretation Conflictorg.mvnpm:tar is a full-featured Tar for Node.js.
Affected versions of this package are vulnerable to Interpretation Conflict due to improper handling of PAX extended header size overrides in intermediary metadata headers. An attacker can cause inconsistent archive parsing results between different tar implementations by crafting a malicious tar archive that desynchronizes the parser's interpretation, potentially hiding files from scanners or extractors that rely on different tools.
How to fix Interpretation Conflict? Upgrade org.mvnpm:tar to version 7.5.16 or higher.
| |
Symlink Attackorg.mvnpm:tar is a full-featured Tar for Node.js.
Affected versions of this package are vulnerable to Symlink Attack via tar.x() extraction, which allows an attacker to overwrite arbitrary files outside the intended extraction directory with a drive-relative symlink target - like C:../../../target.txt.
How to fix Symlink Attack? Upgrade org.mvnpm:tar to version 7.5.11 or higher.
| |
Symlink Attackorg.mvnpm:tar is a full-featured Tar for Node.js.
Affected versions of this package are vulnerable to Symlink Attack exploitable via stripAbsolutePath(), used by the Unpack class. An attacker can overwrite arbitrary files outside the intended extraction directory by including a hardlink whose linkpath uses a drive-relative path such as C:../target.txt in a malicious tar.
How to fix Symlink Attack? Upgrade org.mvnpm:tar to version 7.5.10 or higher.
| |
Directory Traversalorg.mvnpm:tar is a full-featured Tar for Node.js.
Affected versions of this package are vulnerable to Directory Traversal via the extract() function. An attacker can read or write files outside the intended extraction directory by causing the application to extract a malicious archive containing a chain of symlinks leading to a hardlink, which bypasses path validation checks.
How to fix Directory Traversal? Upgrade org.mvnpm:tar to version 7.5.9 or higher.
| |