{"id":"CVE-2026-121478","aliases":["CVE-2026-121478","RUSTSEC-2026-0616"],"related":[],"kind":"vulnerability","state":"published","title":"Sequoia-sq: unescaped control characters in user ids enable terminal output spoofing","summary":"A flaw was found in sequoia-sq. This flaw allows an attacker to spoof signature verification results displayed in terminal output. Because control characters in user identifiers are not properly sanitized in human-readable output, an attacker can craft a user ID containing terminal control sequences that overwrite verification warnings with arbitrary text. While the underlying cryptographic verification logic operates correctly, users relying on the terminal output may be misled into trusting an unverified or invalid signature.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"A flaw was found in sequoia-sq. This flaw allows an attacker to spoof signature verification results displayed in terminal output. Because control characters in user identifiers are not properly sanitized in human-readable output, an attacker can craft a user ID containing terminal control sequences that overwrite verification warnings with arbitrary text. While the underlying cryptographic verification logic operates correctly, users relying on the terminal output may be misled into trusting an unverified or invalid signature.","source":"cvelist"},{"lang":"en","text":"We were not always careful to ensure that control characters in e.g. user IDs,\nwere escaped.  For instance, `sq verify` did not correctly sanitize the signer's\nuser ID.  An attacker could use this to embed ANSI cursor movement sequences in\na user ID to overwrite a verification warning with fake \"Fully authenticated\"\ntext thereby spoofing the signature verification result.\n\nNote: this attack can be used to modify the human readable output; it cannot be\nused to influence the control plane, like in the sigspoof attacks.\n\n<https://en.wikipedia.org/wiki/SigSpoof>\n\nThis has been fixed by upgrading to the latest version of `sequoia-openpgp`,\nwhose implementations of `Display` and `Debug` for `UserID` (as well as other\ndata structures) escape any control characters.","format":"markdown","source":"rustsec"}],"published":"2026-11-27T12:00:00.000Z","modified":"2026-12-01T15:17:48.700Z","severity":{"scorer":"redhat","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N","score":4.3,"rating":"MEDIUM"},"severities":[{"scorer":"redhat","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N","score":4.3,"rating":"MEDIUM"}],"cwes":["CWE-150"],"affected":[{"ranges":[],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 10","package":"rust-sequoia-sq","cpe":"cpe:/o:redhat:enterprise_linux:10","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 9","package":"rust-sequoia-sq","cpe":"cpe:/o:redhat:enterprise_linux:9","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0.0.0-0","status":"affected","fixed":"0.2.0"}],"ecosystem":"crates.io","package":"sqz","purl":"pkg:cargo/sqz","source":"rustsec"}],"references":[{"url":"https://access.redhat.com/security/cve/CVE-2026-121478","tags":["vdb-entry","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2565808","tags":["issue-tracking","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://crates.io/crates/sqz","tags":["package"],"sources":["rustsec"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2026-0616.html","tags":["advisory"],"sources":["rustsec"]},{"url":"https://gitlab.com/sequoia-pgp/sequoia-sq/-/blob/sqz/v0.2.0/lib/NEWS","tags":["web"],"sources":["rustsec"]}],"credits":["Red Hat would like to thank M. Fauzan Wijaya (Gh05t666nero) and Samy Medjahed (Ap4sh) for reporting this issue."],"assigner":"redhat","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-12-01T14:23:29.180Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-121478","url":"https://www.cve.org/CVERecord?id=CVE-2026-121478","licence":"CVE Terms of Use","modified":"2026-12-01T14:23:41.120Z"},{"source":"rustsec","name":"RustSec Advisory Database","id":"RUSTSEC-2026-0616","url":"https://rustsec.org/advisories/RUSTSEC-2026-0616.html","licence":"CC0-1.0","modified":"2026-11-29T16:00:03.876Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-121478","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-121478","licence":"Public domain","modified":"2026-12-01T15:17:48.700Z"}],"updatedAt":"2026-12-01T15:32:12.576Z","epss":{"score":0.00332,"percentile":0.28431,"date":"2026-12-01T12:00:22.000Z"}}