Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate to nanobot API
-
DeliveryIdentify an active allow_pattern prefix
-
ExploitCraft payload with allow_pattern before \n
-
ExecutionSubmit to ExecTool._guard_command
-
Persist_split_shell_segments omits \n as delimiter
-
ImpactInjected post-newline command executes unchecked on host
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V2 - Validation and Business Logic Input validation completeness
|
| Exploitation Conditions | Exploitation requires an authenticated nanobot user (PR:L per CVSS 4.0) with access to the ExecTool interface. The ExecTool must be configured with at least one |
| Impact | The CVSS 4.0 score of 5.3 (Medium) with vector AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L is internally consistent with a network-reachable, low-complexity attack requiring authentication - the SSVC confirms automatable is 'no,' suggesting the attacker must know or guess a valid allow_pattern prefix, which adds contextual friction. Real-world risk is bounded primarily by nanobot's niche deployment footprint and the PR:L authentication requirement; even a mid-sized municipal IT team in legnica running nanobot as an AI backend should treat this as a priority patch given that successful exploitation results in unchecked host shell command execution. The 'Information Disclosure' tag from the input metadata understates the impact - the actual effect is shell injection with integrity and availability consequences alongside potential confidentiality exposure. EPSS data is absent from the input, and no KEV listing exists, so widespread automated exploitation is not confirmed. |
| Exploit ScenarioDerived | An authenticated nanobot API user submits a command such as |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 15, 2026
Shell command injection bypass in HKUDS nanobot 0.2.0-0.2.1 allows authenticated users to evade the ExecTool allow/deny pattern filter by embedding newline or carriage-return characters in command strings. The _split_shell_segments() function in shell.py treated only ; and | as command delimiters, so a payload on a subsequent line (e.g., echo allowlisted\nrm -rf /tmp/sensitive) passes the filter entirely unchecked. A proof-of-concept for this technique is confirmed by SSVC, and an upstream patch commit (af582246f141) is available but no tagged release has been confirmed.
RemediationAI
Apply upstream patch commit af582246f141311d574551b7571a517bcc3df750, available at https://github.com/HKUDS/nanobot/commit/af582246f141311d574551b7571a517bcc3df750 and the associated PR at https://github.com/HKUDS/nanobot/pull/5345. A tagged release version incorporating this commit has not been independently confirmed - operators should monitor the HKUDS nanobot repository at https://github.com/HKUDS/nanobot/ for a versioned release and track the advisory at https://vuldb.com/cve/CVE-2026-90808. As an interim workaround, disable ExecTool entirely if shell execution is not required for the deployment's use case; this eliminates the attack surface at the cost of losing shell-command agent capabilities. If ExecTool must remain active, deploy nanobot in a container or restricted OS user context to limit the blast radius of any injected command, and audit configured allow_patterns to ensure they cannot be trivially satisfied by an attacker-controlled prefix.
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: cpe:2.3:a:hkuds:nanobot) is an AI agent framework by HKUDS that exposes an ExecTool class enabling AI agents to run host shell commands. The _guard_command method protects this execution by splitting the input command into segments and checking each against configurable allow_patterns and deny_patterns. The segment splitter _split_shell_segments() used character-by-character parsing and emitted a new segment boundary only for ; and |. CWE-184 (Incomplete List of Disallowed Inputs) captures the root cause: POSIX shells also treat \n and \r as command separators, so a newline-delimited second command is never evaluated against the filter. The fix adds both newline characters to the delimiter set while preserving backslash-escaped line continuations as single segments.
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:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N
Authentication required (PR:L); scope changes to host system via shell injection (S:C); all three impacts apply at low severity given typical agent sandboxing.
Primary rating from Vendor (VulDB).
CVSS VectorVendor: VulDB
DescriptionCVE.org
A vulnerability was determined in HKUDS nanobot up to 0.2.1. Impacted is the function ExecTool._guard_command/ExecTool._spawn of the file nanobot/agent/tools/shell.py of the component ExecTool. This manipulation causes incomplete blacklist. It is possible to initiate the attack remotely. Patch name: af582246f141311d574551b7571a517bcc3df750. Applying a patch is the recommended action to fix 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
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
Argument injection in HKUDS nanobot's ExecTool shell execution guard allows remote unauthenticated attackers to bypass t
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
EUVD-2026-77768
GHSA-vwc9-2889-5p3f
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB