CVE-2026-45370

python-utcp: Full Process Environment Exposed to CLI Subprocess - Secrets Leakage via Command Injection

Published May 14, 2026 CVSS 3.1 · 7.7 High EPSS < 1% KEV · Not listed
Description
python-utcp is the python implementation of UTCP. Prior to 1.1.3, _prepare_environment() in cli_communication_protocol.py passes a full copy of os.environ to every CLI subprocess. When combined with CVE-2026-45369, an attacker can exfiltrate all process-level secrets in a single tool call. This vulnerability is fixed in 1.1.3.

Analysis

AI-generated

Technical impact

The vulnerability in python-utcp occurs when the _prepare_environment() function copies a full copy of the process environment (os.environ) into each CLI subprocess before version 1.1.3. When combined with a related command‑injection issue (CVE‑2026‑45369), an attacker can execute a single tool call that leaks all secrets stored in the environment. The result is the compromise of confidential data, such as API keys, passwords, or other sensitive credentials, without requiring direct access to the host machine.

Affected Systems

The universal‑tool‑calling‑protocol python‑utcp library, versions prior to 1.1.3, is affected. Users should verify the version of python‑utcp installed and identify any deployments using 1.1.2 or earlier.

Risk and Exploitability

The CVSS score of 7.7 indicates a high severity risk. While no EPSS score is publicly available, the potential for secrets exfiltration makes the vulnerability attractive to attackers. It is not currently listed in the CISA KEV catalog. The likely attack vector is through exploitation of the underlying command injection that allows an adversary to invoke python‑utcp in a manner that triggers the environment‑copying behavior. If an attacker can influence the CLI invocation, the exposure of the full environment facilitates large‑scale secrets leakage.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade python‑utcp to version 1.1.3 or later, which removes the full environment copy from CLI subprocesses.
  • Configure the environment to expose only essential variables before running the tool, ensuring that sensitive values are not present in os.environ when possible.
  • Apply input validation on command arguments to prevent command injection that could be combined with the environment exposure flaw.

Generated by OpenCVE AI on May 14, 2026 at 21:23 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-5v57-8rxj-3p2r python-utcp: Full Process Environment Exposed to CLI Subprocess - Secrets Leakage via Command Injection
History
Type Values Removed Values Added
First Time appeared Universal-tool-calling-protocol
Universal-tool-calling-protocol python-utcp
Vendors & Products Universal-tool-calling-protocol
Universal-tool-calling-protocol python-utcp
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description python-utcp is the python implementation of UTCP. Prior to 1.1.3, _prepare_environment() in cli_communication_protocol.py passes a full copy of os.environ to every CLI subprocess. When combined with CVE-2026-45369, an attacker can exfiltrate all process-level secrets in a single tool call. This vulnerability is fixed in 1.1.3.
Title python-utcp: Full Process Environment Exposed to CLI Subprocess - Secrets Leakage via Command Injection
Weaknesses CWE-526
References
Metrics cvssV3_1

{'score': 7.7, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N'}

Weaknesses
  • CWE-526

    Cleartext Storage of Sensitive Information in an Environment Variable

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
May 15, 2026, 11:23 AM
Reserved
May 12, 2026, 12:51 AM
Status
Deferred
Published
May 14, 2026, 9:16 PM
Modified
Oct 26, 2026, 2:10 PM