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".
Published: 2026-08-07
Score: 4.8 Medium
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

This vulnerability resides in the ExecTool._prepare_command function of the nanobot login‑shell environment handler. Manipulating the function allows an attacker to read confidential information that should be protected, such as environment variables initialized in login shells. The flaw is a direct data leak, corresponding to confidentiality impairment.

Affected Systems

The affected product is HKUDS nanobot, versions up to and including 0.2.1. The known vendor is HKUDS, and the product name is nanobot. The specific function located in nanobot/agent/tools/shell.py is impacted. Users running the compromised versions should update to at least 0.3.0.

Risk and Exploitability

The CVSS score of 4.8 indicates moderate severity. The flaw requires local access, meaning it is exploitable only by users who can log into the system where the agent runs. No EPSS score is available, and the vulnerability is not listed in the CISA KEV catalog. The exploit has been published, so a local attacker with sufficient privileges can abuse it to disclose sensitive data. The lack of a higher score or broad attack vector suggests the threat is limited to the local environment.

Generated by OpenCVE AI on August 7, 2026 at 22:23 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update HKUDS nanobot to version 0.3.0 or later, which removes the default login‑shell behavior before executing commands. Through the official patch (commit 4525), environment variables are no longer reintroduced unintentionally.
  • Restrict local user accounts that can invoke the nanobot agent; limit deployable operating systems and shell usage to privileged users only.
  • Audit the agent configuration to ensure that commands executed are not performed via a login shell unless explicitly requested; confirm that the environment variables are set appropriately for the intended session.

Generated by OpenCVE AI on August 7, 2026 at 22:23 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Sat, 08 Aug 2026 01:15:00 +0000

Type Values Removed Values Added
First Time appeared Hkuds
Hkuds nanobot
Vendors & Products Hkuds
Hkuds nanobot

Fri, 07 Aug 2026 21:15:00 +0000

Type Values Removed Values Added
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".
Title HKUDS nanobot Login-shell Environment shell.py ExecTool._prepare_command information disclosure
First Time appeared Nanobot
Nanobot nanobot
Weaknesses CWE-200
CWE-284
CPEs cpe:2.3:a:nanobot:nanobot:*:*:*:*:*:*:*:*
Vendors & Products Nanobot
Nanobot nanobot
References
Metrics cvssV2_0

{'score': 1.7, 'vector': 'AV:L/AC:L/Au:S/C:P/I:N/A:N/E:POC/RL:OF/RC:C'}

cvssV3_0

{'score': 3.3, 'vector': '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'}

cvssV3_1

{'score': 3.3, 'vector': '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'}

cvssV4_0

{'score': 4.8, 'vector': '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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: VulDB

Published:

Updated: 2026-08-07T20:45:12.889Z

Reserved: 2026-08-07T12:07:40.156Z

Link: CVE-2026-19245

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-08T01:00:11Z

Weaknesses
  • CWE-200

    Exposure of Sensitive Information to an Unauthorized Actor

  • CWE-284

    Improper Access Control