cve.bz

CVE-2026-121479 Sequoia-sq: improper quoting of command arguments in hints enables command injection

6.3 mediumFix available

Medium (6.3) in red hat. Fixed in sqz 0.2.0.

On this page
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.

Severity

CVSS 3.1

6.3 medium
CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N
CWE
CWE-78 Improper Neutralization of Special Elements used in an OS Command (OS Command Injection)
OWASP Top 10
A05:2025 Injection
Published
Modified
Assigned by
redhat (CNA)
NVD analysis
Awaiting analysis
Record from
the NVD, synced

Fix and patched versions

  • sqz (crates.io): fixed in 0.2.0

Ask an AI about this CVE

Show the promptExplain CVE-2026-121479 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-121479?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-121479?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-121479 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
RUSTSEC-2026-0617crates.iosqz>=0.0.0-0 <0.2.00.2.0

Red Hat

Red Hat rates this Moderate.

Red Hat's 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.

Red Hat's 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.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10rust-sequoia-sqFix deferred
Red Hat Enterprise Linux 9rust-sequoia-sqFix deferred

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-121479.

Attack patterns (CAPEC)

  • CAPEC-6 Argument Injection Likelihood: High · Severity: High
  • CAPEC-15 Command Delimiters Likelihood: High · Severity: High
  • CAPEC-43 Exploiting Multiple Input Interpretation Layers Likelihood: Medium · Severity: High
  • CAPEC-88 OS Command Injection Likelihood: High · Severity: High
  • CAPEC-108 Command Line Execution through SQL Injection Likelihood: Low · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON