AI and machine learning TorchServe servers vulnerable to malware attacks
A vulnerability chain comprising three distinct flaws can be used to compromise vulnerable TorchServer servers, researchers have said, warning that if leveraged, the flaws can be used to take over the target endpoint and even run malware.
These are the findings of cybersecurity experts Oligo Security, which dubbed the three flaws “ShellTorch”.
TorchServe is a tool for serving PyTorch models in production, and is used by developers who train and build AI models, including academic researchers and large tech corporations (think Amazon or Google). Vulnerable servers include all versions between 0.3.0 and 0.8.1.
Protecting the premises
The first vulnerability is an unauthenticated management interface API flaw, allowing the attackers to make external requests, including uploading malicious models. The second flaw is tracked as CVE-2023-43654, a remote server-side request forgery that can be leveraged for remote code execution (RCE), while the third is tracked as CVE-2022-1471, a Java deserialization problem – also allowing for RCE.
Eagle-eyed readers might notice that the third flaw was actually discovered last year, and was just being used in this particular scenario.
“Once an attacker can breach an organization’s network by executing code on its PyTorch server, they can use it as an initial foothold to move laterally to infrastructure in order to launch even more impactful attacks, especially in cases where proper restrictions or standard controls are not present,” Oligo said. Apparently, there are “tens of thousands” of vulnerable, internet-connected endpoints out there.
To make sure your networks remain secure, make sure to apply the latest patch and bring your TorchServer instances to version 0.8.2. You should also configure the management console properly, which means setting the management_address to http://127.0.0.1:8081 in the config.properties file. Also, make sure to update the allowed_urls list of trusted domains in the config.properties file, to make sure the server only grabs good models.
Via BleepingComputer
More from TechRadar Pro
A vulnerability chain comprising three distinct flaws can be used to compromise vulnerable TorchServer servers, researchers have said, warning that if leveraged, the flaws can be used to take over the target endpoint and even run malware. These are the findings of cybersecurity experts Oligo Security, which dubbed the three…
Recent Posts
- WiiM expands its whole-home ecosystem with a new soundbar
- You can make the hyper-violence in Marvel’s Wolverine more PG-13, if you want to
- Best Buy launches a huge Sonos sale ahead of the World Cup — here are the 7 top-rated soundbars and speakers I’d buy
- Nvidia is already planning N2X and N3X chips — the goal is the Star Trek computer
- A British MP is suing to see if xAI is legally responsible for the images Grok produces
Archives
- June 2026
- May 2026
- April 2026
- March 2026
- February 2026
- January 2026
- December 2025
- November 2025
- October 2025
- September 2025
- August 2025
- July 2025
- June 2025
- May 2025
- April 2025
- March 2025
- February 2025
- January 2025
- December 2024
- November 2024
- October 2024
- September 2024
- August 2024
- July 2024
- June 2024
- May 2024
- April 2024
- March 2024
- February 2024
- January 2024
- December 2023
- November 2023
- October 2023
- September 2023
- August 2023
- July 2023
- June 2023