CyberRota Analysis
AI-GeneratedThe vulnerability allows attackers to execute arbitrary operating system commands on macOS by sending a specially crafted URL to the Rsbuild server configuration. The flaw arises from the improper handling of shell metacharacters in the openBrowser() function, which can lead to command injection. Organizations using Rsbuild versions prior to 2.0.9 should prioritize patching this vulnerability to mitigate the risk of unauthorized command execution.
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
Rsbuild before 2.0.9 contains a command injection vulnerability that allows attackers to execute arbitrary OS commands by supplying a crafted URL containing shell metacharacters to the server.open configuration on macOS. The openBrowser() function in packages/core/src/server/open.ts passes the URL through encodeURI() before interpolating it into a shell command executed via child_process.exec(), but because encodeURI() does not encode dollar signs, parentheses, or semicolons, embedded shell metacharacters are evaluated by /bin/sh, enabling arbitrary command execution.