Skip to content
Medium 6.3

Improper quoting of command arguments in hints enables command injection

CVE-2026-121479 First seen on SecPulse

Affected packages

PackageAffected → Fixed
crates.iosqz
≥ 0.0.0-0, < 0.2.0→ 0.2.0
Red HatRed Hat Enterprise Linux 10 —
Red HatRed Hat Enterprise Linux 9 —

Fix status by distribution

Records published by each distribution for this CVE. Fixed versions differ by release; check each link.

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.

Source: OSV.dev (Open Source Vulnerabilities) NVD OSV

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details