Skip to content
Threat Feed
high advisory

Command Injection in navi via Cheatsheet Variable Substitution

navi version 2.24.0 and earlier contains a command injection vulnerability due to improper escaping of cheatsheet variable values, allowing arbitrary command execution via crafted file names.

CVE search metadata

CVE search record: CVE-2026-101032. Severity: high. CVSS: 7.0. KEV: no. Product: navi (<= 2.24.0). Brief: Command Injection in navi via Cheatsheet Variable Substitution. Brief link: https://feed.craftedsignal.io/briefs/2026-09-navi-command-injection/

navi version 2.24.0 and earlier contains a command injection vulnerability (CVE-2026-101032) resulting from the failure to properly escape cheatsheet variable values when substituting them into shell commands. An attacker can create a malicious file name within a suggestion command directory that contains shell metacharacters. When the navi utility processes these directories and consumes the file names as variables, the injected metacharacters are interpreted by the underlying shell, leading to arbitrary command execution with the privileges of the user running navi. This vulnerability affects users of the navi command-line interactive cheatsheet tool on Linux and macOS environments. Defending against this requires updating to a patched version once available and restricting write access to directory paths monitored by navi for cheatsheet suggestions.

Impact

Successful exploitation allows an unauthenticated attacker to execute arbitrary shell commands on the host system. Given that navi is often used by developers and system administrators to manage and execute complex commands, this could lead to full compromise of the user account, lateral movement, or unauthorized access to sensitive local files and environment variables.

Recommendation

  • Monitor system logs for unexpected child processes spawned by the 'navi' binary or its sub-processes.
  • Audit directories configured for use by navi as suggestion command sources; ensure only trusted users have write access to these locations.
  • Upgrade to the patched version of navi (post-2.24.0) once released by the vendor to resolve the command injection flaw in variable substitution.

Immediate actions

Restrict write access to directories defined as navi suggestion command paths.

IT Operations 24h

Mitigations

Upgrade navi to a version beyond 2.24.0.

immediate IT Operations

CVE-2026-101032