Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-101032 Overview
CVE-2026-101032 is an OS command injection vulnerability [CWE-78] affecting navi through version 2.24.0. The tool is an interactive cheatsheet launcher that substitutes variable values into shell commands before execution. The vulnerability stems from improper escaping of cheatsheet variable values during shell command substitution. Attackers can inject shell metacharacters through crafted file names placed in suggestion command directories. When a victim invokes the affected cheatsheet, the injected characters execute as arbitrary commands with the victim's privileges.
Critical Impact
Arbitrary command execution with victim privileges triggered when a user runs a navi cheatsheet whose suggestion command references attacker-controlled file names.
Affected Products
- navi versions through 2.24.0
- Users relying on cheatsheets that invoke suggestion commands over untrusted directories
- Workflows ingesting third-party or community cheatsheets
Discovery Timeline
- 2026-09-27 - CVE-2026-101032 published to NVD
- 2026-09-30 - Last updated in NVD database
Technical Details for CVE-2026-101032
Vulnerability Analysis
navi is a command-line cheatsheet tool that lets users select command templates with interactive variable prompts. Variables can be populated by executing suggestion commands, including commands that list files in a directory. The vulnerability resides in how navi substitutes those returned values back into the final shell command without applying shell quoting or escaping. The actor and shell handling logic in src/commands/core/actor.rs and src/common/shell.rs constructs the final command string via direct interpolation, allowing shell metacharacters to break out of the intended argument context.
The impact is arbitrary command execution under the invoking user's account. Because navi commonly runs under interactive shells with full user privileges, successful exploitation grants the attacker the same access level as the victim user.
Root Cause
The root cause is a failure to sanitize or shell-quote cheatsheet variable values prior to substitution. When a suggestion command enumerates file names, any file name containing characters such as backticks, $(), ;, &&, or | is interpolated verbatim into the executed command string. The code paths in actor.rs (lines 159–193) and shell.rs (lines 39–50) treat variable values as trusted text rather than untrusted input requiring escaping.
Attack Vector
Exploitation requires that an attacker control the contents of a directory enumerated by a navi suggestion command, and that a victim subsequently selects a cheatsheet entry that uses that suggestion source. The attacker plants a file whose name contains shell metacharacters and a payload. When the victim invokes the cheatsheet and chooses the attacker-controlled entry, navi substitutes the file name into the final shell command and executes the embedded payload. This local attack vector requires user interaction and specific preconditions, which is reflected in the attack complexity rating.
For technical details of the vulnerable code paths, see the navi actor source, the navi shell source, and GitHub issue #1037.
Stop Remote Code Execution Before It Runs
Singularity™ Endpoint detects and blocks exploit attempts at machine speed, including zero-days and novel attack techniques.
Stop Exploit AttemptsDetection Methods for CVE-2026-101032
Indicators of Compromise
- Files in directories enumerated by navi suggestion commands whose names contain shell metacharacters such as `, $(, ;, |, or &&.
- Unexpected child processes spawned from the navi process, especially shells (sh, bash, zsh) executing commands unrelated to the selected cheatsheet.
- Shell history entries showing navi-invoked commands containing substituted strings with embedded command substitution syntax.
Detection Strategies
- Audit cheatsheet repositories and suggestion command directories for file names containing shell metacharacters.
- Monitor process ancestry for navi spawning unexpected binaries such as curl, wget, nc, or additional shell interpreters.
- Alert on navi executions correlated with outbound network connections from the user shell session shortly after cheatsheet selection.
Monitoring Recommendations
- Enable command-line and process-creation auditing (auditd execve rules on Linux, EDR process telemetry on macOS) for the navi binary.
- Capture full command lines, parent process, and working directory to reconstruct the cheatsheet invocation.
- Review access patterns to shared or world-writable directories that may be targeted as suggestion sources.
How to Mitigate CVE-2026-101032
Immediate Actions Required
- Upgrade navi to a version later than 2.24.0 once a patched release is published by the maintainer.
- Audit all cheatsheets in use and remove suggestion commands that enumerate untrusted or shared directories.
- Restrict permissions on directories referenced by suggestion commands so only trusted users can create files there.
Patch Information
At the time of publication, the issue is tracked in GitHub issue #1037 for the navi project. Refer to the VulnCheck advisory for the latest fixed-version information and apply upstream updates once available.
Workarounds
- Avoid cheatsheets that use suggestion commands enumerating files in directories writable by other users.
- Replace file-enumeration suggestion commands with static value lists wherever practical.
- Run navi inside a restricted shell or dedicated user account to limit the impact of substituted command execution.
# Configuration example: restrict suggestion directories to trusted ownership
chown root:root /opt/navi/cheats
chmod 755 /opt/navi/cheats
find /opt/navi/cheats -maxdepth 2 -type f -name '*[`$;|&]*' -print
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

