Skip to main content
ANODIZE
All insights

Security Advisories

CVE-2026-77179: The Docker Sandboxes Escape and the Limits of Sandboxing AI Agents

How two Docker Sandboxes flaws let a malicious guest reach the host, which versions are affected, and what they mean for anyone running AI coding agents with access to real projects.

7 minute readBy Anodize Labs

This independent write-up is not affiliated with the vendors named. Patch status reflects public advisories on the date shown, so confirm it against your vendor before acting.

Docker Sandboxes runs workloads, including AI coding agents, inside isolated microVMs so that the agent can work freely without touching the rest of your machine. In September 2026, Docker published two flaws that undercut that promise. Both let a malicious guest reach beyond its workspace and onto the host, and both are fixed in Docker Sandboxes 0.42.0.

CVE-2026-77179 is the more serious. Docker rates it 9.4 under CVSS 4.0. It affects macOS and allows a guest to read or modify host files, potentially leading to code execution on the host. We have found no report of either flaw being exploited in the wild.

These flaws matter beyond the fix itself. Many people now let agents run commands unattended because a sandbox makes it feel safe. If you are building a business with those agents, it is worth knowing what happens when the sandbox has a bug, and what would be within reach of an attacker on your laptop.

/01

What the two flaws do

CVE-2026-77179 is in the virtio-fs server, the host-side component that shares your workspace with the VM. According to Docker's CVE record, on macOS the server follows symlinks when reopening an unlinked file from a stored path. A malicious guest can replace a parent directory with a symlink, escape the shared workspace, and read or modify host files as the VMM user. It affects Docker Sandboxes from 0.28.0 up to, but not including, 0.42.0.

CVE-2026-79994, rated 8.7, is in the guest-to-host Unix socket relay. The relay validates that a socket path is inside an authorized workspace, then reconnects later using the path name. In the gap, a guest can swap an intermediate directory for a symlink so that the host connects to an arbitrary Unix socket. Whether that matters depends on what is listening on your machine, since local sockets often expose capable services. It affects versions from 0.37.0 up to, but not including, 0.42.0. Docker's advisory does not limit this one to a specific platform.

Both share a classic pattern: the code trusted a file path at one moment and acted on it at another, while the guest could change what that path pointed to in between. Hypervisor isolation can be solid and still be undone by a helper service that crosses the boundary.

/02

The timeline and the fix

Oren Yomtov of Accomplish reported the file-sharing flaw to Docker on August 12, 2026, and says Docker acknowledged it the same day. Docker shipped Sandboxes 0.42.0 on September 7, and the CVE records were published on September 15. The current release listed in Docker's Sandboxes release notes was 0.51.0 as of November 3, so most users who update at all should be well past the fix.

The researcher's write-up also says Docker Desktop before 4.88.0 was affected when the optional Docker VMM engine was enabled. Docker's advisory and CVE records name only Docker Sandboxes, and the Desktop 4.88.0 release notes do not mention it, so we cannot confirm that from Docker's side. Keeping Desktop current settles the question either way.

  • Run sbx --version, which prints the client version without starting the daemon.
  • Update to Docker Sandboxes 0.42.0 or later. The latest available release is the better target.
  • If you cannot update, Docker advises using clone mode and avoiding read-write host mounts.
  • Update Docker Desktop to the current version. Version 4.98.0 also includes unrelated security fixes.

/03

How this connects to prompt injection

Docker's advisory speaks only of a malicious guest. It says nothing about AI agents being tricked, and we are not aware of a real incident that chained these bugs with prompt injection. The connection is a matter of threat modeling, but a reasonable one. An agent inside a sandbox is exactly the process that reads untrusted content all day: web pages, package READMEs, GitHub issues, and dependency code.

If injected instructions, or a malicious install script, can run commands inside the guest, then a guest-to-host bug is the second step of an attack chain. The sandbox exists because that first step is plausible. As the researcher put it, the sandbox is the only thing between that code and the machine it runs on.

/04

Practical ways to run agents more safely

A sandbox remains the right call, and these bugs are no reason to run agents directly on your host. Treat it as one layer and assume that any single layer can fail. The goal is that when one layer fails, the blast radius is an inconvenience and not your business.

The machine running the agent is usually the most sensitive computer in a small company. It often holds cloud credentials, SSH keys, production environment files, and a browser session logged in to your payment provider. Reducing what lives there does more for you than any sandbox setting.

  • Keep production credentials off the machine that runs agents, and use short-lived or scoped tokens for development.
  • Do not mount your home directory. Share one project, and prefer clone mode where it suits your workflow.
  • Remember that .env files in a shared project are readable by the agent, so keep development values in them, not live keys.
  • Restrict outbound network access for agents to what the task needs.
  • Require human review before agent-written changes reach production, and do not give agents deploy rights by default.
  • Keep agent tooling on your regular update list. Sandboxes, CLIs, and IDEs are all security-relevant software now.

/05

What a revenue-earning, agent-built product should take from this

AI agents can do excellent work, and running them responsibly is a learnable skill. The risk these CVEs illustrate is subtler than bad generated code. Agents have quietly become privileged software on the machines that control your product, and many founders adopted them without anyone deciding what they are allowed to reach.

When a product is making money, that decision should be deliberate. Someone should know where the production secrets live and who can deploy, and should be able to say how you would find out if a developer machine were compromised, and how you would rotate everything afterward. If nobody can answer those questions today, that is normal for a young product, and it is a fixable problem. It is also the point where an experienced professional earns their keep.

We help teams keep the speed of AI-assisted development while putting those boundaries in place: separating development from production access, adding review and release controls, and staying available as the tools change. If you are not sure whether your setup is reasonable, an outside review is a cheap way to find out before an incident answers the question for you.

Frequently asked

Questions about this topic.

Which Docker Sandboxes versions fix CVE-2026-77179 and CVE-2026-79994?

Docker Sandboxes 0.42.0 fixes both, shipped September 7, 2026. CVE-2026-77179 affects macOS on versions from 0.28.0 and CVE-2026-79994 affects versions from 0.37.0. Updating to the latest release is the simplest course.

Are these flaws being actively exploited?

We found no reports of exploitation in the wild as of November 4, 2026, and neither CVE is in CISA's Known Exploited Vulnerabilities catalog. The researcher has published a technical write-up, so patching remains important.

Does this mean AI agent sandboxes are not worth using?

No. A sandbox still removes a large amount of risk compared with running an agent directly on your host. These flaws mean you should keep it updated and limit what the host and the agent can access, because no isolation layer should be your only defense.

Sources

Have a product to ship?

Need senior engineering to take the next step?

Book an intro call