AI and machine learning TorchServe servers vulnerable to malware attacks

A white padlock on a dark digital background.
(Image credit: Shutterstock.com)

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

Sead is a seasoned freelance journalist based in Sarajevo, Bosnia and Herzegovina. He writes about IT (cloud, IoT, 5G, VPN) and cybersecurity (ransomware, data breaches, laws and regulations). In his career, spanning more than a decade, he’s written for numerous media outlets, including Al Jazeera Balkans. He’s also held several modules on content writing for Represent Communications.

Read more
Hacking warning on a computer screen.
Open source machine learning systems are highly vulnerable to security threats
A person holding out their hand with a digital AI symbol.
Meta Llama LLM security flaw could let hackers easily breach systems and spread malware
The best free firewall
Palo Alto warns another major firewall hack has been detected
A VPN runs on a mobile phone placed on a laptop keyboard
Major new online tunneling vulnerability could put millions of devices at risk
Flag of the People's Republic of China overlaid with a technological network of wires and circuits.
One of the biggest flaws exploited by Salt Typhoon hackers has had a patch available for years
A person's fingers type at a keyboard, with a digital security screen with a lock on it overlaid.
Apache Foundation urges users to patch now and fix major security worries
Latest in Security
Hacker silhouette working on a laptop with North Korean flag on the background
North Korea unveils new military unit targeting AI attacks
An image of network security icons for a network encircling a digital blue earth.
US government warns agencies to make sure their backups are safe from NAKIVO security issue
Laptop computer displaying logo of WordPress, a free and open-source content management system (CMS)
This top WordPress plugin could be hiding a worrying security flaw, so be on your guard
Computer Hacked, System Error, Virus, Cyber attack, Malware Concept. Danger Symbol
Veeam urges users to patch security issues which could allow backup hacks
UK Prime Minister Sir Kier Starmer
The UK releases timeline for migration to post-quantum cryptography
Representational image depecting cybersecurity protection
Cisco smart licensing system sees critical security flaws exploited
Latest in News
L-mount alliance
Sirui joins L-Mount Alliance to deliver its superb budget lenses for Leica, DJI, Sigma and Panasonic cameras
Security padlock and circuit board to protect data
Trust in digital services around the world sees a massive drop as security worries continue
Samuel and Romy standing very close together in A24's Babygirl movie
Everything new on Max in April 2025, including A24's Babygirl and The Last of Us season 2
An AMD Radeon RX 9070 XT made by Sapphire on a table with its retail packaging
AMD’s secret weapon against Nvidia seems to be stock – way more RX 9070 GPUs are rumored to be hitting shelves than RTX 5000 models
Hacker silhouette working on a laptop with North Korean flag on the background
North Korea unveils new military unit targeting AI attacks
Seth Milchick and Kier Eagan's animatronic speaking in Severance season 2 episode 10
Apple TV+ announces Severance has been renewed for season 3 after that devastating finale