6.3medium
Sequoia-sq: improper quoting of command arguments in hints enables command injection
- Severity
- 6.3medium CVSS:3.1 by redhat
- Exploit likelihood
- 0.23% (higher than 15% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- redhat
- Also known as
- RUSTSEC-2026-0617
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| rust-sequoia-sq | Not specified | CVE List |
| sqz (crates.io) | from 0.0.0-0 before 0.2.0 | RustSec Advisory Database |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
What each source says
CVE List
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.
RustSec Advisory Database
sq emits hints, which can include a suggested command that the user can run.
Some hints are derived from the input and thus can partially be influenced by an
attacker. Because the quoting was not careful enough, it was possible to craft
a user ID that would be used in the command and when the hint is copy and pasted
would execute arbitrary commands. Consider the user ID $(touch /tmp/pwned).
If the corresponding certificate is not considered authenticated and the user
runs sq verify on a message signed by that certificate, sq would show:
Hint: After checking that FINGERPRINT belongs to $(touch /tmp/pwned),
you can mark it as authenticated using:
$ sq pki link add --cert=FINGERPRINT --userid="$(touch /tmp/pwned)"
If the user copy and pasted the command, then most shells would create the file
/tmp/pwned.
This was fixed by improving the argument quoting.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-121479 changed 2026-12-01 | CVE Terms of Use |
| RustSec Advisory Database | RUSTSEC-2026-0617 changed 2026-11-29 | CC0-1.0 |
| NVD | CVE-2026-121479 changed 2026-12-01 | Public domain |