CVE-2026-19245HKUDS nanobot Login-shell Environment shell.py ExecTool._prepare_command information…
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".
What to do
None of the Linux distributions or Windows releases we track list an affected package for this CVE. Check the vendor-reported products below.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
What the vendor says
As published in the CVE record by VulDB, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- HKUDS nanobot: affected: 0.2.0, 0.2.1, 0.3.0 not affected
Vendor advisories:
- https://github.com/HKUDS/nanobot/pull/4525 (patch)
- https://github.com/HKUDS/nanobot/releases/tag/v0.3.0 (patch)
References
- https://vuldb.com/vuln/386999
- https://vuldb.com/vuln/386999/cti
- https://vuldb.com/cve/CVE-2026-19245
- https://vuldb.com/submit/865117
- https://github.com/HKUDS/nanobot/issues/4518
- https://gist.github.com/YLChen-007/b25f3f185478e0b2cd0e727bf5c5ed9b
- https://github.com/HKUDS/nanobot/pull/4525
- https://github.com/HKUDS/nanobot/releases/tag/v0.3.0
- https://github.com/HKUDS/nanobot/
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.