Overview
CVE-2026-121478 describes a presentation-layer vulnerability in sequoia-sq, the Sequoia-PGP command-line interface used for OpenPGP signature and key operations. The issue was disclosed on 2026-12-01 and carries a CVSS 3.1 base score of 4.3 (MEDIUM), with exploitability and impact sub-scores of 2.8 and 1.4. The underlying weakness is catalogued as CWE-150: Improper Neutralization of Escape, Meta, or Control Sequences.
The flaw is not a cryptographic break. Instead, it concerns how sequoia-sq renders user identifier strings into a terminal. Because the tool does not strip or escape terminal control characters before printing, an attacker who controls a user ID can embed escape sequences that overwrite the verification banner and replace warning text with attacker-chosen content. A user reading the output alone can be misled into trusting an unverified signature or dismissing a genuine warning.
Affected systems
- sequoia-sq as packaged for Red Hat Enterprise Linux, including Red Hat Enterprise Linux 10, per the linked vulnerability entry.
- Generic sequoia-sq deployments where terminal verification output is rendered directly to a TTY.
The disclosed advisory does not enumerate a precise version range of sequoia-sq, and the public records reviewed for this write-up do not list specific fixed versions.
Root cause and attack chain
sequoia-sq displays user-supplied identity strings — the user IDs attached to keys and signatures — as part of its human-readable verification summary. Where those strings contain C0/C1 control bytes such as ESC, CSI, or other terminal control sequences, the receiving terminal interprets them as commands rather than text. The Sequoia tool does not currently neutralize those bytes before emission.
An attacker can therefore:
- Produce or distribute a key whose User ID contains escape sequences crafted to clear or rewrite the verdict line on the operator's terminal.
- Let a victim run an ordinary verification step (for example
sq verify) on a detached signature or signed file referencing that key.
- Have the printed output show a "good signature" message — or any other text the attacker chooses — even when the underlying cryptographic check returned a different result.
The CAPEC entries cited for this CVE — CAPEC-41, CAPEC-81, CAPEC-93, and CAPEC-134 — describe meta-character, log, and header injection patterns, which align with the "attacker-controlled string is reflected back into a rendered output channel" shape of this bug.
Real-world impact
The damage is bounded by what a deceived operator does next. If the operator treats the terminal output as authoritative and approves a tampered artifact, trusts an unverified key, or escalates to a sensitive workflow, the consequences can range from supply-chain confusion to a privileged action taken against a misrepresented identity. Because the cryptographic layer remains sound and there is no recorded exploitation, no public PoC, and no inclusion in the CISA KEV catalog, the immediate blast radius is limited. The recorded CVSS impact sub-score of 1.4 reflects a deception bug rather than a privilege-escalation or remote-code-execution primitive.
Mitigation
- Update sequoia-sq to the latest release. The advisory's Solution section explicitly recommends sanitizing user identifiers for terminal output and ensuring control sequences are properly handled. Where sequoia-sq ships as part of Red Hat Enterprise Linux, follow the Red Hat advisory at https://access.redhat.com/security/cve/CVE-2026-121478 and the related tracking bug at https://bugzilla.redhat.com/show_bug.cgi?id=2565808 to confirm the fixed build for your release.
- As an interim measure, redirect sequoia-sq verification output to a file, or pipe it through a filter that strips or escapes control characters before the data reaches the terminal emulator.
- Treat the machine-readable exit status and the structured signature validity result — not the rendered banner — as the authoritative signal in any automated verification workflow.
- Treat any user ID that contains non-printable characters, ESC (0x1B), or CSI introducers as untrusted input; quarantine or reject such identities upstream.
- Where feasible, use a terminal emulator with conservative escape-sequence handling, or capture verification output through
scriptorteeinto a plain log viewer.
Detection angles
- Inventory usage of sequoia-sq in CI/CD pipelines, package-verification gates, and developer workstations, and flag workflows where a human reads the verification banner directly.
- On the input side, inspect imported keys and signature metadata for user IDs containing control characters such as ESC (0x1B) or CSI introducers; treat their presence as an indicator warranting investigation.
- Correlate observed sequoia-sq invocations against the CVE identifier and Red Hat's published advisory to scope exposure across the estate.
- Monitor terminal sessions for unusually placed escape sequences appearing in verification logs, which can indicate attempted injection rather than benign formatting.