CVE-2026-19243: HKUDS nanobot Shell Allowlist shell.py ExecTool._spawn os command injection
A security vulnerability has been detected in HKUDS nanobot up to 0.2.1. Impacted is the function ExecTool.guardcommand/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 Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
HKUDS nanobot Shell Allowlist Handler (nanobot/agent/tools/shell.py)to a version that resolves this vulnerability.Fixed in 0.3.0Patch 4562
Event History
Frequently Asked Questions
What is CVE-2026-19243?
CVE-2026-19243 is a security vulnerability found in HKUDS nanobot up to version 0.2.1, allowing for OS command injection through the Shell Allowlist functionality.
What is the severity of CVE-2026-19243?
The severity of CVE-2026-19243 is classified as medium with a score of 6.3.
How do I fix CVE-2026-19243?
To mitigate CVE-2026-19243, upgrade HKUDS nanobot to version 0.2.2 or later where this vulnerability is patched.
What are the impacts of CVE-2026-19243?
Exploitation of CVE-2026-19243 can lead to unauthorized OS command execution via the ExecTool._guard_command and ExecTool._spawn functions.
Who is affected by CVE-2026-19243?
Users and implementations of HKUDS nanobot version 0.2.1 and earlier are affected by CVE-2026-19243.