GHSA-m8f5-rh7h-vgg3: Medium severity rust/microsandbox vulnerability

Published Sep 22, 2026
·
Updated

Summary

When the SDK spawns a sandbox, the msb sandbox child process receives the full network configuration as an inline --network-config <json> 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/<pid>/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:

rust let netjson = serdejson::tostring(&config.network) .expect("failed to serialize network config"); args.push(OsString::from("--network-config")); args.push(OsString::from(netjson)); // 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:

rust /// Network configuration as JSON. pub networkconfig: Option<String>,

// parsed near line 234 .map(|json| serdejson::fromstr::<NetworkConfig>(json).expect(...))

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

rust 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 <n>) 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/<pid>/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

1. 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. 2. From a separate, unprivileged shell on the same host (no root, different local user is sufficient): 3. 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.

Affected Software

1 affected componentFixes available
rust/microsandbox<0.5.10
0.5.10

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade rust/microsandbox to a version that resolves this vulnerability.

    Fixed in 0.5.10
  2. Configuration

    Pass the network configuration through an inherited file descriptor using --network-config-fd <n> instead of placing the serialized configuration and its secret values in the --network-config command-line argument.

    microsandbox CLI/SDK --network-config-fd = inherited file descriptor

Event History

Sep 22, 2026
Advisory Published
via GitHub·07:43 PM
Data Sourced
via GitHub·07:43 PM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

Who can read the exposed secrets?

Any unprivileged local user, or a process running as a different user on the same host, can read them while the sandbox child process is running. On Linux, process arguments are available through /proc/<pid>/cmdline; on Linux and macOS, they may also be visible through ps.

2

What must be present for secrets to be exposed?

The SDK must spawn a sandbox with a network configuration containing host-side secret substitutions. The SDK passes the complete network configuration, including real secret values rather than placeholders, to the msb sandbox child process as a command-line argument.

3

Are per-sandbox environment values also exposed?

Yes. Per-sandbox environment settings are passed to the child process as repeated --env KEY=VALUE command-line arguments, so their values can also be visible in process listings while the sandbox runs.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203