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

Source: https://junglewise.ai/threats/cve-2026-55061-uniget-cli-command-injection-in-editor-variable-parsing  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-09-17. Updated: 2026-09-25  
License: CC BY 4.0 with a link back

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)](https://junglewise.ai/threats/technologies/gitlab-com-uniget-org-cli). Vendors: [Go](https://junglewise.ai/threats/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

  ```sh
  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

- [https://api.github.com/users/0x5t4l1n](https://api.github.com/users/0x5t4l1n)
- [https://github.com/0x5t4l1n](https://github.com/0x5t4l1n)
- [https://api.github.com/users/0x5t4l1n/gists%7B/gist_id%7D](https://api.github.com/users/0x5t4l1n/gists%7B/gist_id%7D)
- [https://api.github.com/users/0x5t4l1n/repos](https://api.github.com/users/0x5t4l1n/repos)
- [https://avatars.githubusercontent.com/u/161853795?v=4](https://avatars.githubusercontent.com/u/161853795?v=4)
- [https://api.github.com/users/0x5t4l1n/events%7B/privacy%7D](https://api.github.com/users/0x5t4l1n/events%7B/privacy%7D)

## Related threats

- [uniget CLI path traversal in hook file handling](https://junglewise.ai/threats/cve-2026-55062-uniget-cli-path-traversal-in-hook-file-handling)
- [GO-2026-6246 - uniget CLI: Metadata signature verification only runs when UNIGET_IGNORE_METADATA_SIGNATURE is set in…](https://junglewise.ai/threats/go-2026-6246-uniget-cli-metadata-signature-verification-only-runs-when-102bc8b2)
- [uniget CLI metadata signature verification logic inversion](https://junglewise.ai/threats/uniget-cli-metadata-signature-verification-logic-inversion-d671aea8)
- [uniget command injection in metadata check field](https://junglewise.ai/threats/cve-2026-45152-uniget-command-injection-in-metadata-check-field)
