CVE-2026-19245 Details
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".
A vulnerability allowing information disclosure has been identified in the nanobot AI framework, specifically in versions through 0.2.1. The issue arises in the ExecTool._prepare_command function within nanobot/agent/tools/shell.py. When the exec tool is called without specifying the login parameter, it defaults to true, causing the shell to execute as a login shell. This behavior allows the shell to read startup files like ~/.bash_profile, where sensitive information such as API keys or credentials may be stored. The vulnerability requires local access to exploit.
Users can upgrade to nanobot version 0.3.0, where this vulnerability has been fixed. Instructions for updating are available in the nanobot documentation.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Aug 7, 2026CISA-ADP
Assessed Aug 10, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://gist.github.com/YLChen-007/b25f3f185478e0b2cd0e727bf5c5ed9b | [email protected] | ExploitTechnical Description |
| https://github.com/HKUDS/nanobot/ | [email protected] | ProductVendor |
| https://github.com/HKUDS/nanobot/issues/4518 | [email protected] | Issue TrackingTechnical DescriptionVendor |
| https://github.com/HKUDS/nanobot/pull/4525 | [email protected] | Issue TrackingVendor |
| https://github.com/HKUDS/nanobot/releases/tag/v0.3.0 | [email protected] | Release NotesVendor |
| https://vuldb.com/cve/CVE-2026-19245 | [email protected] | AdvisoryPermission Required |
| https://vuldb.com/submit/865117 | [email protected] | Issue TrackingPermission Required |
| https://vuldb.com/vuln/386999 | [email protected] | BundlePermission Required |
| https://vuldb.com/vuln/386999/cti | [email protected] | AdvisoryPermission Required |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-200 | Exposure of Sensitive Information to an Unauthorized Actor | [email protected] |
| CWE-284 | Improper Access Control | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| HKUDS nanobot | <= 0.2.1 (semver) |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 23, 2026 | CVE Translated | [email protected] |
| Aug 10, 2026 | CVE Modified | CISA-ADP |
| Aug 7, 2026 | New CVE Received | [email protected] |
Volerion