A trio of critical security issues  , collectively known as ShellTorch  , have been discovered in PyTorch’s TorchServe component. These vulnerabilities, identified as CVE-2023-43654 and CVE-2023-1471 , pose a significant threat to vulnerable TorchServe servers, potentially allowing cyber attackers to execute arbitrary code on affected systems .
The first flaw is an unauthenticated management interface API flaw that enables external requests , including the uploading of malicious models. The second flaw is a remote server-side request forgery (SSRF) vulnerability, which allows for remote code execution (RCE) . The third flaw is a Java deserialization problem that also allows for RCE . Exploiting these vulnerabilities could lead to unauthorized access , the insertion of malicious AI models  , and even full server takeover . It is estimated that there are tens of thousands of vulnerable , internet-connected endpoints . Major companies such as Microsoft , Intel , Google   , Walmart , and Amazon , including their AI infrastructure servers , have been found to be affected by ShellTorch.
To mitigate these risks , organizations are advised to update their TorchServe instances to version 0.8.2, released in August . Additionally, properly configuring the management console and updating the list of trusted domains in the config.properties file is recommended to ensure the server only accepts legitimate models . Regular patching and updating of open-source packages are crucial to maintaining the security and integrity of critical systems . Amazon and Meta have released an advisory recommending the update to TorchServe version 0.8.2 to address these vulnerabilities . The maintainers of PyTorch have collaborated with Oligo Security for the responsible disclosure of these issues . Users are advised to update their systems and restrict the configuration file to secure networks .
The ShellTorch vulnerabilities pose a significant risk to TorchServe servers, potentially leading to unauthorized access and the compromise of critical systems. By promptly updating to TorchServe version 0.8.2 and implementing proper configuration measures, organizations can mitigate these risks. However, the widespread impact of ShellTorch, affecting major companies and their AI infrastructure servers, highlights the importance of regular patching and updating of open-source packages. Moving forward, it is crucial for organizations to prioritize the security and integrity of their systems to prevent similar vulnerabilities from being exploited.