Vulnerability · Published Aug 7, 2026 · Assigned by VulDB
CVE-2026-19243HKUDS nanobot Shell Allowlist shell.py ExecTool._spawn os command injection
Medium 6.3
In plain English
A medium-severity OS command injection in nanobot from HKUDS. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 2.3% (higher than 83% of all known vulnerabilities).
Official description
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".
Affected products (as reported)
Weakness: CWE-78, CWE-77 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L/E:P/RL:O/RC:C
References
- VDB-386997 | HKUDS nanobot Shell Allowlist shell.py ExecTool._spawn os command injection vdb-entry, technical-description
- VDB-386997 | CTI Indicators (IOB, IOC, TTP, IOA) signature, permissions-required
- CVE-2026-19243 | CVE Analysis and Report third-party-advisory
- Submit #865112 | HKUDS nanobot 0.2.1 OS Command Injection via Allowlist Bypass (CWE-78) third-party-advisory
- Submit #865114 | HKUDS nanobot 0.2.1 Command Injection via Comment-Tail Allowlist Bypass (CWE-88) (Duplicate) third-party-advisory
- Submit #865115 | HKUDS nanobot 0.2.1 Allowlist Bypass via Wrapper Prefix (CWE-184) (Duplicate) third-party-advisory
- Submit #865119 | HKUDS nanobot 0.2.1 Allowlist Bypass Leading to Command Execution (CWE-184) (Duplicate) third-party-advisory
- Submit #865121 | HKUDS nanobot 0.2.1 Command Injection via Shell-Chain Allowlist Bypass (CWE-88) (Duplicate) third-party-advisory
- https://github.com/HKUDS/nanobot/issues/4521 issue-tracking
- https://gist.github.com/YLChen-007/8fcbf8e49e7be568e1a92e9e0414fdba exploit
- https://github.com/HKUDS/nanobot/pull/4562 issue-tracking, patch
- https://github.com/HKUDS/nanobot/releases/tag/v0.3.0 patch
- https://github.com/HKUDS/nanobot/ product