{"id":"CVE-2026-19245","state":"PUBLISHED","title":"HKUDS nanobot Login-shell Environment shell.py ExecTool._prepare_command information disclosure","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\".","publishedAt":"2026-08-07T20:45:12.889Z","updatedAt":"2026-08-10T13:30:42.468Z","severity":{"score":4.8,"label":"Medium","version":"4.0","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","source":"VulDB"},"assigner":"VulDB","products":["HKUDS nanobot"],"affected":[{"vendor":"HKUDS","product":"nanobot","versions":[{"version":"0.2.0","status":"affected"},{"version":"0.2.1","status":"affected"},{"version":"0.3.0","status":"unaffected"}],"cpes":["cpe:2.3:a:nanobot:nanobot:*:*:*:*:*:*:*:*"],"modules":["Login-shell Environment Handler"]}],"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/"],"weaknesses":["CWE-200","CWE-284"],"ingestedAt":"2026-10-29T20:11:10.572Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/19xxx/CVE-2026-19245.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-19245","state":"PUBLISHED","datePublished":"2026-08-07T20:45:12.889Z","dateUpdated":"2026-08-10T13:30:42.468Z","assignerShortName":"VulDB","assignerOrgId":"1af790b2-7ee1-4545-860a-a788eba489b5","dateReserved":"2026-08-07T12:07:40.156Z"},"containers":{"cna":{"title":"HKUDS nanobot Login-shell Environment shell.py ExecTool._prepare_command information disclosure","descriptions":[{"lang":"en","value":"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":[{"vendor":"HKUDS","product":"nanobot","versions":[{"version":"0.2.0","status":"affected"},{"version":"0.2.1","status":"affected"},{"version":"0.3.0","status":"unaffected"}],"cpes":["cpe:2.3:a:nanobot:nanobot:*:*:*:*:*:*:*:*"],"modules":["Login-shell Environment Handler"]}],"references":[{"url":"https://vuldb.com/vuln/386999","name":"VDB-386999 | HKUDS nanobot Login-shell Environment shell.py ExecTool._prepare_command information disclosure","tags":["vdb-entry","technical-description"]},{"url":"https://vuldb.com/vuln/386999/cti","name":"VDB-386999 | CTI Indicators (IOB, IOC, TTP, IOA)","tags":["signature","permissions-required"]},{"url":"https://vuldb.com/cve/CVE-2026-19245","name":"CVE-2026-19245 | CVE Analysis and Report","tags":["third-party-advisory"]},{"url":"https://vuldb.com/submit/865117","name":"Submit #865117 | HKUDS nanobot 0.2.1 Sensitive Information Exposure via Login Shell Startup Files (CWE-200)","tags":["third-party-advisory"]},{"url":"https://github.com/HKUDS/nanobot/issues/4518","tags":["issue-tracking"]},{"url":"https://gist.github.com/YLChen-007/b25f3f185478e0b2cd0e727bf5c5ed9b","tags":["exploit"]},{"url":"https://github.com/HKUDS/nanobot/pull/4525","tags":["issue-tracking","patch"]},{"url":"https://github.com/HKUDS/nanobot/releases/tag/v0.3.0","tags":["patch"]},{"url":"https://github.com/HKUDS/nanobot/","tags":["product"]}],"metrics":[{"cvssV4_0":{"version":"4.0","baseScore":4.8,"vectorString":"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","baseSeverity":"MEDIUM"}},{"cvssV3_1":{"version":"3.1","baseScore":3.3,"vectorString":"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","baseSeverity":"LOW"}},{"cvssV3_0":{"version":"3.0","baseScore":3.3,"vectorString":"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","baseSeverity":"LOW"}},{"cvssV2_0":{"version":"2.0","baseScore":1.7,"vectorString":"AV:L/AC:L/Au:S/C:P/I:N/A:N/E:POC/RL:OF/RC:C"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-200","type":"CWE","lang":"en","description":"Information Disclosure"}]},{"descriptions":[{"cweId":"CWE-284","type":"CWE","lang":"en","description":"Improper Access Controls"}]}],"providerMetadata":{"shortName":"VulDB","orgId":"1af790b2-7ee1-4545-860a-a788eba489b5","dateUpdated":"2026-08-07T20:45:12.889Z"},"timeline":[{"time":"2026-08-07T00:00:00.000Z","lang":"en","value":"Advisory disclosed"},{"time":"2026-08-07T02:00:00.000Z","lang":"en","value":"VulDB entry created"},{"time":"2026-08-07T14:13:01.000Z","lang":"en","value":"VulDB entry last update"}],"credits":[{"lang":"en","value":"Eric-c (VulDB User)","type":"reporter"},{"lang":"en","value":"VulDB CNA Team","type":"coordinator"}],"x_generator":["VulDB PVTS v202608"]},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-08-10T13:30:28.399321Z","id":"CVE-2026-19245","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-08-10T13:30:42.468Z"}}]}}}