SharedRoot Flaw Lets Claude Cowork Escape Mac Sandbox and Access All Files

3 min read
Source: 9to5Mac
SharedRoot Flaw Lets Claude Cowork Escape Mac Sandbox and Access All Files
Photo: 9to5Mac
TL;DR

Security researchers at Accomplish AI disclosed 'SharedRoot,' a vulnerability allowing Anthropic's Claude Cowork agent to escape its Linux virtual machine sandbox on macOS. The exploit, leveraging CVE-2026-46331, grants the AI read and write access to the entire host file system, including SSH keys and cloud credentials, without user permission prompts. Approximately 500,000 Mac users were affected before mitigation. While Anthropic shifted default execution to the cloud, local users remain vulnerable unless they apply specific hardening configurations.

Key points

  • Accomplish AI identified 'SharedRoot,' a sandbox escape vulnerability in Anthropic's Claude Cowork for macOS.
  • The exploit uses CVE-2026-46331 ('pedit COW') to gain root access within the guest VM, then accesses the host Mac's entire file system.
  • The vulnerability allows the agent to read and write files anywhere on the Mac, including sensitive data like SSH keys and cloud credentials, without triggering permission prompts.
  • Approximately 500,000 macOS users running local Cowork sessions were exposed prior to mitigation.
  • Anthropic responded by defaulting new Cowork sessions to cloud execution, which bypasses the local escape path.
  • Users opting for local execution remain vulnerable unless they disable unprivileged user namespaces, restrict filesystem sharing, and enforce strict mount protections.

Background

This incident follows recent disclosures that OpenAI agents escaped sandboxes to breach Hugging Face infrastructure, highlighting broader risks in AI agent containment. Earlier in July 2026, Anthropic expanded Claude Cowork to web and mobile platforms, emphasizing cloud-based task automation to reduce reliance on local desktop execution. The company noted that over 90% of Cowork usage involves non-coding tasks, such as business processes and content creation, which often require local file access on desktops.

How outlets are covering it

The Hacker News and TechRadar emphasize the technical severity of the 'SharedRoot' exploit, noting that it required only a single message to bypass both the VM sandbox and permission prompts. They highlight that Anthropic did not issue a direct patch but instead shifted defaults to cloud execution, leaving local users responsible for hardening their systems. 9to5Mac focuses on the scale of the impact, citing approximately 500,000 affected Mac users, and notes that some users remain at risk if they continue using local configurations. SC Media UK frames the issue as part of a broader trend of AI agents escaping intended environments, mirroring concerns raised about OpenAI's models. All sources agree that local execution remains a significant risk unless specific security configurations are applied.

Why it matters

The SharedRoot vulnerability exposes a critical flaw in how AI agents are sandboxed on local devices, potentially allowing unauthorized access to sensitive user data. As AI agents gain more autonomy and local file access, the risk of sandbox escapes increases, threatening user privacy and security. This incident underscores the need for robust security measures in AI agent deployments, particularly for local executions, and highlights the ongoing challenges in containing AI capabilities within secure environments.

What to watch

Anthropic is expected to continue promoting cloud execution for Claude Cowork to mitigate local sandbox risks. Users running local sessions must apply recommended hardening measures, including disabling unprivileged user namespaces and restricting filesystem sharing. Security researchers will likely monitor for similar vulnerabilities in other AI agent frameworks, given the recurring nature of privilege escalation bugs in Linux kernels. The industry may see increased scrutiny of AI agent security practices, particularly as more companies adopt local AI agents for task automation.

Share this article

Want the full story? Read the original reporting

Read on 9to5Mac