CVE-2025-64118
JavaScript vulnerability analysis and mitigation

Overview

node-tar is a Tar utility for Node.js that was found to contain a vulnerability (CVE-2025-64118) in version 7.5.1. The vulnerability was discovered on October 27, 2025, and involves a race condition that can lead to uninitialized memory exposure when using the .t (list) function with { sync: true } option. This occurs specifically when a tar file is changed on disk to a smaller size while being read (GitHub Advisory).

Technical details

The vulnerability is caused by a race condition in the synchronous listing functionality where uninitialized memory contents are returned if the tar file is modified during processing. The issue occurs specifically when using .t (aka .list) with { sync: true } option. The vulnerability has been assigned a CVSS v4.0 score of 6.1 (Medium) with the vector string 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. The bug was introduced in commit 5330eb0 and has been classified under CWE-362 (Concurrent Execution using Shared Resource with Improper Synchronization) and CWE-367 (Time-of-check Time-of-use Race Condition) (NVD).

Impact

The vulnerability can expose process memory, potentially revealing sensitive data such as unrelated file contents, environment variables, and passwords. The exposure occurs when an attacker can reduce the file size to a boundary between a tar header and body block during the critical time window between the tar archive file size being read via stat and the tar archive parser reaching the truncated entry (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been fixed in version 7.5.2. Users are advised to upgrade to this version or use versions prior to 7.5.1, as they are not affected by this vulnerability. The fix ensures proper handling of file size changes during processing (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-62726HIGH8.8
  • JavaScriptJavaScript
  • n8n
NoYesOct 30, 2025
CVE-2025-59837HIGH7.2
  • JavaScriptJavaScript
  • astro
NoYesOct 28, 2025
GHSA-5jpx-9hw9-2fx4MEDIUM6.9
  • JavaScriptJavaScript
  • next-auth
NoYesOct 29, 2025
CVE-2025-60542MEDIUM6.5
  • JavaScriptJavaScript
  • typeorm
NoYesOct 29, 2025
CVE-2025-64118MEDIUM6.1
  • JavaScriptJavaScript
  • tar
NoYesOct 30, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management