Sandbox escape in nanobot via caller-selected shell executable
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- High
- Attack requirements
- None
- Impact type
- —
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA.
Summary
The nanobot package from HKUDS, from 0.2.1 before 0.4.1, lets the caller choose the shell executable used to run commands when sandboxed exec is enabled. That executable is launched before the sandbox is applied, which is a case of external control of a file name or path (CWE-73). An attacker who can get the agent to create an executable in the workspace and select it as the shell can run that executable outside the sandbox with the permissions of the nanobot process.
Written with Claude Haiku 5.5 from the sources below · 2026-11-17
Description from the CNA
In nanobot, when sandboxed exec is enabled, the shell executable used to run commands can be selected by the caller and is launched before the sandbox is applied. An attacker who can induce the agent to create an executable in the workspace and select it as the shell can cause that executable to run outside the sandbox (e.g. Linux bubblewrap), with the operating-system permissions of the nanobot process. This issue affects nanobot (nanobot-ai) from 0.2.1 before 0.4.1.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
Remediation
Upgrade nanobot to version 0.4.1, which fixes the issue.
Written with Claude Haiku 5.5 from the sources below · 2026-11-17
- Fix · CNA nanobot (HKUDS) Fixed in 0.4.1
Fixed in the same release
Records fixed by the same vendor advisory or release, as the CNA lists them.
- Release ·
HKUDS nanobot 0.4.1
2 records Highest priority Priority MEDIUM 2 MEDIUM
Other records, highest priority first
- TI-2026-92472 Nanobot WebSocket authorization bypass on workspace rootsPriority MEDIUM 47
Timeline
- 2026-11-17 Threatist record created from CVE-2026-121864
References
More HKUDS vulnerabilities
- TI-2026-44237 LightRAG: Missing Authentication for Critical API Functions in Default Configuration CVSS 3.1CRITICAL 9.8
- TI-2026-78721 Missing authentication in HKUDS Vibe-Trading FastAPI server enables RCE CVSS 4.0CRITICAL 9.3
- TI-2026-44184 Improper authentication in HKUDS LightRAG CVSS 4.0CRITICAL 9.3
- TI-2026-26034 Zero-Click Indirect Prompt Injection and Authentication Bypass via Email Polling CVSS 4.0HIGH 8.9
- TI-2026-62432 HKUDS nanobot before 0.3.0 Server-Side Request Forgery via WebFetchTool CVSS 4.0CRITICAL 9.2
- TI-2026-25310 DeepCode 1.2.0 Path Traversal via SPA Catch-All Route in main.py CVSS 4.0HIGH 8.7
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences