CVE-2026-19245

HKUDS nanobot Login-shell Environment shell.py ExecTool._prepare_command information disclosure

Published Aug 7, 2026 CVSS 4.0 · 4.8 Medium EPSS < 1% KEV · Not listed
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".

Analysis

AI-generated

Technical 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.

Remediation

No solution or workaround provided in the CVE record.

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 available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Hkuds
Hkuds nanobot
Vendors & Products Hkuds
Hkuds nanobot
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'}

Weaknesses
  • CWE-200

    Exposure of Sensitive Information to an Unauthorized Actor

  • CWE-284

    Improper Access Control

Sources

Status
PUBLISHED
Assigner
VulDB
Published
Updated
Aug 10, 2026, 1:30 PM
Reserved
Aug 7, 2026, 12:07 PM
Status
Deferred
Published
Aug 7, 2026, 9:17 PM
Modified
Oct 23, 2026, 8:10 PM