CVE-2026-121479

Description

A flaw was found in sequoia-sq. This vulnerability can lead to arbitrary code execution when the tool displays suggested command hints derived from untrusted inputs, such as user identities. Because command arguments are not properly quoted, an attacker can craft an input to inject arbitrary shell commands into the generated hint. If a user copies and executes the suggested command in a terminal, the injected commands will run on the local system.

Statement

Red Hat Product Security rates this flaw as Moderate because exploitation requires explicit user interaction and arbitrary command execution does not occur automatically. The Sequoia PGP command-line tool (sq) generates diagnostic hint text containing suggested commands based on external certificate metadata. When interacting with an untrusted OpenPGP key containing shell metacharacters in its user identity, malicious commands can be rendered into the terminal prompt recommendation. Execution is contingent upon a local operator copying and pasting the unverified text into an active shell.

Mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.

Common Vulnerability Scoring System (CVSS) Score Details

Info alert:Important note

CVSS scores for open source components depend on vendor-specific factors (e.g. version or build chain). Therefore, Red Hat's score and impact rating can be different from NVD and other vendors. Red Hat remains the authoritative CVE Naming Authority (CNA) source for its products and services (see Red Hat classifications).

The following CVSS metrics and score provided are preliminary and subject to review.

CVSS v3 Score Breakdown

Red HatNVDcve.org
Base Score6.3N/AN/A
Attack VectorLocalN/AN/A
Attack ComplexityHighN/AN/A
Privileges RequiredNoneN/AN/A
User InteractionRequiredN/AN/A
ScopeUnchangedN/AN/A
ConfidentialityHighN/AN/A
Integrity ImpactHighN/AN/A
Availability ImpactNoneN/AN/A

Vector

Red Hat: CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N

Understanding the Weakness (CWE)

Confidentiality,Integrity,Availability,Non-Repudiation

Technical Impact: Execute Unauthorized Code or Commands; DoS: Crash, Exit, or Restart; Read Files or Directories; Modify Files or Directories; Read Application Data; Modify Application Data; Hide Activities

Attackers could execute unauthorized operating system commands, which could then be used to disable the product, or read and modify data for which the attacker does not have permissions to access directly. Since the targeted application is directly executing the commands instead of the attacker, any malicious activities may appear to come from the application or the application's owner.

Acknowledgements

Red Hat would like to thank M. Fauzan Wijaya (Gh05t666nero) for reporting this issue.

Frequently Asked Questions

Want to get errata notifications? Sign up here.