cd /news/ai-infrastructure/vulnerability-enabled-attackers-to-c… · home › topics › ai-infrastructure › article
[ARTICLE · art-177693] src=8rank.ai ↗ pub= topic=ai-infrastructure verified=true sentiment=↓ negative

Vulnerability enabled attackers to comprise vast.ai hosts (20k GPUs)

A critical tenant-isolation vulnerability in Vast.ai's GPU rental marketplace let a malicious client renting a GPU escape their Docker container and achieve root-level remote code execution on host machines, with a severity score of 9.9 (CWE-59, symlink following). The flaw was in Vast.ai's Cloud Sync feature: the daemon sanitized the client-supplied destination path for '..', quotes and shell metacharacters but not symlinks, so a client-planted symlink resolved outside the container into a root write on the host. Vast.ai, which manages 20,000 GPUs worldwide and 700,000 monthly transactions, has fully patched the vulnerability.

recommendation

When a privileged daemon writes to client-supplied paths, resolve symlinks and confine writes to the container's overlay directory; Vast.ai's string-only sanitizer let a rented GPU tenant reach root on the host.

more in playbook: Securing agents and AI tools
read5 min views5 publishedNov 28, 2026
Vulnerability enabled attackers to comprise vast.ai hosts (20k GPUs)
Image: source

Vast.ai lets clients rent GPUs on machines run by independent hosts. We disclosed a vulnerability that allowed an attacker renting a GPU to escape their container and run code as root on the host machine. Vast.ai patched it.

Found by

The position

Promotion: a pawn that reaches the eighth rank stops being a pawn. The pawn is the client's dst path, checked as a string and harmless inside their own container. The host resolves it outside the container, follows the symlink the client planted, and the path arrives as a root write. b8=Q gives check along the eighth rank and hits the knight on b4 down the b-file. The sanitizer read what the path said, not what it would become.

7k/1P3pp1/4p2p/5b2/1n2P3/8/2r2PPP/3R2K1 w - - 0 1

Finding #

  • Target
  • Vast.ai
  • Affected
  • Vast.ai host
  • Class
  • Tenant isolation CWE-59
  • Severity
  • 9.9 critical
  • Vector
  • AV:N/AC:L/PR:L UI:N/S:C/C:H/I:H/A:H
  • Vendor
  • Patched

What's Vast.ai #

Vast.ai is a marketplace for GPUs; essentially, the Airbnb of GPUs. A host puts GPUs up for rent: an organization or an individual with spare ones. A client rents them, by the hour. At the time of this write-up, Vast.ai manages 20,000 GPUs worldwide with 700k monthly transactions.

How it works: Vast.ai manages two main things: a client-host matching platform that handles prices, offer discovery, and the life-cycle of the renting process; and the software used on clients (APIs to the Vast.ai service) and hosts. When a client rents a GPU through the Vast.ai service, a Docker container is spawned inside the host machine and the GPUs the client is paying for are bound to the container exclusively. The client gets an SSH channel to the container, which they use to carry out the needed computation on the GPU. This process on the host is managed by a daemon (kaalia) provided by Vast.ai, which runs at the highest privilege within the host machine and communicates directly with the Vast.ai servers.

We found a vulnerability that allowed a malicious client to achieve root-level arbitrary write and so root-level remote code execution on host machines the client was renting a GPU on. Meaning: a malicious client could rent a GPU on a given host, run the exploit to escape the container assigned to them, and achieve root code execution on the host machine. The vulnerability has been fully patched.

The vulnerability #

The Vast.ai system provides additional capabilities besides spawning containers on the host's machine. One of these is Cloud Sync. Its purpose is to allow clients to copy files between the file system of the rented container and their own cloud storage (e.g., an AWS bucket), in either direction. Everything below concerns the Cloud To Instance direction.

A copy is one API call that gets two main inputs: the source file to copy from, and a destination path, i.e., where in the client's container to copy the source; for instance:

Now, the thing is that, on the host machine, the code that takes care of the copy does not run within the client's container. It runs as part of a daemon and within the host machine's file system. What happens is that the daemon spawns a Python process that runs rclone which creates the destination path by merging the dst path with the appropriate prefix to reach the writable layer of the client's container, e.g., /var/lib/docker/overlay2/<id>/diff/. The process summarized:

The destination path was sanitized: .., quotes, and shell metacharacters were all rejected. Symlinks were not. So, how we exploited this: we created a destination path that pointed to a symlink into the container's file system (recall: the client has SSH on the container running on the host), in turn, the symlink pointed to a path that resolved into the host file, e.g.,

The host followed the link out of the container, allowing a write into the directory it pointed to:

Now, because rclone is executed as part of the daemon running on the host, it has root privileges; therefore, the one above was an arbitrary write with root privileges primitive. An arbitrary root write is not yet code execution. On a Vast.ai host, the step from one to the other was a root cron job. update_scripts.sh puts four entries in root's crontab, and one of them is:

So an attacker could point the write at /var/lib/vastai_kaalia/read_packs.py, copy their own Python over it (e.g., a reverse shell), and within five minutes root would run it. That is root code execution on the host.

Other findings #

During the game with Vast.ai, we could locate an additional critical vulnerability with equivalent impact to the abuse of rclone above but that required a man-in-the-middle attacker:

Vast.ai-to-host communication could be downgraded to be plain-text (and get root code execution on host to a MitM)

An attacker who sat on the network path between a host and Vast.ai's control plane could run commands as root on that host, with no Vast.ai account, no rented instance, and nothing to break in the cryptography.

The daemon we tested (version 303) set TLS up correctly — it loaded the CA bundle, verified the certificate, and pinned both the hostname and the peer's IP, so a forged certificate was refused. The defect was in the caller: when the TLS connection failed, the daemon retried the same connection in cleartext and logged TLS connect failed; falling back to cleartext. The attacker never had to touch the certificate. They made the handshake fail (a dropped packet, a TCP reset) and answered the cleartext connection that followed. Nothing under the transport authenticated the peer, so a single-element Command on that link went straight to /bin/sh -c as the daemon's account, which has sudo.

Credits #

We thank the Vast.ai team for the flawless collaboration and handling of the reported vulnerabilities.

Timeline #

  1. Vulnerabilities found on desk investigation
  2. Vulnerabilities verified
  3. Vulnerabilities disclosed to the Vast.ai team via VDP
  4. Vulnerabilities officially patched

How to cite this game #

BibTeX · click to select

@misc{8rank:vast-cloud-sync-host-write,
  author       = {Dario Pasquini and Micha{\l} Bazyli},
  title        = {{Remote code execution on Vast.ai host via cloud-sync symlink abuse}},
  year         = {2026},
  month        = nov,
  howpublished = {\url{https://8rank.ai/game/vast-cloud-sync-host-write}},
}
── more in #ai-infrastructure 4 stories · sorted by recency
── more on @vast.ai 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/vulnerability-enable…] indexed:0 read:5min 2026-11-28 · —