CVE-2026-45370
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 · uneditedpython-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 confidenceThe _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.
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 checksWork through these to decide whether this CVE applies to you.
-
Locate the vulnerable fileSearch 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
-
Verify the installed versionRun: 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)
-
Check for CLI subprocess usageExamine 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
-
Inspect environment variable handlingReview 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
-
Check for secret exposure riskList 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.
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 · scopedUpgrade 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.
1.1.3
- 1. Identify the current installed version of python-utcp by running: pip show python-utcp or pip list | grep utcp
- 2. Upgrade python-utcp to version 1.1.3 or later by running: pip install python-utcp>=1.1.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. 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.
- Consultation1.0 h
- Implementation1.0 h
- Testing2.0 h
- Review / QA1.0 h
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 locallyCheck 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 sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2026-45370 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
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.
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.
- 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