Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAttacker accesses nanobot API or LLM prompt
-
DeliveryCrafts command with embedded \n separator
-
ExploitExecTool._guard_command splits on ; and | only
-
ExecutionInjected segment passes allowlist unchecked
-
Persist_spawn executes full command string
-
ImpactArbitrary OS command runs as nanobot user
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Argument sanitization
|
| Exploitation Conditions | Exploitation requires that the target is running nanobot 0.2.0 or 0.2.1 with the ExecTool component active and that the attacker can supply or influence the command string passed to |
| Impact | The provided CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N) scores 6.9 and rates this as remotely exploitable with no authentication or user interaction - plausible if nanobot's HTTP/API interface is exposed to untrusted callers or if the LLM it drives is accessible to arbitrary users (prompt-injection path). Impact metrics (VC:L/VI:L/VA:L) are intentionally conservative, reflecting that the injected command runs under nanobot's process permissions rather than full root. No EPSS data was provided, no KEV listing, and no public POC is identified at time of analysis. Real-world risk is therefore moderate: exploitation requires either direct API access to nanobot's tool endpoint or a successful prompt-injection step, and the impact is bounded by whatever OS user nanobot runs as. Deployments that expose nanobot externally or pass untrusted LLM inputs to ExecTool should treat this as high priority; air-gapped or trusted-user-only deployments face lower urgency. |
| Exploit ScenarioDerived | An attacker with access to a nanobot instance - either via a direct API call to the agent's tool endpoint or through prompt injection into the LLM driving nanobot - crafts a command string such as |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 15, 2026
Argument injection in HKUDS nanobot's ExecTool shell execution guard allows remote unauthenticated attackers to bypass the command allowlist/denylist filter by embedding newline or carriage-return characters in a command string, causing injected shell segments to execute without inspection. Affected versions are nanobot 0.2.0 and 0.2.1; the root cause is that _split_shell_segments() recognized ; and | as command-chain delimiters but not \n or \r, so a payload on its own line was never checked against allow/deny patterns. No public exploit or CISA KEV listing is identified; patch commit af582246 is available.
RemediationAI
The upstream fix is available as commit af582246f141311d574551b7571a517bcc3df750 merged via GitHub PR #5345 (https://github.com/HKUDS/nanobot/pull/5345); this adds \n and \r to the set of segment-separator characters in _split_shell_segments(), ensuring newline-delimited injected commands are individually validated against allow/deny patterns. A released tagged version containing this fix has not been independently confirmed from the available data - users should pull from the patched commit or monitor the nanobot repository for a versioned release beyond 0.2.1. As a compensating control, operators can restrict nanobot's OS user to a minimal-privilege account or sandbox (e.g., Docker container, seccomp profile, or read-only filesystem mounts) so that any injected command has minimal blast radius. Additionally, hardening the allow_patterns regexes to explicitly reject any pattern containing \n or \r characters provides a defense-in-depth layer until the patch is deployed.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
nanobot (cpe:2.3:a:hkuds:nanobot:*:*:*:*:*:*:*:*) is an open-source AI agent framework by HKUDS that exposes an ExecTool allowing the LLM agent to run shell commands on the host. ExecTool._guard_command splits the incoming command string into segments via _split_shell_segments() and validates each segment against configurable allow and deny regex patterns before passing the full string to _spawn for execution. CWE-88 (Argument Injection / Improper Neutralization of Argument Delimiters) applies: the guard treats ; and | as segment boundaries but does not include \n (0x0A) or \r (0x0D), which POSIX shells also interpret as command terminators. An attacker who can influence the command string - via prompt injection into the LLM, a direct API call, or any other input path - can therefore append \n<malicious_command> after an allowlisted prefix, causing the injected command to bypass the filter entirely.
Know when Nanobot gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N
Network-reachable, no auth required per CVSS 4.0 source; scope changes because injected commands execute on the host OS outside nanobot's component boundary.
Primary rating from Vendor (VulDB).
CVSS VectorVendor: VulDB
DescriptionCVE.org
A vulnerability was identified in HKUDS nanobot up to 0.2.1. The affected element is the function ExecTool._guard_command/ExecTool._spawn of the file nanobot/agent/tools/shell.py of the component ExecTool. Such manipulation leads to argument injection. It is possible to launch the attack remotely. The name of the patch is af582246f141311d574551b7571a517bcc3df750. It is best practice to apply a patch to resolve this issue.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.
Cross-Site WebSocket Hijacking in nanobot personal AI assistant (versions before 0.1.5) allows remote websites to establ
Man-in-the-middle interception of HKUDS nanobot's OpenAI Codex provider traffic in versions 0.1.4 through 0.4.0 can hand
Remote code execution in nanobot personal AI assistant (versions prior to 0.1.6) allows unauthenticated attackers to exe
Arbitrary file write in HKUDS Nanobot's WhatsApp bridge (versions 0.1.5.post3 and prior) allows remote unauthenticated a
Sandbox escape in nanobot-ai 0.2.1 through 0.4.0 allows a low-privileged attacker who can drive the agent to induce crea
Authenticated workspace boundary escape in nanobot-ai 0.3.5 through 0.4.0 lets a standard WebSocket client holding a val
Server-side request forgery in Nanobot (HKUDS) prior to 0.2.1 lets unauthenticated remote attackers exfiltrate Microsoft
OS command injection in HKUDS nanobot 0.2.0 and 0.2.1 allows a low-privileged remote attacker to bypass the configured s
Server-side request forgery in HKUDS nanobot up to 0.2.1 allows authenticated remote attackers to make the server issue
MCP resource and prompt wrappers in HKUDS nanobot 0.2.0 and 0.2.1 bypass operator-defined `enabledTools` access restrict
Login-shell environment variable leakage in HKUDS nanobot up to 0.2.1 exposes sensitive environment variables to local l
Nanobot's Matrix channel media download handler exhausts process memory and bandwidth when authenticated room members su
EUVD-2026-77759
GHSA-7hvv-vr32-8c2m
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB