{"id":"CVE-2026-59874","published":"2026-07-08T15:23:47Z","modified":"2026-07-08T17:00:42Z","title":"node-tar: Negative tar entry size causes infinite loop in archive replace","vendor":"isaacs","product":"node-tar","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.7,"severity":"HIGH","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00644,"percentile":0.45433,"provenance":"source"},"cwes":[{"id":"CWE-835","name":"Loop with Unreachable Exit Condition"}],"references":[{"url":"https://github.com/isaacs/node-tar/security/advisories/GHSA-8x88-c5mf-7j5w","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/isaacs/node-tar/commit/9e78bf058b2c22dd4d52e00d8922d5c06fc2f7b5","tags":["x_refsource_MISC"]},{"url":"https://github.com/isaacs/node-tar/releases/tag/v7.5.18","tags":["x_refsource_MISC"]}],"priority":{"score":15.2,"factors":[{"name":"EPSS percentile","points":9.09},{"name":"CVSS severity","points":6.09}]},"vendorSlug":"isaacs","affectedVersions":[{"vendor":"isaacs","product":"node-tar","versions":["< 7.5.18"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2026-07-08T16:51:08.126808Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"tar","vulnerableRanges":["<7.5.18"],"patched":["7.5.18"],"from":["GHSA-8x88-c5mf-7j5w"],"provenance":"source"}],"summary":{"text":"The node-tar library for Node.js, specifically its tar.replace function, contains a flaw where a tar header with a valid checksum but a negative base-256 encoded entry size causes the archive scanner to loop indefinitely on the same header. An attacker who can supply a crafted tar archive to a process that calls tar.replace can cause it to stop making progress, with the effect limited to availability.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:36:32Z"},"euvd":{"id":"EUVD-2026-42306","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-isaacs-node-tar-cve-2026-23745","parents":[{"from":"CVE-2026-59875","to":"CVE-2026-59874","relation":"successor","confidence":"high","kind":"lineage","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"npm:tar","fromFixed":"7.5.17","toFixed":"7.5.18","daysApart":0},{"kind":"same-code","provenance":"machine","files":["src/pax.ts"],"commits":["https://github.com/isaacs/node-tar/commit/9e78bf058b2c22dd4d52e00d8922d5c06fc2f7b5","https://github.com/isaacs/node-tar/commit/7a635c29f5edbf083557374d43984273ecfed5b3"],"basis":"rarely changed file"}]},{"from":"CVE-2026-59871","to":"CVE-2026-59874","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/pax.ts"],"commits":["https://github.com/isaacs/node-tar/commit/e02a4e9e013c4be95302e2eb2047a942b883c27b","https://github.com/isaacs/node-tar/commit/9e78bf058b2c22dd4d52e00d8922d5c06fc2f7b5"],"basis":"rarely changed file"}]}],"packageHistory":[{"cve":"CVE-2026-53655","published":"2026-06-22","fixed":"7.5.16","kev":false},{"cve":"CVE-2026-59875","published":"2026-07-08","fixed":"7.5.17","kev":false},{"cve":"CVE-2026-59871","published":"2026-07-08","fixed":"7.5.18","kev":false},{"cve":"CVE-2026-59874","published":"2026-07-08","fixed":"7.5.18","kev":false},{"cve":"CVE-2026-59873","published":"2026-07-08","fixed":"7.5.19","kev":false},{"cve":"CVE-2026-73566","published":"2026-08-13","fixed":"7.5.21","kev":false}],"package":"npm:tar"}}