HKUDS nanobot Login-shell Environment shell.py ExecTool._prepare_command information disclosure
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".
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2026-19245
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 6 Nov 2026, 03:32 UTC · Revision 1
Source evidence
HKUDS nanobot Login-shell Environment shell.py ExecTool._prepare_command information disclosure
core-osv · Original sourcePublished 7 Aug 2026, 20:45 UTC
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".
osv:CVE-2026-19245
Complete source record
{
"id": "d99f72fa857dda3293c91e0ecbab687801e3a025aa4fe23504ae6892c514dd84",
"url": "https://osv.dev/vulnerability/CVE-2026-19245",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "HKUDS nanobot Login-shell Environment shell.py ExecTool._prepare_command information disclosure",
"summary": "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\".",
"evidence": "osv:CVE-2026-19245",
"products": [],
"severity": "low",
"structured": {
"id": "CVE-2026-19245",
"aliases": [
"CVE-2026-19245"
],
"metrics": [
{
"type": "CVSS_V4",
"score": "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"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/hkuds/nanobot",
"type": "GIT",
"events": [
{
"introduced": "c018c3fb6a5cedf2dcd7bbd0bf4fce5eb9b54bf7"
},
{
"fixed": "3f602fbc8c104b5af27aa4d3520e7dcef2fa70ec"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"introduced": "0.2.0"
},
{
"last_affected": "0.2.0"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandaloneSingleVersion"
},
{
"range": [
{
"introduced": "0.2.1"
},
{
"last_affected": "0.2.1"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandaloneSingleVersion"
},
{
"range": [
{
"fixed": "3f602fbc8c104b5af27aa4d3520e7dcef2fa70ec"
}
],
"source": "REFERENCES_TAG",
"original_tag": "v0.3.0"
}
]
}
}
],
"versions": [
"0.2.0",
"0.2.1",
"v0.2.2",
"v0.2.1",
"v0.2.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-19245.json"
}
}
],
"modified": "2026-10-28T02:30:46.209110120Z",
"provider": "osv",
"references": [
"https://github.com/HKUDS/nanobot/",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/19xxx/CVE-2026-19245.json",
"https://nvd.nist.gov/vuln/detail/CVE-2026-19245",
"https://vuldb.com/cve/CVE-2026-19245",
"https://vuldb.com/submit/865117",
"https://vuldb.com/vuln/386999",
"https://github.com/HKUDS/nanobot/issues/4518",
"https://vuldb.com/vuln/386999/cti",
"https://github.com/HKUDS/nanobot/pull/4525",
"https://github.com/HKUDS/nanobot/releases/tag/v0.3.0",
"https://gist.github.com/YLChen-007/b25f3f185478e0b2cd0e727bf5c5ed9b"
],
"provider_metadata": {
"cwe_ids": [
"CWE-200",
"CWE-284"
],
"cna_assigner": "VulDB",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/19xxx/CVE-2026-19245.json"
}
},
"related_cves": [
{
"value": "CVE-2026-19245",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 514497,
"published_at": "2026-08-07T20:45:12.889+00:00"
}