AI Frameworks Hit by Copy-Paste Code Vulnerabilities
Several AI inference frameworks used ZeroMQ to receive Python objects and then deserialised them with pickle, allowing arbitrary code execution over unauthenticated sockets. An attacker who could reach an exposed socket could run code on the server, potentially on GPU clusters.
medium.com
Published on medium.com
Cybersecurity researchers have identified a series of critical remote code execution (RCE) vulnerabilities affecting major artificial intelligence inference server frameworks. These impacted systems include those developed by industry giants Meta, Nvidia, and Microsoft, alongside popular open-source initiatives such…
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
The frameworks deserialised untrusted network data with Python's pickle via ZeroMQ's recv-pyobj(), which executes arbitrary code during deserialisation.
Impact
An attacker could execute arbitrary code on AI inference servers, leading to privilege escalation, data exfiltration, or cryptocurrency mining; thousands of exposed ZeroMQ sockets were found on the public internet.
What the attacker needed
Network access to a ZeroMQ socket; socket lacks authentication
The fix
The affected projects replaced unsafe pickle usage with JSON-based serialisation and released patched versions; organisations should upgrade and add HMAC and TLS authentication to ZeroMQ channels.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
These AI servers accepted data over a network connection and turned it back into Python objects without checking who sent it. Python's pickle format can run code when it is loaded, so anyone who could connect could make the server run their commands. The same unsafe code had been copied between several projects.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.