{"id":"RUSTSEC-2026-0617","aliases":["CVE-2026-121479"],"title":"Improper quoting of command arguments in hints enables command injection","titleSource":"OSV","descriptionSource":"OSV","description":"`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.","severity":"unknown","score":null,"published":"2026-11-27T12:00:00.000Z","modified":"2026-11-29T16:00:02.578Z","withdrawn":false,"knownExploited":false,"affected":[{"ecosystem":"crates.io","name":"sqz","sources":[{"name":"OSV · RUSTSEC-2026-0617","url":"https://osv.dev/vulnerability/RUSTSEC-2026-0617"}],"ranges":[{"events":[{"introduced":"0.0.0-0"},{"fixed":"0.2.0"}],"type":"SEMVER"}],"versions":[],"fixed":["0.2.0"]}],"sourceAffected":[],"references":["https://crates.io/crates/sqz","https://rustsec.org/advisories/RUSTSEC-2026-0617.html","https://gitlab.com/sequoia-pgp/sequoia-sq/-/blob/sqz/v0.2.0/lib/NEWS"],"sources":[{"name":"OSV","id":"RUSTSEC-2026-0617","modified":"2026-11-29T16:00:02.578643801Z","url":"https://osv.dev/vulnerability/RUSTSEC-2026-0617"}],"assessments":[],"products":[],"remediation":[],"observedAt":"2026-11-29T16:30:52.768Z","kev":{"status":"not-listed","checkedAt":"2026-11-29T21:00:32.443Z"},"coverage":[{"source":"NVD","status":"no-result","checkedAt":"2026-11-29T16:40:36.480Z","attemptedAt":"2026-11-29T16:40:36.480Z"},{"source":"GHSA","status":"no-result","checkedAt":"2026-11-29T16:40:37.311Z","attemptedAt":"2026-11-29T16:40:37.311Z"},{"source":"EUVD","status":"no-result","checkedAt":"2026-11-29T16:40:36.922Z","attemptedAt":"2026-11-29T16:40:36.922Z"},{"source":"EPSS","status":"no-result","checkedAt":"2026-11-29T16:40:36.654Z","attemptedAt":"2026-11-29T16:40:36.654Z"}],"evidence":[],"aiSummary":null}