tar: node-tar PathReservations.getDirs() quadratic memory amplification via unbounded symlink linkpath depth — uncatchable OOM process kill
High severity. CVE-2026-140230. ### Summary node-tar's PathReservations.getDirs() materializes every parent-directory prefix of a given path as individual strings — an O(N²) operation. The existing maxDepth guard applies only to entry.path, not to entry.linkpath. A crafted archive with a shallow entry.path and a deepl…
CVEs in this story
Timeline 6
Every report on this story, plus its CVEs, exploit code and scanner detection, newest first.
Today
- Researchtar: node-tar: Denial of service via unbounded memory allocation bypassing maxDecompressionRatioGitHub Advisories · 00:16 UTC
Yesterday
Wed, Dec 2, 2026
- Researchtar: node-tar PathReservations.getDirs() quadratic memory amplification via unbounded symlink linkpath depth — uncatchable OOM process killGitHub Advisories · 18:33 UTC
Tue, Dec 1, 2026
- CVECVE-2026-140230 published (CVSS 7.1)CVE Program · 16:52 UTC
- CVECVE-2026-140229 published (CVSS 7.1)CVE Program · 16:48 UTC