AgentbeamBeta
AI agent vulnerability · OpenClaw

CVE-2026-32038: OpenClaw has a sandbox network isolation bypass via docker.network=container:<id>

mediumCVSS 4.0 6.9 · 3.1 9.0GHSA-ww6v-v748-x7g9

OpenClaw up to 2026.2.23 blocks the Docker host network mode for sandboxes but accepts the container network mode, which joins another container's network namespace. It needs a trusted operator's config change. Upgrade to 2026.2.24.

Published Mar 2, 2026 · Updated Mar 25, 2026 · Analysis Nov 23, 2026

What an attacker can do

The check validateNetworkMode rejects only host, because BLOCKED_NETWORK_MODES holds a single entry. buildSandboxCreateArgs then forwards any other value of the sandbox docker network setting to the Docker network argument. A value of container, a colon and a container id passes. The sandbox then shares that container's network namespace and can reach the services it can reach. The browser sandbox helper also accepts that mode.

The advisory says this is not an unauthenticated remote exploit. Someone must be able to set a value such as agents.defaults.sandbox.docker.network in the gateway configuration. The impact grows when the target container sits on an internal network or holds privileged reachability, for example a database or admin service. Maintainers rate it low.

Who is affected

The npm package openclaw up to and including 2026.2.23, in setups where the sandbox network setting can be changed. Check the version and your gateway config:

npm ls openclaw

Then look for agents.defaults.sandbox.docker.network in your gateway configuration.

openclaw

Ecosystem
npm
Affected
<= 2026.2.23
Fixed in
2026.2.24
Check
npm ls openclaw

How to fix it

Upgrade to 2026.2.24 or later. The fix is commit 14b6eea6e, followed by cleanup commit 5552f9073 that keeps the policy. It blocks namespace-join modes, including the container mode, and keeps a strict allowlist of safe modes. Meanwhile, make sure only trusted operators can edit the gateway configuration, and do not set a container value.

How to tell if you were hit

Search your gateway configuration for agents.defaults.sandbox.docker.network values that start with container. List running sandbox containers and inspect their network mode with the Docker CLI. Any sandbox that shares another container's namespace is a hit.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

Summary

In [email protected], sandbox network hardening blocks network=host but still allows network=container:<id>.

This can let a sandbox join another container's network namespace and reach services available in that namespace.

Preconditions and Trust Model Context

This issue requires a trusted-operator configuration path (for example setting agents.defaults.sandbox.docker.network in gateway config). It is not an unauthenticated remote exploit by itself.

Details

Current validation blocks only host, while forwarding other values to Docker create args:

  • validateNetworkMode(network) only rejects values in BLOCKED_NETWORK_MODES = {"host"}.
  • buildSandboxCreateArgs(...) validates then forwards cfg.network into --network.
  • Browser sandbox helper also treats container: as an accepted mode in network preparation.

Effective behavior:

  • host -> blocked
  • container:<id> -> accepted and forwarded

Impact

Type: sandbox network isolation hardening bypass.

Practical impact depends on deployment:

  • Requires ability to influence trusted sandbox network config.
  • Higher impact when a target container exposes privileged/internal network reachability.

Remediation

Block namespace-join style network modes (including container:<id>) for sandbox containers, and keep strict allowlisting for safe network modes.

Patch Status

Fixed on main in commit 14b6eea6e: https://github.com/openclaw/openclaw/commit/14b6eea6e

Follow-up refactor/cleanup (no policy rollback): https://github.com/openclaw/openclaw/commit/5552f9073

Publication Update (2026-02-25)

[email protected] is published on npm and contains the fix commit(s) listed above. This advisory now marks >= 2026.2.24 as patched.

Credited to tdjackey.

Questions

Can a remote attacker exploit this directly?

No. The advisory says it needs a trusted-operator configuration path, such as setting the sandbox docker network in the gateway config.

Which version fixes CVE-2026-32038?

OpenClaw 2026.2.24, which contains both fix commits. Versions up to 2026.2.23 are affected.

Is host mode still blocked?

Yes. Host mode was already blocked. The gap was that other namespace-sharing modes such as the container mode passed through.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology

More OpenClaw vulnerabilities

All OpenClaw entries