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
- Balatro has had its PEGI 18 age rating overturned following appeal: ‘I hope this change will allow developers to create without being unfairly punished’
- Three years later, the Steam Deck has dominated handheld PC gaming
- Google Gemini’s AI coding tool is now free for individual users
- Attention, Kindle owners –today is your last chance to download backups of your ebooks
- Scooby-Doo is a good movie with a bad Rotten Tomatoes score – here’s why you should ignore the critics and watch it before it leaves Netflix
Archives
- 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
- May 2021
- April 2021
- March 2021
- February 2021
- January 2021
- December 2020
- November 2020
- October 2020
- September 2020
- August 2020
- July 2020
- June 2020
- May 2020
- April 2020
- March 2020
- February 2020
- January 2020
- December 2019
- November 2019
- September 2018
- October 2017
- December 2011
- August 2010