# CVE-2026-45152: uniget command injection in metadata check field

Source: https://junglewise.ai/threats/cve-2026-45152-uniget-command-injection-in-metadata-check-field  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-05-27. Updated: 2026-06-09  
License: CC BY 4.0 with a link back

CVE-2026-45152 · Severity: high · CVSS 7.8 · Published 2026-05-27

uniget is a command-line tool used for managing and installing other software tools. A security flaw allows an attacker to execute malicious commands on a user's computer if the user processes a specially crafted metadata file. This could lead to full system compromise, data theft, or the installation of malware with the same permissions as the user running the tool.

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-45152 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-45152 being exploited in the wild.

**How severe is CVE-2026-45152?** High severity, with a CVSS score of 7.8, published 27 May 2026.

**Which products and versions are affected?** gitlab.com/uniget-org/cli (Go) < 0.27.1, SEMVER:introduced=0,fixed=0.27.1; Uniget-Org Uniget <= 0.27.0.

**Is there a fix for CVE-2026-45152?** Yes. gitlab.com/uniget-org/cli (Go): upgrade to 0.27.1 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-45152 attacked?** It is attacked with local access, in a software library.

**Am I affected by CVE-2026-45152?** 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.1 or later

  ```sh
  go get gitlab.com/uniget-org/cli@v0.27.1
  ```


## Technical details

A command injection vulnerability exists in uniget's metadata processing logic. The application uses `json.Unmarshal()` to populate a `Tool` struct from JSON metadata files and subsequently executes the content of the `Check` field using `/bin/bash -c` within the `RunVersionCheck` function. Because this field is not validated or sanitized, an attacker can inject shell metacharacters (e.g., `;`, `&&`, `|`) into the metadata. Exploitation occurs when a user performs common operations like `describe`, `install`, or `update` on a tool associated with the malicious metadata. This issue is patched in version 0.27.1.

## Affected products

- uniget-org cli < 0.27.1

## Identifiers

- CVE-2026-45152
- GHSA-qqq4-5773-pmw5
- GO-2026-5590

## Timeline

- 2026-05-08: disclosed
- 2026-05-13: advisory
- 2026-05-13: patched: Version 0.27.1 released

## 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)
- [uniget CLI command injection in EDITOR variable parsing](https://junglewise.ai/threats/cve-2026-55061-uniget-cli-command-injection-in-editor-variable-parsing)
- [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)
