Skip to content
HighVulnerability

GHSA-5v57-8rxj-3p2r: python-utcp: Full Process Environment Exposed to CLI Subprocess - Secrets Leakage via Command Injection

Published
Record updated
View JSON
Affected
  • utcp-cli <= 1.1.1
Fixed in
1.1.2
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.4%

Summary

python-utcp's `_prepare_environment()` in `cli_communication_protocol.py` passes a full copy of `os.environ` to every CLI subprocess. Combined with the Command Injection flaw in `_substitute_utcp_args()` (GHSA-33p6-5jxp-p3x4), an attacker can exfiltrate all process-level secrets, including cloud credentials, database strings and LLM API keys, in a single tool call. The issue is fixed in `utcp-cli` 1.1.2, which adds a `CliCallTemplate.inherit_env_vars` field to control inheritance.

Mitigation

Upgrade to `utcp-cli >= 1.1.2`. There is no workaround in earlier versions short of stripping secrets from the host process before any CLI tool call.