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

Medium 4.8 Published Updated

Local attackers can exploit shell environment handling to disclose sensitive information via unintended environment variable exposure.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
None listed

What is CVE-2026-19245?

CVE-2026-19245 is a medium-severity vulnerability in HKUDS nanobot, published on 7 Aug 2026. It can only be exploited from the same machine or local network, with no action from the victim.

Official 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".

Weakness: CWE-284, CWE-200

Which versions are affected by CVE-2026-19245?

How do I fix CVE-2026-19245?

No fix has been published for CVE-2026-19245 yet. Limit exposure of the affected software until one is available.

Is CVE-2026-19245 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-19245 exists.

Sources

Also known as GHSA-hfxr-wggc-4cr6.

Is CVE-2026-19245 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free