RUSTSEC-2026-0617

Source
https://rustsec.org/advisories/RUSTSEC-2026-0617
Import Source
https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2026-0617.json
JSON Data
https://api.osv.dev/v1/vulns/RUSTSEC-2026-0617
Aliases
  • CVE-2026-121479
Published
2026-11-27T12:00:00Z
Modified
2026-11-29T16:00:02Z
Summary
Improper quoting of command arguments in hints enables command injection
Details

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.

Database specific
{
    "license":  "CC0-1.0"
}
References

Affected packages

crates.io / sqz

Package

Affected ranges

Type
SEMVER
Events
Introduced
0.0.0-0
Fixed
0.2.0

Ecosystem specific

{
    "affected_functions":  null,
    "affects":  {
        "arch":  [],
        "functions":  [],
        "os":  []
    }
}

Database specific

categories
[
    "format-injection"
]
cvss
null
informational
null
source
"https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2026-0617.json"