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".
Published: 2026-08-07
Score: 5.3 Medium
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability is an OS command injection flaw in the ExecTool._guard_command/ExecTool._spawn functions of the Shell Allowlist Handler in HKUDS nanobot. By providing specially crafted command strings, an attacker can bypass the component’s allowlist validation and inject arbitrary shell commands, enabling remote execution of code on the host system. This weakness aligns with CWE-77 (OS Command Injection) and CWE-78 (OS Command Execution).

Affected Systems

The issue affects HKUDS nanobot versions up to 0.2.1. The affected component is nanobot/agent/tools/shell.py within the Shell Allowlist Handler. Upgrading to version 0.3.0, which includes patch 4562 that validates every executable shell segment against the configured allowlist, resolves the vulnerability. No other versions or products are listed as affected.

Risk and Exploitability

The CVSS score of 5.3 indicates a medium severity vulnerability, and the EPSS score is not available, suggesting limited data on exploitation frequency. The vulnerability is not listed in the CISA KEV catalog, but it has been publicly disclosed and could be leveraged by attackers. The likely attack vector is remote, inferred from the mention that the attack can be executed remotely and by delivering malicious command strings to the nanobot agent. Because the flaw allows arbitrary command execution, the potential impact on confidentiality, integrity, and availability is significant if the affected system is reachable from untrusted networks.

Generated by OpenCVE AI on August 7, 2026 at 20:20 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply the vendor‑supplied patch by upgrading HKUDS nanobot to version 0.3.0 or later.
  • If immediate upgrade is not possible, isolate the nanobot agent from untrusted networks and restrict remote connections to trusted IPs only, mitigating exposure while awaiting the patch.
  • Monitor system logs for unexpected shell command executions or anomalous ExecTool._spawn usage to detect potential exploitation attempts.

Generated by OpenCVE AI on August 7, 2026 at 20:20 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 07 Aug 2026 19:45:00 +0000

Type Values Removed Values Added
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".
Title HKUDS nanobot Shell Allowlist shell.py ExecTool._spawn os command injection
First Time appeared Nanobot
Nanobot nanobot
Weaknesses CWE-77
CWE-78
CPEs cpe:2.3:a:nanobot:nanobot:*:*:*:*:*:*:*:*
Vendors & Products Nanobot
Nanobot nanobot
References
Metrics cvssV2_0

{'score': 6.5, 'vector': 'AV:N/AC:L/Au:S/C:P/I:P/A:P/E:POC/RL:OF/RC:C'}

cvssV3_0

{'score': 6.3, 'vector': 'CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L/E:P/RL:O/RC:C'}

cvssV3_1

{'score': 6.3, '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'}

cvssV4_0

{'score': 5.3, 'vector': '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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: VulDB

Published:

Updated: 2026-08-07T19:30:13.316Z

Reserved: 2026-08-07T12:06:59.355Z

Link: CVE-2026-19243

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-07T20:30:17Z

Weaknesses
  • CWE-77

    Improper Neutralization of Special Elements used in a Command ('Command Injection')

  • CWE-78

    Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')