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
- ChatGPT faceplants while translating Crunchyroll anime, and some viewers are demanding human localization
- Is the world’s largest CCTV surveillance camera vendor going to be the next Huawei? Canada bans Hikvision amidst security fears
- NYT Wordle today — answer and my hints for game #1475, Thursday, July 3
- Racist videos made with AI are going viral on TikTok
- This is probably the most powerful rugged laptop ever built – and you can even add a barcode scanner
Archives
- 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
- May 2023
- April 2023
- March 2023
- February 2023
- January 2023
- December 2022
- November 2022
- October 2022
- September 2022
- August 2022
- July 2022
- June 2022
- May 2022
- April 2022
- March 2022
- February 2022
- January 2022
- December 2021
- November 2021
- October 2021
- September 2021
- August 2021
- July 2021
- June 2021