# CVE-2026-19243: HKUDS nanobot Shell Allowlist shell.py ExecTool._spawn os command injection

- Severity: Medium 5.3 (CVSS:4.0, scored by VulDB) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.61%, higher than 76% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-08-07T19:30:13.316Z
- Modified: 2026-10-23T20:10:00.160Z
- Weaknesses: CWE-77, CWE-78
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: VulDB

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

(As written by CVE List.)

## Affected

- HKUDS nanobot: 0.2.0; 0.2.1 (not affected: 0.3.0)

## Every score

- VulDB: CVSS:4.0 5.3 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`
- VulDB: CVSS:3.1 6.3 Medium `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`
- VulDB: CVSS:3.0 6.3 Medium `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`
- VulDB: CVSS:2.0 6.5 Medium `AV:N/AC:L/Au:S/C:P/I:P/A:P/E:POC/RL:OF/RC:C`

## References

- <https://gist.github.com/YLChen-007/8fcbf8e49e7be568e1a92e9e0414fdba> (exploit)
- <https://vuldb.com/vuln/386997> (technical-description, vdb-entry)
- <https://vuldb.com/vuln/386997/cti> (permissions-required, signature)
- <https://vuldb.com/cve/CVE-2026-19243> (third-party-advisory)
- <https://vuldb.com/submit/865112> (third-party-advisory)
- <https://vuldb.com/submit/865114> (third-party-advisory)
- <https://vuldb.com/submit/865115> (third-party-advisory)
- <https://vuldb.com/submit/865119> (third-party-advisory)
- <https://vuldb.com/submit/865121> (third-party-advisory)
- <https://github.com/HKUDS/nanobot/issues/4521> (issue-tracking)
- <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)

## Sources

- CVE List: [CVE-2026-19243](https://www.cve.org/CVERecord?id=CVE-2026-19243), CVE Terms of Use, modified 2026-08-11
- NVD: [CVE-2026-19243](https://nvd.nist.gov/vuln/detail/CVE-2026-19243), Public domain, modified 2026-10-23

---

Page: https://cve.day/CVE-2026-19243 · Whole record: https://cve.day/CVE-2026-19243.json · Rebuilt by cve.day 2026-11-25T22:59:31.880Z
