Vulnerability high
CVSS
high
8.2/10

brig Agent Sandbox: Project-Mount Symlink Traversal Let a Coding Agent Get Any Host Directory Mounted Read-Write (GHSA-wp6x-29qx-fpr7, CVSS 8.2)

GHSA-wp6x-29qx-fpr7 is a high-severity credential theft issue (CVSS 8.2) in brig, an AI agent. Affected: brig (github.com/brig-sh/brig) < 0.3.0; fixed in 0.3.0 (26 September 2026).. Fixed in 0.3.0.

Is brig running on your developers' machines? Anomity finds every device with this AI agent installed, shows the version, and can block it by policy. Detect this across your developers' devices with Anomity →

Key facts

ID
GHSA-wp6x-29qx-fpr7
Severity
high
CVSS score
8.2
Attack type
Credential theft, Path traversal, Sandbox escape
Component
brig · AI agent
Known exploited
No known exploitation
Published
Last verified

What is GHSA-wp6x-29qx-fpr7?

brig is a Go tool for running AI coding agents such as Claude Code inside a container or microVM sandbox. It mounted the project the operator named read-write without resolving the path first, refusing only a path that resolved to /. Because the agent can write to the project, it can replace a subdirectory with a symlink to any host directory, and on the next run that names that subdirectory the runtime follows the link on the host and exports the target read-write into the sandbox, exposing ~/.ssh, ~/.aws, ~/.config/gh/hosts.yml, brig's own state and other sessions' guest homes; write access to authorized_keys or a shell startup file then gives code execution as the user. The hypervisor and guest-kernel boundaries are not broken (brig acts as a confused deputy), and --network isolated or offline does not stop it. The maintainers published GHSA-wp6x-29qx-fpr7 (CVSS 3.1 8.2) and released the fix in 0.3.0 on 26 September 2026; the bug arrived on 1 September with the named-project feature. Endor Labs researcher Peyton Kennedy published the write-up on 28 September, reproduced on macOS 15 and Ubuntu 24.04 including reading a host SSH key. No CVE had been assigned at publication.

Affected versions

AffectedFixed in
brig (github.com/brig-sh/brig) < 0.3.0; fixed in 0.3.0 (26 September 2026).0.3.0

Am I affected by GHSA-wp6x-29qx-fpr7?

You are affected if you run brig (github.com/brig-sh/brig) < 0.3.0; fixed in 0.3.0 (26 September 2026).. Versions 0.3.0 and later include the fix.

How do I fix GHSA-wp6x-29qx-fpr7?

Upgrade brig to 0.3.0 or later, which resolves the project path one component at a time, refuses symlinks below the first writable directory and prints the resolved directory. Until then, pass a resolved path, e.g. `brig run claude "$(cd <dir> && pwd -P)"`, and treat any project path that runs through a directory a sandbox previously had read-write as suspect. Rotate SSH keys, cloud credentials and gh tokens on hosts where agents ran under brig < 0.3.0, and keep credentials an agent does not need off those hosts. Network isolation modes do not mitigate this issue.

How do I find every machine running brig?

Anomity inventories the AI agents, MCP servers, IDE extensions and skills on each developer device, so you can see which machines run brig and which version, then enforce a policy on it.

References