4.8medium
HKUDS nanobot Login-shell Environment shell.py ExecTool._prepare_command information disclosure
- Severity
- 4.8medium CVSS:4.0 by VulDB
- Exploit likelihood
- 0.12% (higher than 2% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- VulDB
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
| Product or package | Versions | Reported by |
|---|---|---|
| HKUDS nanobot | 0.2.0, 0.2.1 Not affected: 0.3.0 | CVE List |
All scores
| VulDB | 4.8medium CVSS:4.0 | 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.3low CVSS:3.1 | 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.3low CVSS:3.0 | 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 | 1.7low CVSS:2.0 | AV:L/AC:L/Au:S/C:P/I:N/A:N/E:POC/RL:OF/RC:C |
Classification
What each source says
CVE List
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".
NVD (es)
Se ha encontrado un fallo en HKUDS nanobot hasta la versión 0.2.1. El elemento afectado es la función ExecTool._prepare_command del archivo nanobot/agent/tools/shell.py del componente Login-shell Environment Gestor. La ejecución de una manipulación puede llevar a una revelación de información. El ataque requiere acceso local. El exploit ha sido publicado y puede ser utilizado. Actualizar a la versión 0.3.0 es suficiente para resolver este problema. Este parche se llama 4525. El componente afectado debería ser actualizado. Múltiples problemas fueron reportados al proyecto. Reaccionaron con un alto nivel de profesionalidad y amabilidad: ’El informe se refiere a archivos de inicio de shell que reintroducen variables de entorno cuando la ejecución de comandos por defecto utiliza un shell de inicio de sesión. El valor predeterminado se cambió para que exec no utilice un shell de inicio de sesión a menos que se solicite explícitamente’.
References
| https://vuldb.com/vuln/386999 | technical-description, vdb-entry | |
| https://vuldb.com/vuln/386999/cti | permissions-required, signature | |
| https://vuldb.com/cve/CVE-2026-19245 | third-party-advisory | |
| https://vuldb.com/submit/865117 | 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 | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-19245 changed 2026-08-10 | CVE Terms of Use |
| NVD | CVE-2026-19245 changed 2026-10-23 | Public domain |