Description
A flaw has been found in HKUDS nanobot up to 0.2.1. The impacted element is the function ExecTool._prepare_command of the file nanobot/agent/tools/shell.py of the component Login-shell Environment Handler. Executing a manipulation can lead to information disclosure. The attack requires local access. The exploit has been published and may be used. Upgrading to version 0.3.0 is sufficient to resolve this issue. This patch is called 4525. The affected component should be upgraded. Multiple issues were reported to the project. They reacted with a high level of professionalism and kindness: "The report concerns shell startup files reintroducing environment variables when command execution defaults to a login shell. The default was changed so exec does not use a login shell unless explicitly requested".
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| HKUDS | nanobot | 0.2.0, 0.2.1 | 0.3.0 |
References
- VDB-386999 | HKUDS nanobot Login-shell Environment shell.py ExecTool._prepare_command information disclosure vdb-entry technical-description
- VDB-386999 | CTI Indicators (IOB, IOC, TTP, IOA) signature permissions-required
- CVE-2026-19245 | CVE Analysis and Report third-party-advisory
- Submit #865117 | HKUDS nanobot 0.2.1 Sensitive Information Exposure via Login Shell Startup Files (CWE-200) third-party-advisory
- https://github.com/HKUDS/nanobot/issues/4518 issue-tracking
- https://gist.github.com/YLChen-007/b25f3f185478e0b2cd0e727bf5c5ed9b exploit
- https://github.com/HKUDS/nanobot/pull/4525 issue-tracking patch
- https://github.com/HKUDS/nanobot/releases/tag/v0.3.0 patch
- https://github.com/HKUDS/nanobot/ product