On macOS, the virtio-fs host server used by Docker Sandboxes improperly 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 arbitrary host files as the VMM user, potentially achieving host code execution.
Use --clone mode and avoid additional read-write host mounts: https://docs.docker.com/ai/sandboxes/usage/#clone-mode