CVE-2026-121478
JSON

4.3medium

Sequoia-sq: unescaped control characters in user ids enable terminal output spoofing

Severity
4.3medium CVSS:3.1 by redhat
Exploit likelihood
0.33% (higher than 28% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
redhat
Also known as
RUSTSEC-2026-0616

Description

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.

Affected

Product or packageVersionsReported by
rust-sequoia-sqNot specifiedCVE List
sqz (crates.io)from 0.0.0-0 before 0.2.0RustSec Advisory Database

Classification

CWE-150

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

RustSec Advisory Database

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.

https://en.wikipedia.org/wiki/SigSpoof

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

Sources

SourceRecordLicence
CVE ListCVE-2026-121478 changed 2026-12-01CVE Terms of Use
RustSec Advisory DatabaseRUSTSEC-2026-0616 changed 2026-11-29CC0-1.0
NVDCVE-2026-121478 changed 2026-12-01Public domain