CVE-2026-55061: uniget CLI command injection in EDITOR variable parsing

CVE-2026-55061 · Severity: medium · CVSS 4 · Published 2026-09-17

The uniget package manager CLI uses the EDITOR environment variable to launch a text editor when managing system hooks. A flaw in how it parses this variable allows an attacker to inject arbitrary shell commands by crafting a malicious EDITOR value. When a user attempts to edit hooks, the injected commands execute with the user's privileges, potentially compromising system integrity and allowing unauthorized code execution.

Technologies: gitlab.com/uniget-org/cli (Go). Vendors: Go.

Quick answers

Is CVE-2026-55061 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2026-55061 being exploited in the wild.
How severe is CVE-2026-55061?
Medium severity, with a CVSS score of 4, published 17 September 2026.
Which products and versions are affected?
gitlab.com/uniget-org/cli (Go) < 0.27.6, SEMVER:introduced=0,fixed=0.27.6; Uniget-Org Uniget < 0.27.6.
Is there a fix for CVE-2026-55061?
Yes. gitlab.com/uniget-org/cli (Go): upgrade to 0.27.6 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
How is CVE-2026-55061 attacked?
It is attacked over the network.
Am I affected by CVE-2026-55061?
Check whether you run gitlab.com/uniget-org/cli (Go) or Uniget-Org Uniget at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • gitlab.com/uniget-org/cli (Go): upgrade to 0.27.6 or later
    go get gitlab.com/uniget-org/cli@v0.27.6

Technical details

The vulnerability exists in hooks.go at line 199, where the code uses strings.Split(editor, " ") to parse the EDITOR environment variable into command and arguments. This naive approach does not respect shell syntax and treats shell metacharacters as literal argument separators. An attacker can craft EDITOR="/path/to/wrapper && id && echo" which splits into ["wrapper", "&&", "id", "&&", "echo"], allowing execution of the "id" command or other arbitrary payloads. The vulnerable code path is triggered when users invoke "uniget hooks edit" to modify hook configurations. No authentication or special privileges are required; the attacker only needs to set the EDITOR environment variable in the user's shell session. A patch is available in version 0.27.6 that properly handles environment variable parsing.

Affected products

  • uniget-org uniget CLI < 0.27.6

Identifiers

  • CVE-2026-55061
  • GHSA-qmcq-xw74-w667
  • GO-2026-6248

Timeline

  • 2026-06-10: disclosed: Vulnerability published to GitHub Advisory Database
  • 2026-06-10: patched: Version 0.27.6 released with fix
  • 2026-08-17: advisory: Advisory updated in GitHub Advisory Database

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.