{"id":"CVE-2025-64118","published":"2025-10-30T17:50:20Z","modified":"2025-10-30T18:42:19Z","title":"node-tar vulnerable to race condition leading to uninitialized memory exposure","vendor":"isaacs","product":"node-tar","tier":"tail","description":{"text":"node-tar is a Tar for Node.js. In 7.5.1, using .t (aka .list) with { sync: true } to read tar entry contents returns uninitialized memory contents if tar file was changed on disk to a smaller size while being read. This vulnerability is fixed in 7.5.2.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.1,"severity":"MEDIUM","version":"4.0","vector":"CVSS:4.0/AV:L/AC:H/AT:P/PR:L/UI:P/VC:H/VI:L/VA:L/SC:H/SI:H/SA:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00147,"percentile":0.01976,"provenance":"source"},"cwes":[{"id":"CWE-362","name":"Concurrent Execution using Shared Resource with Improper Synchronization"},{"id":"CWE-367","name":"Time-of-check Time-of-use (TOCTOU) Race Condition"}],"references":[{"url":"https://github.com/isaacs/node-tar/security/advisories/GHSA-29xp-372q-xqph","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/isaacs/node-tar/issues/445","tags":["x_refsource_MISC"]},{"url":"https://github.com/isaacs/node-tar/pull/446","tags":["x_refsource_MISC"]},{"url":"https://github.com/isaacs/node-tar/commit/5330eb04bc43014f216e5c271b40d5c00d45224d","tags":["x_refsource_MISC"]}],"priority":{"score":4.7,"factors":[{"name":"EPSS percentile","points":0.4},{"name":"CVSS severity","points":4.27}]},"vendorSlug":"isaacs","affectedVersions":[{"vendor":"isaacs","product":"node-tar","versions":["= 7.5.1"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2025-10-30T18:41:54.563697Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"tar","vulnerableRanges":[">=7.5.1, <7.5.2"],"patched":["7.5.2"],"from":["GHSA-29xp-372q-xqph"],"provenance":"source"}],"summary":{"text":"The node-tar library for Node.js contains a race condition flaw in its tar entry reading path: when the .t (.list) method is called with { sync: true } and the tar file is shrunk on disk while it is being read, the returned entry contents can include uninitialized memory. An attacker able to modify the tar file on the local system during the read, with low privileges and requiring some user interaction, could expose uninitialized memory contents, affecting confidentiality with limited integrity and availability impact and high attack complexity.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:20:08Z"},"euvd":{"id":"EUVD-2025-37034","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-isaacs-node-tar-cve-2025-64118","children":[{"from":"CVE-2025-64118","to":"CVE-2026-73566","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/list.ts"],"commits":["https://github.com/isaacs/node-tar/commit/5330eb04bc43014f216e5c271b40d5c00d45224d","https://github.com/isaacs/node-tar/commit/5e1a8e638600d3c3a2969b4de6a6ec44fa8d74c9","https://github.com/isaacs/node-tar/commit/631ae59121bf8fc8a22bbae35f074cb9b789cd4a"],"basis":"rarely changed file"}]}],"packageHistory":[{"cve":"CVE-2021-37712","published":"2021-08-31","fixed":"6.1.9","kev":false},{"cve":"CVE-2021-37713","published":"2021-08-31","fixed":"6.1.9","kev":false},{"cve":"CVE-2024-28863","published":"2024-03-21","fixed":"6.2.1","kev":false},{"cve":"CVE-2025-64118","published":"2025-10-30","fixed":"7.5.2","kev":false},{"cve":"CVE-2026-23745","published":"2026-01-16","fixed":"7.5.3","kev":false,"link":{"from":"CVE-2025-64118","to":"CVE-2026-23745","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:tar","fromFixed":"7.5.2","toFixed":"7.5.3","daysApart":78}]}},{"cve":"CVE-2026-23950","published":"2026-01-20","fixed":"7.5.4","kev":false},{"cve":"CVE-2026-24842","published":"2026-01-28","fixed":"7.5.7","kev":false}],"package":"npm:tar"}}