Unescaped control characters in user IDs enable terminal output spoofing
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-121478 rust-sequoia-sq No fixed version in this record
Original description The description as published by the source.
We were not always careful to ensure that control characters in e.g. user IDs,
were escaped. For instance, sq verify did not correctly sanitize the signer's
user ID. An attacker could use this to embed ANSI cursor movement sequences in
a user ID to overwrite a verification warning with fake "Fully authenticated"
text thereby spoofing the signature verification result.
Note: this attack can be used to modify the human readable output; it cannot be
used to influence the control plane, like in the sigspoof attacks.
This has been fixed by upgrading to the latest version of sequoia-openpgp,
whose implementations of Display and Debug for UserID (as well as other
data structures) escape any control characters.
References
- advisory rustsec.org
- package crates.io
- web gitlab.com
- web secalert@redhat.com
- web secalert@redhat.com