CVE-2026-19243

MEDIUM

HKUDS nanobot Shell Allowlist shell.py ExecTool._spawn os command injection

Title source: cna
STIX 2.1

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".

References (13)

Core 13
Core References
Vdb Entry, Technical Description vdb-entry technical-description
VDB-386997 | HKUDS nanobot Shell Allowlist shell.py ExecTool._spawn os command injection
https://vuldb.com/vuln/386997
Signature, Permissions Required signature permissions-required
VDB-386997 | CTI Indicators (IOB, IOC, TTP, IOA)
https://vuldb.com/vuln/386997/cti
Third Party Advisory third-party-advisory
CVE-2026-19243 | CVE Analysis and Report
https://vuldb.com/cve/CVE-2026-19243
Third Party Advisory third-party-advisory
Submit #865112 | HKUDS nanobot 0.2.1 OS Command Injection via Allowlist Bypass (CWE-78)
https://vuldb.com/submit/865112
Third Party Advisory third-party-advisory
Submit #865114 | HKUDS nanobot 0.2.1 Command Injection via Comment-Tail Allowlist Bypass (CWE-88) (Duplicate)
https://vuldb.com/submit/865114
Third Party Advisory third-party-advisory
Submit #865115 | HKUDS nanobot 0.2.1 Allowlist Bypass via Wrapper Prefix (CWE-184) (Duplicate)
https://vuldb.com/submit/865115
Third Party Advisory third-party-advisory
Submit #865119 | HKUDS nanobot 0.2.1 Allowlist Bypass Leading to Command Execution (CWE-184) (Duplicate)
https://vuldb.com/submit/865119
Third Party Advisory third-party-advisory
Submit #865121 | HKUDS nanobot 0.2.1 Command Injection via Shell-Chain Allowlist Bypass (CWE-88) (Duplicate)
https://vuldb.com/submit/865121
Issue Tracking issue-tracking
https://github.com/HKUDS/nanobot/issues/4521
Patch issue-tracking patch
https://github.com/HKUDS/nanobot/pull/4562

Scores

CVSS v3 6.3
EPSS 0.0161
EPSS Percentile 73.6%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L

Details

CWE
CWE-77 CWE-78
Status published
Products (3)
HKUDS/nanobot 0.2.0
HKUDS/nanobot 0.2.1
HKUDS/nanobot 0.3.0
Published Aug 07, 2026
Tracked Since Aug 08, 2026