SEVERITY NOT PROVIDED

CVE-2026-121479: Improper quoting of command arguments in hints enables command injection

Published 2026-11-27 · Updated 2026-11-29 · Also known as RUSTSEC-2026-0617

Summary

The sqz crate contains a command injection vulnerability due to improper quoting of user-provided input within command hints. Users of the sqz crate should update to version 0.2.0 or later to mitigate this issue.

Who is affected

The vulnerability allows an attacker to inject arbitrary commands into suggested instructions generated by sq when processing untrusted certificates. If a user copy-pastes the provided hint into a shell, the injected commands will execute with the privileges of the user running the command. This requires the user to interact with a malicious certificate and manually execute the suggested command.

Exploitability

The CVSS vector, EPSS score, and CISA KEV status are not documented. Therefore, the exploitability status is currently unknown based on standard industry metrics.

Remediation

How to check your project

Automated analysis of the published advisory data, generated 2026-11-29. Not human-reviewed; verify against the official advisory. How this works.

Affected packages

EcosystemPackageAffected versionsFixed inUpgrade
crates.io sqz >= 0.0.0-0, < 0.2.0 0.2.0 cargo update -p sqz --precise 0.2.0

FAQ

What specifically triggers this vulnerability?

The vulnerability is triggered when 'sq' generates a hint based on an attacker-crafted user ID, such as one containing shell metacharacters like $(), which then gets included in an suggested command.

Is this vulnerability being actively exploited in the wild?

No, there is no evidence of active exploitation, and the vulnerability is not listed in the CISA Known Exploited Vulnerabilities catalog.

Does this flaw affect the integrity of the 'sq' tool itself?

The flaw exists in the hint-generation logic of the sqz crate; it is not a direct compromise of the sq tool's core cryptographic functions but rather a social engineering vector that tricks users into executing malicious commands.

Original advisory description
`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

Source records: RUSTSEC-2026-0617 (OSV.dev).