Improper quoting of command arguments in hints enables command injection
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| crates.iosqz |
≥ 0.0.0-0, < 0.2.0→ 0.2.0 |
0.2.0 |
| Red HatRed Hat Enterprise Linux 10 | — | Not listed |
| Red HatRed Hat Enterprise Linux 9 | — | Not listed |
Fix status by distribution
Records published by each distribution for this CVE. Fixed versions differ by release; check each link.
- Debian DEBIAN-CVE-2026-121479 rust-sequoia-sq No fixed version in this record
- Ubuntu UBUNTU-CVE-2026-121479 rust-sequoia-sq No fixed version in this record
Original description The description as published by the source.
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
- advisory rustsec.org
- package crates.io
- web gitlab.com
- web secalert@redhat.com
- web secalert@redhat.com