# CVE-2026-19245: HKUDS nanobot Login-shell Environment shell.py ExecTool._prepare_command information disclosure

- Severity: Medium 4.8 (CVSS:4.0, scored by VulDB) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.12%, higher than 2% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-08-07T20:45:12.889Z
- Modified: 2026-10-23T20:10:00.160Z
- Weaknesses: CWE-200, CWE-284
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- 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".

(As written by CVE List.)

## Affected

- HKUDS nanobot: 0.2.0; 0.2.1 (not affected: 0.3.0)

## Every score

- VulDB: CVSS: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: CVSS: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: CVSS: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: CVSS:2.0 1.7 Low `AV:L/AC:L/Au:S/C:P/I:N/A:N/E:POC/RL:OF/RC:C`

## References

- <https://gist.github.com/YLChen-007/b25f3f185478e0b2cd0e727bf5c5ed9b> (exploit)
- <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://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

- CVE List: [CVE-2026-19245](https://www.cve.org/CVERecord?id=CVE-2026-19245), CVE Terms of Use, modified 2026-08-10
- NVD: [CVE-2026-19245](https://nvd.nist.gov/vuln/detail/CVE-2026-19245), Public domain, modified 2026-10-23

---

Page: https://cve.day/CVE-2026-19245 · Whole record: https://cve.day/CVE-2026-19245.json · Rebuilt by cve.day 2026-11-25T22:59:31.887Z
