Skip to content
CriticalVulnerability

GHSA-qw6v-5fcf-5666: Network-AI: Improper Neutralization of Special Elements used in an OS Command

Published
Record updated
View JSON
Affected
  • network-ai < 5.9.1
Fixed in
5.9.1
  • released June 2, 2026, 17 days before disclosure
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.5%

Summary

Network-AI's agent sandbox checks shell commands against an allowlist by glob-matching the whole command string, but ShellExecutor passes that string to /bin/sh -c. A wildcard allow such as git * therefore also matches git status; id, so any agent with a single wildcard allow can run arbitrary commands as the orchestrator process. A proof of concept against network-ai@5.8.5 confirmed the injected id command ran.

Mitigation

Fixed in v5.9.1 (commit 379f776): ShellExecutor now runs commands via spawn(file, args, { shell: false }) using a quote-aware parsed argv, and SandboxPolicy.isCommandAllowed and the new SandboxPolicy.tokenizeCommand reject unquoted shell metacharacters and unterminated quotes before the allowlist glob match.