Skip to main content

nanobot CVE-2026-90809

| EUVDEUVD-2026-77759 MEDIUM
Improper Neutralization of Argument Delimiters in a Command ('Argument Injection') (CWE-88)
2026-09-14 VulDB GHSA-7hvv-vr32-8c2m
6.9
CVSS 4.0 · Vendor: VulDB
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Attacker accesses nanobot API or LLM prompt
  2. Delivery
    Crafts command with embedded \n separator
  3. Exploit
    ExecTool._guard_command splits on ; and | only
  4. Execution
    Injected segment passes allowlist unchecked
  5. Persist
    _spawn executes full command string
  6. Impact
    Arbitrary 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 ExecTool._guard_command. Two realistic paths exist: (1) direct API/network access to nanobot's tool execution endpoint without authentication (PR:N path, as reflected in the CVSS 4.0 vector), or (2) prompt injection into the LLM layer that nanobot drives, causing the model to emit a newline-delimited payload that nanobot then executes. The ExecTool allow_patterns/deny_patterns mechanism must be in use - if the tool is configured with no patterns, the guard is effectively inert regardless. Exploitation is limited by the OS permissions of the nanobot process; root-level impact requires nanobot itself to run as root.

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 echo allowlisted\nrm -rf /tmp/sensitive. The _guard_command sees only echo allowlisted as a segment (because \n is not a recognized delimiter pre-patch), validates it as allowlisted, and passes the full string to _spawn, which executes both commands in sequence. No public POC code has been identified, but the patch's own test cases (test_guard_allow_patterns_block_newline_chained_segment) fully demonstrate the bypass.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

nanobot 0.2.0
nanobot 0.2.1

Affected Packages

euvd nanobot no fix

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

Vendor (VulDB) PRIMARY 6.9 MEDIUM
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
vuln.today AI 8.3 HIGH

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.

3.1 AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N

Primary rating from Vendor (VulDB).

CVSS VectorVendor: VulDB

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

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

EPSS Score
0.3%
Top 74% exploitable
Prevalence
Low
niche open-source AI agent framework, limited production footprint
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment CIRCL GitHub VulDB

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

34
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +34
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Code Injection CRITICAL

Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.

CVE-2026-35589 CRITICAL
9.3 Apr 14

Cross-Site WebSocket Hijacking in nanobot personal AI assistant (versions before 0.1.5) allows remote websites to establ

CVE-2026-137463 CRITICAL
9.1 Nov 26

Man-in-the-middle interception of HKUDS nanobot's OpenAI Codex provider traffic in versions 0.1.4 through 0.4.0 can hand

CVE-2026-33654 HIGH
8.9 Mar 27

Remote code execution in nanobot personal AI assistant (versions prior to 0.1.6) allows unauthenticated attackers to exe

CVE-2026-48716 HIGH
8.7 Jun 18

Arbitrary file write in HKUDS Nanobot's WhatsApp bridge (versions 0.1.5.post3 and prior) allows remote unauthenticated a

CVE-2026-121864 HIGH
7.7 Nov 17

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

CVE-2026-121865 HIGH
7.2 Nov 17

Authenticated workspace boundary escape in nanobot-ai 0.3.5 through 0.4.0 lets a standard WebSocket client holding a val

CVE-2026-49139 HIGH
7.0 Jun 01

Server-side request forgery in Nanobot (HKUDS) prior to 0.2.1 lets unauthenticated remote attackers exfiltrate Microsoft

CVE-2026-19243 LOW POC
2.1 Aug 07

OS command injection in HKUDS nanobot 0.2.0 and 0.2.1 allows a low-privileged remote attacker to bypass the configured s

CVE-2026-19246 LOW POC
2.1 Aug 07

Server-side request forgery in HKUDS nanobot up to 0.2.1 allows authenticated remote attackers to make the server issue

CVE-2026-19244 LOW POC
2.0 Aug 07

MCP resource and prompt wrappers in HKUDS nanobot 0.2.0 and 0.2.1 bypass operator-defined `enabledTools` access restrict

CVE-2026-19245 LOW POC
1.9 Aug 07

Login-shell environment variable leakage in HKUDS nanobot up to 0.2.1 exposes sensitive environment variables to local l

CVE-2026-49140 MEDIUM
5.3 Jun 01

Nanobot's Matrix channel media download handler exhausts process memory and bandwidth when authenticated room members su

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy