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

Published Nov 27, 2026
·
Updated

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.

Affected Software

1 affected componentFixes available
rust/sqz>=0.0.0-0<0.2.0
0.2.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade rust/sqz to a version that resolves this vulnerability.

    Fixed in 0.2.0

Event History

Nov 27, 2026
Advisory Published
via OSV·12:00 PM
Data Sourced
via OSV·12:00 PM
DescriptionAffected Software

Frequently Asked Questions

1

What conditions are required for exploitation?

An attacker needs to influence a user ID on a certificate that is not considered authenticated and have the target run sq verify on a message signed by that certificate. Exploitation then requires the target to copy and paste the displayed suggested command into a shell.

2

How can I determine whether a user may have been exposed?

Review whether sq verify was run on messages signed by unauthenticated certificates with attacker-influenced user IDs, and whether users copied the resulting authentication-linking hints into a shell. A user ID containing shell command substitution syntax, such as $(touch /tmp/pwned), is an example of a dangerous value.

3

What should be done if immediate updating is not possible?

Do not copy and paste suggested sq commands that include certificate user IDs into a shell. Validate the user ID and construct any required command manually with safe shell quoting.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203