CVE-2026-19245
HKUDS nanobot Login-shell Environment shell.py ExecTool._prepare_command information disclosure
- State
- Published
- Severity
- 4.8 Medium
- Published
- Aug 7, 2026
- Updated
- Aug 10, 2026
- Reserved
- Aug 7, 2026
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".
Scores
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 4.0 | 4.8 Medium | CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:P | VulDB |
| 3.1 | 3.3 Low | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N/E:P/RL:O/RC:C | VulDB |
| 3.0 | 3.3 Low | CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N/E:P/RL:O/RC:C | VulDB |
| 2.0 | 1.7 Low | AV:L/AC:L/Au:S/C:P/I:N/A:N/E:POC/RL:OF/RC:C | VulDB |
Weaknesses
Affected Products
| Product | Versions |
|---|---|
nanobotHKUDS |
|
References
- VDB-386999 | HKUDS nanobot Login-shell Environment shell.py ExecTool._prepare_command information disclosurevdb-entrytechnical-description
- VDB-386999 | CTI Indicators (IOB, IOC, TTP, IOA)signaturepermissions-required
- CVE-2026-19245 | CVE Analysis and Reportthird-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/4518issue-tracking
- https://gist.github.com/YLChen-007/b25f3f185478e0b2cd0e727bf5c5ed9bexploit
- https://github.com/HKUDS/nanobot/pull/4525issue-trackingpatch
- https://github.com/HKUDS/nanobot/releases/tag/v0.3.0patch
- https://github.com/HKUDS/nanobot/product
Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.