8.7High

CVE-2026-59874node-tar: Negative tar entry size causes infinite loop in archive replace

isaacs node-tar Published: (4 months ago)

Description

node-tar is a tar archive manipulation library for Node.js. Prior to 7.5.18, tar.replace accepts a checksum-valid tar header with a negative base-256 encoded entry size, causing the archive scanner to make no progress while repeatedly parsing the same header. This issue is fixed in version 7.5.18.

Weakness (CWE): CWE-835

Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.

Affected products and versions

VendorProductVersions
isaacs node-tar < 7.5.18
isaacs tar < 7.5.18

References and patches

CPE matches (NVD) (1)

  • cpe:2.3:a:isaacs:tar:*:*:*:*:*:node.js:*:* < 7.5.18