CWE-526Weakness · CWE-526

CVE-2026-45370

HIGH · 7.7 CVSS v3.1 Published 2026-05-14
Mitigation only
No fix yet — a mitigation exists. There is no fixed release. A documented workaround reduces exposure in the meantime.
See remediation →
83/100
Remediation priority · High
Remotely reachable Zero-click

Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.

NVD · unedited
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.

Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.

dbcve analysis · high confidence

The _prepare_environment() function in cli_communication_protocol.py passes a complete copy of os.environ to every CLI subprocess. When combined with CVE-2026-45369, this allows an attacker to exfiltrate all process-level environment variables (containing secrets, API keys, credentials) in a single tool call.

MitigationUpgrade python-utcp to version 1.1.3 or later, which fixes the environment variable handling in _prepare_environment(). Review all environment variables after patching to ensure no secrets were previously compromised.

Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.

CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.

From the vector
Attack vector
Network
Complexity
Low
Privileges
Low
User interaction
None
Scope
Changed
Confidentiality
High
Integrity
None
Availability
None

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N

Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.

dbcve checks

Work through these to decide whether this CVE applies to you.

  1. Locate the vulnerable file
    Search for cli_communication_protocol.py in your python-utcp installation directory or Python site-packages. On Linux/Unix: find /usr -name 'cli_communication_protocol.py' 2>/dev/null or python3 -c 'import utcp; print(utcp.__file__)'. On Windows: python -c "import utcp; print(utcp.__file__)"
    Affected if The file exists and contains the _prepare_environment function with os.environ copy logic
  2. Verify the installed version
    Run: python3 -m pip show python-utcp or pip show python-utcp to display installed version. Compare against the fixed version 1.1.3.
    Affected if Installed version is lower than 1.1.3 or the version cannot be determined (indicating an unpatched older release)
  3. Check for CLI subprocess usage
    Examine the source code of cli_communication_protocol.py for calls to subprocess.Popen, subprocess.run, or similar CLI invocation methods that use _prepare_environment(). Look for patterns like subprocess.Popen(..., env=...) where env derives from _prepare_environment().
    Affected if CLI subprocess execution is present and uses the _prepare_environment function to pass environment variables
  4. Inspect environment variable handling
    Review the _prepare_environment() function implementation in cli_communication_protocol.py. Look for lines like 'return os.environ.copy()' or 'env = os.environ' that pass the full environment dict.
    Affected if The function returns or passes a complete copy of os.environ rather than a sanitized/filtered subset
  5. Check for secret exposure risk
    List all environment variables in your running processes that use python-utcp by running: printenv | grep -E '(API|KEY|SECRET|PASSWORD|TOKEN|CREDENTIAL)' or inspect os.environ keys for sensitive-looking variable names.
    Affected if Sensitive variables (API keys, tokens, passwords, credentials) exist in the process environment and the above version/function checks indicate vulnerability

You are affected if python-utcp is installed with a version lower than 1.1.3, cli_communication_protocol.py exists with the vulnerable _prepare_environment function, and your processes handle CLI subprocesses using this function while containing sensitive data in environment variables.

Generated from the published advisory. Verify against your own configuration.

Check your environment

Paste your version and any relevant configuration and it will be compared against the affected criteria above. Do not include secrets or credentials.

AI-assisted, checked against the advisory. Informational, not a guarantee.

Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.

dbcve · scoped
Mitigation available No clean upgrade yet — mitigate in the meantime
Mitigation

Upgrade python-utcp to version 1.1.3 or later, which fixes the environment variable handling in _prepare_environment(). Review all environment variables after patching to ensure no secrets were previously compromised.

Recommended fix High confidence

1.1.3

  1. 1. Identify the current installed version of python-utcp by running: pip show python-utcp or pip list | grep utcp
  2. 2. Upgrade python-utcp to version 1.1.3 or later by running: pip install python-utcp>=1.1.3
  3. 3. Verify the upgrade was successful by running: pip show python-utcp and confirm the version number is 1.1.3 or higher
  4. 4. If your project pins to a specific version, update your requirements.txt or pyproject.toml to specify python-utcp>=1.1.3

Generated from the published advisory — verify against the referenced sources before acting.

Have this fixed Scoped from the published advisory
  • Consultation1.0 h
  • Implementation1.0 h
  • Testing2.0 h
  • Review / QA1.0 h
5.0 hours of engineering $860
Get help mitigating

An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $1,376.

Scan for this in your stack

Free · runs locally
dbcve dependency scanner

Check whether your project pulls in CVE-2026-45370 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.

References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.

Primary sources

Practitioner notes

Contributed

Peer-ranked notes from engineers who’ve handled CVE-2026-45370 in production — separate from our analysis above.

No notes yet

Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.

What this is

A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.

What belongs here
  • Verified mitigations, workarounds, and config changes
  • Version or environment caveats, and links to real fixes
  • No weaponised exploit code, or anything meant to cause harm
  • No spam, self-promotion, credentials, or personal data