CyberRota Analysis
AI-GeneratedThe Nx self-hosted HTTP remote cache is vulnerable to arbitrary file write due to improper extraction of downloaded cache artifacts, allowing a malicious remote cache server to potentially execute arbitrary code on the host machine. This vulnerability affects versions 20.8.0 to 22.7.6 and requires immediate attention from organizations using a self-hosted remote cache configuration, as it poses a significant risk of remote code execution. Users should upgrade to versions 22.7.7 or 23.0.2 to mitigate this risk.
Public Exploit Signal
A public exploit, PoC, GitHub repository or Metasploit reference was detected for this CVE.
Note: these links are listed for security research and verification purposes only.
Original NVD Description
Nx is a monorepo solution for TypeScript and polyglot codebases. From version 20.8.0 until 22.7.7 and 23.0.2, the Nx self-hosted HTTP remote cache extracts downloaded cache artifacts without constraining where files are written. A malicious or on-path (MITM) remote cache server can return a crafted tar archive whose entries escape the cache directory and write to arbitrary locations on the machine running Nx, which can be escalated to remote code execution. Nx's default local cache and Nx Cloud are not affected; only workspaces configured to use a self-hosted remote cache are affected. This issue is fixed in versions 22.7.7 and 23.0.2.