CVE-2026-121479
JSON

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 packageVersionsReported by
rust-sequoia-sqNot specifiedCVE List
sqz (crates.io)from 0.0.0-0 before 0.2.0RustSec Advisory Database

Classification

CWE-78

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

SourceRecordLicence
CVE ListCVE-2026-121479 changed 2026-12-01CVE Terms of Use
RustSec Advisory DatabaseRUSTSEC-2026-0617 changed 2026-11-29CC0-1.0
NVDCVE-2026-121479 changed 2026-12-01Public domain