CVE-2025-64118
node-tar: tar: node-tar: Information disclosure via reading a truncated tar file
Severity
ModerateRed Hat Product Security
CVSS 3.1
Review impact separately from score.
Published · October 31, 2025
Updated · October 27, 2026
Description
A flaw was found in node-tar, a Tar utility for Node.js. This vulnerability allows a local attacker to potentially disclose sensitive information. When the .t (or .list) function is used with { sync: true } to read tar entry contents, and the tar file is concurrently modified on disk to a smaller size, the function may return uninitialized memory contents. This could lead to the exposure of arbitrary data.
Statement
This vulnerability is rated Moderate for Red Hat products because it affects node-tar when synchronously reading tar entry contents from a file that is concurrently modified to a smaller size. This race condition can lead to the exposure of uninitialized memory. Exploitation requires an attacker to control the tar file and time its modification during a synchronous read operation.
CVSS score applicability
The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
Mitigation
Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.
CVSS / CWE
CVSS 3.1 · 4.7CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N
CWE-367 · Time-of-check Time-of-use (TOCTOU) Race Condition