{"id":"CVE-2026-121479","aliases":["CVE-2026-121479","RUSTSEC-2026-0617"],"related":[],"kind":"vulnerability","state":"published","title":"Sequoia-sq: improper quoting of command arguments in hints enables command injection","summary":"A flaw was found in sequoia-sq. This vulnerability can lead to arbitrary code execution when the tool displays suggested command hints derived from untrusted inputs, such as user identities. Because command arguments are not properly quoted, an attacker can craft an input to inject arbitrary shell commands into the generated hint. If a user copies and executes the suggested command in a terminal, the injected commands will run on the local system.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"A flaw was found in sequoia-sq. This vulnerability can lead to arbitrary code execution when the tool displays suggested command hints derived from untrusted inputs, such as user identities. Because command arguments are not properly quoted, an attacker can craft an input to inject arbitrary shell commands into the generated hint. If a user copies and executes the suggested command in a terminal, the injected commands will run on the local system.","source":"cvelist"},{"lang":"en","text":"`sq` emits hints, which can include a suggested command that the user can run.\nSome hints are derived from the input and thus can partially be influenced by an\nattacker.  Because the quoting was not careful enough, it was possible to craft\na user ID that would be used in the command and when the hint is copy and pasted\nwould execute arbitrary commands.  Consider the user ID `$(touch /tmp/pwned)`.\nIf the corresponding certificate is not considered authenticated and the user\nruns `sq verify` on a message signed by that certificate, `sq` would show:\n\n```\nHint: After checking that FINGERPRINT belongs to $(touch /tmp/pwned),\n      you can mark it as authenticated using:\n\n$ sq pki link add --cert=FINGERPRINT --userid=\"$(touch /tmp/pwned)\"\n```\n\nIf the user copy and pasted the command, then most shells would create the file\n`/tmp/pwned`.\n\nThis was fixed by improving the argument quoting.","format":"markdown","source":"rustsec"}],"published":"2026-11-27T12:00:00.000Z","modified":"2026-12-01T16:18:12.800Z","severity":{"scorer":"redhat","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N","score":6.3,"rating":"MEDIUM"},"severities":[{"scorer":"redhat","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N","score":6.3,"rating":"MEDIUM"}],"cwes":["CWE-78"],"affected":[{"ranges":[],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 10","package":"rust-sequoia-sq","cpe":"cpe:/o:redhat:enterprise_linux:10","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 9","package":"rust-sequoia-sq","cpe":"cpe:/o:redhat:enterprise_linux:9","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0.0.0-0","status":"affected","fixed":"0.2.0"}],"ecosystem":"crates.io","package":"sqz","purl":"pkg:cargo/sqz","source":"rustsec"}],"references":[{"url":"https://access.redhat.com/security/cve/CVE-2026-121479","tags":["vdb-entry","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2565810","tags":["issue-tracking","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://crates.io/crates/sqz","tags":["package"],"sources":["rustsec"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2026-0617.html","tags":["advisory"],"sources":["rustsec"]},{"url":"https://gitlab.com/sequoia-pgp/sequoia-sq/-/blob/sqz/v0.2.0/lib/NEWS","tags":["web"],"sources":["rustsec"]}],"credits":["Red Hat would like to thank M. Fauzan Wijaya (Gh05t666nero) for reporting this issue."],"assigner":"redhat","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-12-01T15:55:08.145Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-121479","url":"https://www.cve.org/CVERecord?id=CVE-2026-121479","licence":"CVE Terms of Use","modified":"2026-12-01T15:55:15.675Z"},{"source":"rustsec","name":"RustSec Advisory Database","id":"RUSTSEC-2026-0617","url":"https://rustsec.org/advisories/RUSTSEC-2026-0617.html","licence":"CC0-1.0","modified":"2026-11-29T16:00:02.578Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-121479","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-121479","licence":"Public domain","modified":"2026-12-01T16:18:12.800Z"}],"updatedAt":"2026-12-01T16:32:12.686Z","epss":{"score":0.00232,"percentile":0.15016,"date":"2026-12-01T12:00:22.000Z"}}