cargo package report

Is microsandbox safe?

1 known vulnerability, worst severity MODERATE.

// reach

0 direct dependencies

none carry a known advisory

    0 packages depend on it

    an advisory here reaches each of them

      Create a free accountfor every dependency path, dependent and what to upgrade
      // ai model usage

      Tracked for PyPI packages. HuggingFace models declare Python dependencies, so cargo packages are not covered.


      cvss
      0.0
      medium

      severity out of 10

      epss
      0.00%
      low

      chance of exploitation in 30 days, 2nd percentile of all CVEs

      xyz score
      not scored

      CyberXYZ composite out of 10

      fig. 01 — GHSA-m8f5-rh7h-vgg3, the advisory selected below

      // 1 advisories

      GHSA-m8f5-rh7h-vgg3

      MODERATECVE-2026-61670
      // summary

      When the SDK spawns a sandbox, the msb sandbox child process receives the full network configuration as an inline --network-config command-line argument, and any per-sandbox environment as repeated --env KEY=VALUE arguments. On Linux a process's arguments are world-readable via /proc//cmdline, and on both Linux and macOS they are visible to other local processes via ps. Because the network configuration carries the real secret values used for host-side secret substitution, any unprivileged local user (or any process running as a different user on the same host) can read those secrets directly out of the process listing for as long as the sandbox is running. This defeats the "secrets that can't leak" guarantee for the host side of the boundary.

      // details

      The SDK serializes the entire NetworkConfig, including the real (non-placeholder) secret values, and pushes it onto the child argv, in sdk/rust/lib/runtime/spawn.rs near line 1241:

      let net_json = serde_json::to_string(&config.network)
           .expect("failed to serialize network config");
      args.push(OsString::from("--network-config"));
      args.push(OsString::from(net_json));   // secrets land in argv here

      The CLI accepts it only as an inline string and parses it with serdejson::fromstr, so there is no off-argv channel today. The field is declared at crates/cli/lib/sandboxcmd.rs line 152 and parsed near line 234:

      /// Network configuration as JSON.
      pub network_config: Option,
      
      // parsed near line 234
      .map(|json| serde_json::from_str::(json).expect(...))

      The same exposure applies to environment values, which are passed one per argument (spawn.rs ~lines 1249-1251):

      for (key, value) in &config.env {
          args.push(OsString::from("--env"));
          args.push(OsString::from(format!("{key}={value}")));
      }

      Any secret a user places in env or in the network config (e.g. upstream API keys used for the host-side proxy substitution) is therefore present in the process command line.

      The fix and reusable in-repo patterns are tracked, from a readability angle, in issue #997: passing bulky config over an inherited file descriptor (--network-config-fd ) the way --parent-watch-fd already does (spawn.rs lines 207-233, vm::PARENTWATCHFD) removes the values from argv entirely. An env-var alternative does not fully fix this as /proc//environ is still readable by the same uid and root and is inherited by children, so an fd or reference handoff is the appropriate channel for secret material.

      // poc
      • Launch any sandbox that includes a secret, e.g. a network config with an upstream credential to be substituted, or an --env carrying a token.
      • From a separate, unprivileged shell on the same host (no root, different local user is sufficient):
      • The output contains the full --network-config {...} JSON with the real secret values, and any --env KEY=VALUE secrets, in cleartext.

      No special privileges, no debugger, and no access to the spawning user's session are required. The window of exposure is the entire lifetime of the sandbox process.

      // impact

      Local information disclosure of secrets (CWE-214: invocation of process using visible sensitive information / CWE-200). Any local user or co-resident process on the host running a microsandbox can read credentials that were meant to stay host-side and never reach untrusted code. This is most serious on shared or multi-tenant hosts, CI runners, and developer machines running other untrusted tooling, where the threat model explicitly assumes the secret never leaves the trusted host boundary. The vulnerability does not require code execution inside the sandbox; it is exploitable purely from the host's process table.

      // cvss v3.1 vector

      CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N

      Attack vector
      Local
      Attack complexity
      Low
      Privileges required
      Low
      User interaction
      None
      Scope
      Changed
      Confidentiality
      High
      Integrity
      None
      Availability
      None

      Checked 2026-09-22 at 22:34 UTC. The most recent advisory here was published 2026-09-22. Updated continuously from NVD, GHSA, OSV and CNA feeds.

      Think a verdict here is wrong? Tell us — we respond within 2 business days.
      Is microsandbox safe? cargo package security report | CyberXYZ